bbejeck commented on code in PR #22855:
URL: https://github.com/apache/kafka/pull/22855#discussion_r3604377530
##########
streams/src/main/java/org/apache/kafka/streams/state/internals/AbstractSegments.java:
##########
@@ -96,7 +96,12 @@ public S getOrCreateSegment(final long segmentId,
throw new
IllegalStateException(newSegment.getClass().getSimpleName() + " already exists.
Possible concurrent access.");
}
- openSegmentDB(newSegment, context);
+ try {
+ openSegmentDB(newSegment, context);
+ } catch (final Exception openException) {
+ segments.remove(segmentId);
Review Comment:
Does it buy anything to log here or will the act of throwing capture the
details?
--
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]