Details
Description
We will abort regionserver if memstore flush throws exception.
I thinks we could do retry to make regionserver more stable because file system may be not ok in a transient time. e.g. Switching namenode in the NamenodeHA environment
HRegion#internalFlushcache(){ ... try { ... }catch(Throwable t){ DroppedSnapshotException dse = new DroppedSnapshotException("region: " + Bytes.toStringBinary(getRegionName())); dse.initCause(t); throw dse; } ... } MemStoreFlusher#flushRegion(){ ... region.flushcache(); ... try { }catch(DroppedSnapshotException ex){ server.abort("Replay of HLog required. Forcing server shutdown", ex); } ... }
Attachments
Attachments
Issue Links
- is duplicated by
-
HBASE-7385 Do not abort regionserver if StoreFlusher.flushCache() fails
- Closed
- relates to
-
HBASE-7929 Reapply hbase-7507 "Make memstore flush be able to retry after exception" to 0.94 branch.
- Closed