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

fix: Clarify comment in backup consumer logic #781

Merged
merged 3 commits into from
Jun 13, 2024

Conversation

aiven-anton
Copy link
Contributor

No description provided.

Comment on lines 303 to 306
# produced we need to subtract 1. Note that this has little to do with high
# watermark, which takes into account the highest record offset to be fully
# in sync across ISRs, and therefore can be an arbitrary number less than
# or equal to the LEO.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great, thanks for the explaination! This save a lot of time to the reader of the code. Can we mention also what happens if the topic its empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be good, I'll leave that as a room for further future improvement though.

karapace/backup/api.py Outdated Show resolved Hide resolved
@aiven-anton aiven-anton marked this pull request as ready for review June 12, 2024 17:21
@aiven-anton aiven-anton requested review from a team as code owners June 12, 2024 17:21
@aiven-anton
Copy link
Contributor Author

Opened this old PR for review, please feel free to merge, and please use squash merge.

@jjaakola-aiven jjaakola-aiven enabled auto-merge (squash) June 13, 2024 06:30
@jjaakola-aiven jjaakola-aiven merged commit 7a30144 into main Jun 13, 2024
9 checks passed
@jjaakola-aiven jjaakola-aiven deleted the aiven-anton/fix-backup-consumer-logic-comment branch June 13, 2024 06:56
Copy link

Coverage report

This PR does not seem to contain any modification to coverable code.

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.

4 participants