Closed nosahama closed 2 months ago
Click to see where and how coverage changed
File Statements Missing Coverage Coverage
(new stmts)Lines missing
karapace/coordinator
master_coordinator.py
53
schema_coordinator.py
Project Total
This report was generated by python-coverage-comment-action
Closing this PR, the work will be consolidated into #936 and also we only use the AdminClient
from aiokafka
, so ideally the check_errors()
function is not called, so this is not the right place to intercept the error.
About this change - What it does
Handle
aiokafka
retriable errors, we see from here thecoordinator.check_errors()
is used in the consumer when getting the position, so this will always raise the errors that are registered withcoordinator._push_error_to_user()
, that way we do not flood application monitoring systems and instead log a warning.Service logs
Showing the now
warning
logs for theGroupCoordinatorNotAvailableError
, we can also add a catch forUnknownTopicOrPartitionError
which gets raised here.We also reduce the log level for the
master_coordinator
bootstrap errors as they [will be retried] (https://github.com/Aiven-Open/karapace/blob/main/karapace/coordinator/master_coordinator.py#L54)