adixitconfluent commented on code in PR #18725: URL: https://github.com/apache/kafka/pull/18725#discussion_r1933651209
########## core/src/test/scala/unit/kafka/server/ReplicaManagerTest.scala: ########## @@ -5977,6 +5980,64 @@ class ReplicaManagerTest { ) } + @Test + def testDelayedShareFetchPurgatoryOperationExpiration(): Unit = { + val mockLogMgr = TestUtils.createLogManager(config.logDirs.map(new File(_))) + val rm = new ReplicaManager( + metrics = metrics, + config = config, + time = time, + scheduler = new MockScheduler(time), + logManager = mockLogMgr, + quotaManagers = quotaManager, + metadataCache = MetadataCache.kRaftMetadataCache(config.brokerId, () => KRaftVersion.KRAFT_VERSION_0), + logDirFailureChannel = new LogDirFailureChannel(config.logDirs.size), + alterPartitionManager = alterPartitionManager) + + val groupId = "grp" + val tp1 = new TopicIdPartition(Uuid.randomUuid, new TopicPartition("foo1", 0)) + val partitionMaxBytes = new util.LinkedHashMap[TopicIdPartition, Integer] + partitionMaxBytes.put(tp1, 1000) Review Comment: actually we require partitionMaxBytes of type `util.LinkedHashMap`. Hence, we cannot use `mkMap`, I have the failing [build](https://github.com/apache/kafka/actions/runs/13029166140/job/36344429628?pr=18725) in `core:compileTestScala` if we use `mkMap` -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org