satishd commented on code in PR #15077:
URL: https://github.com/apache/kafka/pull/15077#discussion_r1441456492
##########
core/src/test/scala/unit/kafka/server/ReplicaManagerTest.scala:
##########
@@ -4115,7 +4131,8 @@ class ReplicaManagerTest {
safeYammerMetricValue("type=DelayedRemoteFetchMetrics,name=ExpiresPerSec").asInstanceOf[Long])
latch.countDown()
} finally {
- replicaManager.shutdown(checkpointHW = false)
+ CoreUtils.swallow(replicaManager.shutdown(checkpointHW = false), this)
Review Comment:
With the suggested change of using
[Utils.tryAll()](https://github.com/apache/kafka/blob/810f63b5b645666c004a6a1222eeed54b202c10e/clients/src/main/java/org/apache/kafka/common/utils/Utils.java#L1197)
instead of swallowing exceptions, it becomes
```
Utils.tryAll(util.Arrays.asList[Callable[Void]](
() => {
replicaManager.shutdown(checkpointHW = false)
null
},
() => {
remoteLogManager.close()
null
},
))
```
--
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]