Details
-
Sub-task
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
HA branch (HDFS-1623)
-
None
-
Reviewed
Description
Currently when the NN changes state, it does so without synchronization. In particular, the state transition function does:
(1) leave old state
(2) change state variable
(3) enter new state
This means that the NN is marked as "active" before it has actually transitioned to active mode and opened its edit logs. This gives a window where write transactions can come in and the checkOperation allows them, but then they fail because the edit log is not yet opened.
Attachments
Attachments
Issue Links
- blocks
-
HDFS-1972 HA: Datanode fencing mechanism
- Resolved
- relates to
-
HDFS-15356 Unify configuration `dfs.ha.allow.stale.reads` to DFSConfigKeys
- Resolved