Skip to content

Commit

Permalink
[fix](move-memtable) fix potential duplicate of TabletStream profile (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
kaijchen authored Jan 29, 2024
1 parent 2c4f6ce commit 9f03005
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion be/src/runtime/load_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,8 @@ Status IndexStream::_init_tablet_stream(TabletStreamSharedPtr& tablet_stream, in
int64_t partition_id) {
tablet_stream = std::make_shared<TabletStream>(_load_id, tablet_id, _txn_id, _load_stream_mgr,
_profile);
RETURN_IF_ERROR(tablet_stream->init(_schema, _id, partition_id));
_tablet_streams_map[tablet_id] = tablet_stream;
RETURN_IF_ERROR(tablet_stream->init(_schema, _id, partition_id));
return Status::OK();
}

Expand Down
3 changes: 2 additions & 1 deletion be/test/runtime/load_stream_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,8 @@ TEST_F(LoadStreamMgrTest, one_client_abnormal_tablet) {
wait_for_ack(3);
EXPECT_EQ(g_response_stat.num, 3);
EXPECT_EQ(g_response_stat.success_tablet_ids.size(), 0);
EXPECT_EQ(g_response_stat.failed_tablet_ids.size(), 1);
EXPECT_EQ(g_response_stat.failed_tablet_ids.size(), 2);
EXPECT_EQ(g_response_stat.failed_tablet_ids[1], ABNORMAL_TABLET_ID);

// server will close stream on CLOSE_LOAD
wait_for_close();
Expand Down

0 comments on commit 9f03005

Please sign in to comment.