ramu11 commented on code in PR #30481:
URL: https://github.com/apache/camel/pull/30481#discussion_r4640781702
##########
components/camel-azure/camel-azure-storage-blob/src/main/java/org/apache/camel/component/azure/storage/blob/BlobConsumer.java:
##########
@@ -58,6 +59,14 @@ public class BlobConsumer extends
ScheduledBatchPollingConsumer {
// blobs whose exchanges are being processed, which a later poll must not
consume again
private final Set<String> inProgress = ConcurrentHashMap.newKeySet();
+ // Remaining names from the current Azure listing page. Keeping these
across polls
+ // prevents a limited consumer from repeatedly starting with the first
page.
+ private final Queue<BlobItem> pendingListedBlobs = new LinkedList<>();
+
+ // Continuation state for the next Azure listing page.
+ private String listingContinuationToken;
+ private boolean listingComplete;
+
Review Comment:
Addressed in commit 6bd2f6a6386a. Overrode doStart() to clear
pendingListedBlobs and reset listingContinuationToken and listingComplete,
ensuring that a restarted route begins a fresh listing pass and does not resume
from a stale cursor.
--
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]