Skip to content

HBASE-29774 incremental backup fails on empty WAL#8327

Open
DieterDP-ng wants to merge 1 commit into
apache:masterfrom
NGDATA:HBASE-29774_incremental_backup_fails_empty_wal
Open

HBASE-29774 incremental backup fails on empty WAL#8327
DieterDP-ng wants to merge 1 commit into
apache:masterfrom
NGDATA:HBASE-29774_incremental_backup_fails_empty_wal

Conversation

@DieterDP-ng

@DieterDP-ng DieterDP-ng commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Add handling for WALHeaderEOFException in WALInputFormat so WALPlayer now skips empty WAL files rather than crashing. Empty WAL files (also lacking a header) either originate from crashed Region Servers, or might exist for a very short period when using the legacy WAL writer on newly created active WALs.

This solves a problem where incremental backups could fail when converting WAL files to HFiles. In this use case, all WAL files passed to the WALPlayer are rolled (so no longer active), so empty WAL files were due to crashed Region Servers.

(This is an updated PR of the one originally created by my colleague @thomassngdata. It applies some review remarks I had when reviewing that PR, but Thomas is currently unavailable to process them himself.)

Add handling for WALHeaderEOFException in WALInputFormat so WALPlayer now
skips empty WAL files rather than crashing. Empty WAL files (also lacking a header)
either originate from crashed Region Servers, or might exist for a very
short period when using the legacy WAL writer on newly created active WALs.

This solves a problem where incremental backups could fail when converting
WAL files to HFiles. In this use case, all WAL files passed to the WALPlayer
are rolled (so no longer active), so empty WAL files were due to crashed
Region Servers.
@DieterDePaepe DieterDePaepe requested review from hgromer and ndimiduk June 9, 2026 09:54
@DieterDePaepe

Copy link
Copy Markdown

As I've helped edit this PR myself, we need someone else of HBase community to give an approval before I can merge. @ndimiduk or @hgromer - you've reviewed backup related PRs before. Would appreciate if either of you had time for a review.

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.

3 participants