nic-6443 commented on code in PR #12338:
URL: https://github.com/apache/apisix/pull/12338#discussion_r2155878062
##########
apisix/utils/batch-processor.lua:
##########
@@ -107,7 +107,7 @@ function execute_func(premature, self, batch)
end
return
end
-
+ self.processed_entries = self.processed_entries + #batch.entries
Review Comment:
If the number of these discarded entries is not recorded, the
`processed_entries` count will be inaccurate when there is an fault in the
Kafka server. This way, even if Kafka returns to normal, the plugin will not
work due to the inaccurate `pending_entries`.
--
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]