I cannot understand why `namenode_failover` called here.
Should `namenode_failover` be called in #write, isn't it?