Description
Avoid accumulating too many wals.
We remove logs in 3 cases:
- No procedures are running. We can remove all the logs.
- All procedures are updated/written in the last log. We can remove all the logs, aside the active one.
- Remove log if does not contains “active” procIds
https://github.com/apache/hbase/blob/master/hbase-procedure/src/main/java/org/apache/hadoop/hbase/procedure2/store/wal/WALProcedureStore.java#L865
The last point, Remove log if does not contains “active” procIds, needs to be improved. Basically, even if a log contains state of an active proc, we can delete it if a later log contains a newer state.
Attachments
Attachments
Issue Links
- relates to
-
HBASE-16554 Procedure V2 - Recover 'updated' part of WAL tracker if trailer is corrupted.
- Closed
- links to