Skip to content

Conversation

@Ngarari4910
Copy link

Task

Update the BadgerDB backup mechanism to correctly handle writer failures during DB.Backup.
Currently, if the writer fails during backup, the error is not propagated properly.

This task requires:

  • Introducing a test TestBackupWriterFailure_HABITAT that simulates a writer error.
  • Ensuring DB.Backup returns an error if the writer fails.
  • Writing a golden patch to fix the backup logic and pass the test.

The test must use the __HABITAT suffix to ensure Habitat validation works.

@Ngarari4910 Ngarari4910 requested a review from a team as a code owner January 4, 2026 08:50
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants