Skip to content

Commit

Permalink
Fix tests with cache
Browse files Browse the repository at this point in the history
  • Loading branch information
kfaraz committed Feb 9, 2025
1 parent 600cce2 commit aa34805
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void setUseSegmentMetadataCache(boolean useSegmentMetadataCache)

public void syncSegmentMetadataCache()
{
metadataCachePollExec.finishNextPendingTask();
metadataCachePollExec.finishNextPendingTasks(4);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public void setUp()
if (useSegmentCache) {
segmentMetadataCache.start();
segmentMetadataCache.becomeLeader();
cachePollExecutor.finishNextPendingTask();
cachePollExecutor.finishNextPendingTasks(4);
}

transactionFactory = new SqlSegmentMetadataTransactionFactory(
Expand Down Expand Up @@ -210,7 +210,7 @@ public void tearDown()
void refreshCache()
{
if (useSegmentCache) {
cachePollExecutor.finishNextPendingTask();
cachePollExecutor.finishNextPendingTasks(2);
}
}

Expand Down

0 comments on commit aa34805

Please sign in to comment.