allthingssecurity commented on code in PR #30843:
URL: https://github.com/apache/camel/pull/30843#discussion_r4705558742


##########
components/camel-aws/camel-aws2-kinesis/src/main/java/org/apache/camel/component/aws2/kinesis/Kinesis2Consumer.java:
##########
@@ -553,8 +554,21 @@ public void run() {
                     trackChildShards(latestShardList);
                     setCurrentShardList(latestShardList);
                 }
-            } catch (Exception e) {
-                LOG.warn("Exception getting latest shard list", e);
+            } catch (VirtualMachineError e) {

Review Comment:
   Already done in fcf3f98839ad, which is the head this review ran on: the 
`VirtualMachineError` catch logs at ERROR, calls `handleFatalError(e)` and 
throws on, and the test is now 
`aVirtualMachineErrorStopsTheConsumerUntilRestarted` (health DOWN with 
`getFatalError()`, no more polls, a stop and start lists and reads again). For 
#30840: whichever of the two merges second sets `shardListError` in the `catch` 
for the other `Error`s too, as noted in both descriptions.
   



-- 
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]

Reply via email to