xjrk58 commented on code in PR #24310:
URL: https://github.com/apache/kafka/pull/24310#discussion_r4648067204
##########
streams/test-utils/src/main/java/org/apache/kafka/streams/TopologyTestDriver.java:
##########
@@ -376,8 +378,28 @@ public List<PartitionInfo> partitionsFor(final String
topic) {
logContext
);
- setupGlobalTask(mockWallClockTime, streamsConfig, streamsMetrics,
cache);
- setupTask(streamsConfig, streamsMetrics, cache,
internalTopologyBuilder.topologyConfigs().getTaskConfig());
+ try {
+ setupGlobalTask(mockWallClockTime, streamsConfig, streamsMetrics,
cache);
+ setupTask(streamsConfig, streamsMetrics, cache,
internalTopologyBuilder.topologyConfigs().getTaskConfig());
+ } catch (final Throwable e) {
+ // the caller gets no driver to close
+ Utils.closeQuietly(() -> closeDirty(e instanceof
TaskCorruptedException), "topology test driver");
Review Comment:
This seems to be more like a bug in `RocksDBStore`.
--
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]