tr0k opened a new pull request, #7972:
URL: https://github.com/apache/hbase/pull/7972
## What this changes
This PR fixes HBASE-29875 in two commits:
1. Guard `DefaultStoreFileManager.getUnneededFiles` against null readers
2. Filter null-reader files before compaction selection in
`SortedCompactionPolicy`
## Why
In our 2.5.10/2.5.11 production environment, some stores reached a state
where `HStoreFile.getReader()` returned null. This caused compaction
paths to fail and blocked compaction progress for affected stores.
## Validation
Validated on a downstream 2.5.10/2.5.11-based build with Java 11 and with:
- TTL enabled
- frequent flushes
- MOB workload
- manual and automatic compaction triggering
Observed result:
- the known null-reader failure paths are avoided
- healthy files can still be compacted
- skipped null-reader files no longer abort compaction selection
## Notes
This is a defensive fix around unexpected null-reader state. It does not
attempt to solve the root cause of why some `HStoreFile` instances end up
with `reader == null`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]