Details
-
Improvement
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
None
-
None
-
Incompatible change
-
Description
Currently all old WALs of regionservers are achieved into the single directory of oldWALs. In big clusters, because of long TTL of WAL or disabled replications, the number of files under oldWALs may reach the max-directory-items limit of HDFS, which will make the hbase cluster crashed.
Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.protocol.FSLimitException$MaxDirectoryItemsExceededException): The directory item limit of /hbase/lgprc-xiaomi/.oldlogs is exceeded: limit=1048576 items=1048576
A simple solution is to separate the old WALs into different directories according to the server name of the WAL.
Suggestions are welcomed~ Thanks
Attachments
Attachments
Issue Links
- is duplicated by
-
HBASE-17892 Hierarchical paths for WALs
- Resolved
- is related to
-
HBASE-18309 Support multi threads in CleanerChore
- Resolved
- links to