Skip to content

PHOENIX-7786 Improved handling for empty files in Replication Log Processor#2392

Open
Himanshu-g81 wants to merge 3 commits intoapache:PHOENIX-7562-feature-newfrom
Himanshu-g81:PHOENIX-7786
Open

PHOENIX-7786 Improved handling for empty files in Replication Log Processor#2392
Himanshu-g81 wants to merge 3 commits intoapache:PHOENIX-7562-feature-newfrom
Himanshu-g81:PHOENIX-7786

Conversation

@Himanshu-g81
Copy link
Contributor

No description provided.

// If trailer is missing or corrupt, create reader without trailer validation
LOG.warn("Invalid Trailer for file {}", filePath, invalidLogTrailerException);
logFileReaderContext.setValidateTrailer(false);
logFileReader.init(logFileReaderContext);
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

There are 2 init calls here so we need to handle failures from any of the two and close the reader

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