Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
Signed-off-by: zhangqiang <[email protected]>
  • Loading branch information
sevev committed Mar 18, 2024
1 parent 5c87b67 commit 1a0fa98
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions be/test/storage/tablet_updates_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3727,13 +3727,10 @@ TEST_F(TabletUpdatesTest, test_load_primary_index_failed) {
for (int i = 0; i < 10; i++) {
rowsets.emplace_back(create_rowset(_tablet, keys2, nullptr, false, false));
}
auto pool = StorageEngine::instance()->update_manager()->apply_thread_pool();
for (int i = 0; i < rowsets.size(); i++) {
auto version = i + 2;
auto st = _tablet->rowset_commit(version, rowsets[i]);
ASSERT_TRUE(st.ok()) << st.to_string();
// Ensure that there is at most one thread doing the version apply job.
ASSERT_LE(pool->num_threads(), 1);
ASSERT_EQ(version, _tablet->updates()->max_version());
ASSERT_EQ(version, _tablet->updates()->version_history_count());
}
Expand Down

0 comments on commit 1a0fa98

Please sign in to comment.