Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

broker/client: quiet more noisy logging #399

Merged
merged 1 commit into from
Sep 8, 2024
Merged

Conversation

jgraettinger
Copy link
Contributor

@jgraettinger jgraettinger commented Sep 8, 2024

Don't warn on a clean server-side close of a List RPC that doesn't ever return a response. This is expected for a resumed listing which doesn't change.

Use an attached Route of a previously completed Read, if available, and more importantly: clear the last Response of the previous stream. We could enter a condition where this was never cleared (for example, on NOT_JOURNAL_BROKER) if the following request went to the correct broker, stayed open for a while with no data, and was then closed server-side. This can cause mis-leading and false-positive logged warnings.

Update RetryReader to account for attempt being incremented on the next loop iteration.


This change is Reviewable

Don't warn on a clean server-side close of a List RPC that doesn't ever
return a response. This is expected for a resumed listing which doesn't
change.

Use an attached Route of a previously completed Read, if available,
and more importantly: clear the last Response of the previous stream.
We could enter a condition where this was never cleared (for example, on
NOT_JOURNAL_BROKER) if the _following_ request went to the correct
broker, stayed open for a while with no data, and was then closed server-side.
This can cause mis-leading and false-positive logged warnings.

Update RetryReader to account for attempt being incremented on the next
loop iteration.
@jgraettinger jgraettinger merged commit d0c9d56 into master Sep 8, 2024
1 check passed
@jgraettinger jgraettinger deleted the johnny/quiet-logging branch September 8, 2024 18:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants