jhungund commented on code in PR #6182:
URL: https://github.com/apache/hbase/pull/6182#discussion_r1741955149
##########
hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestPrefetch.java:
##########
@@ -108,11 +109,13 @@ public class TestPrefetch {
public OpenTelemetryRule otelRule = OpenTelemetryRule.create();
@Before
- public void setUp() throws IOException {
+ public void setUp() throws IOException, InterruptedException {
conf = TEST_UTIL.getConfiguration();
conf.setBoolean(CacheConfig.PREFETCH_BLOCKS_ON_OPEN_KEY, true);
fs = HFileSystem.get(conf);
blockCache = BlockCacheFactory.createBlockCache(conf);
+ // Add some sleep to enable the cache to be instantiated.
+ Thread.sleep(2000);
Review Comment:
It is probably not required here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]