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

feature: Make schema backup handle empty topics #614

Conversation

aiven-anton
Copy link
Contributor

@aiven-anton aiven-anton commented May 12, 2023

About this change - What it does

  • Adds start_offset and end_offset to data files in metadata.
  • Adds verification of start and end offset in backup reader.
  • Adds record_count to Metadata.
  • Start sourcing partition_count directly from what's read from Kafka, instead of via len(data_files).
  • Test can restore empty topics.

@aiven-anton aiven-anton force-pushed the aiven-anton/feature/backup-v3-avro branch from bf3dee0 to 130b9ca Compare May 15, 2023 14:27
@aiven-anton aiven-anton force-pushed the aiven-anton/feature/backup-v3-avro branch 6 times, most recently from 93b006a to 801a367 Compare May 26, 2023 10:31
Base automatically changed from aiven-anton/feature/backup-v3-avro to main May 26, 2023 10:53
@aiven-anton aiven-anton changed the base branch from main to aiven-anton/feature/backup-v3-avro-verify May 29, 2023 13:22
@aiven-anton aiven-anton force-pushed the aiven-anton/feature/backup-v3-avro-test-restore-empty-topic branch from e16abce to 8c12eeb Compare May 29, 2023 14:10
@cloudflare-pages
Copy link

cloudflare-pages bot commented May 29, 2023

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2836bba
Status: ✅  Deploy successful!
Preview URL: https://599b5e46.karapace.pages.dev
Branch Preview URL: https://aiven-anton-feature-backup-v-1ql2.karapace.pages.dev

View logs

@aiven-anton aiven-anton force-pushed the aiven-anton/feature/backup-v3-avro-verify branch 2 times, most recently from e28ae4b to 9a9e5e1 Compare May 30, 2023 12:20
Base automatically changed from aiven-anton/feature/backup-v3-avro-verify to main May 30, 2023 12:43
@aiven-anton aiven-anton force-pushed the aiven-anton/feature/backup-v3-avro-test-restore-empty-topic branch 2 times, most recently from 40e0d67 to d03605c Compare May 30, 2023 15:00
@aiven-anton aiven-anton marked this pull request as ready for review May 30, 2023 15:14
@aiven-anton aiven-anton requested review from a team as code owners May 30, 2023 15:14
giuseppelillo
giuseppelillo previously approved these changes May 30, 2023
karapace/backup/backends/v3/backend.py Outdated Show resolved Hide resolved
@aiven-anton aiven-anton marked this pull request as draft May 30, 2023 15:43
- Adds `start_offset` and `end_offset` to data files in `Metadata`.
- Adds verification of start and end offset in backup reader.
- Adds `record_count` to `Metadata`.
- Start sourcing `partition_count` directly from what's read from Kafka,
  instead of indirectly via `len(data_files)`.
- Test can restore empty topics.
@aiven-anton aiven-anton force-pushed the aiven-anton/feature/backup-v3-avro-test-restore-empty-topic branch from d03605c to 2836bba Compare May 30, 2023 16:03
@aiven-anton aiven-anton marked this pull request as ready for review May 30, 2023 16:17
@jjaakola-aiven jjaakola-aiven merged commit 5479513 into main May 31, 2023
9 of 10 checks passed
@jjaakola-aiven jjaakola-aiven deleted the aiven-anton/feature/backup-v3-avro-test-restore-empty-topic branch May 31, 2023 06:58
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.

None yet

3 participants