dubee commented on a change in pull request #364: Fix consumer dead state bug
URL:
https://github.com/apache/openwhisk-package-kafka/pull/364#discussion_r362669724
##########
File path: provider/service.py
##########
@@ -123,6 +131,11 @@ def run(self):
self.lastCanaryTime = datetime.now()
else:
logging.debug('[changes] Found a change for a
non-trigger document')
+
+ # Record the sequence in case the changes feed needs
to be
+ # restarted. This way the new feed can pick up right
where
+ # the old one left off.
+ self.lastSequence = change['seq']
Review comment:
Moved this in case of an unexpected exception.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services