Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
2.0.2-alpha
-
None
-
Reviewed
Description
When transitioning a SBN to active, I ran into the following situation:
- the TrashPolicy first gets loaded by an IPC Server Handler thread. The initialize function then tries to make an RPC to the same node to find out the defaults.
- This is happening inside the NN write lock (since it's part of the active initialization). Hence, all of the other handler threads are already blocked waiting to get the NN lock.
- Since no handler threads are free, the RPC blocks forever and the NN never enters active state.
We need to have a general policy that the NN should never make RPCs to itself for any reason, due to potential for deadlocks like this.
Attachments
Attachments
Issue Links
- relates to
-
HDFS-3881 Detect and disallow self IPC
- Open
-
HDFS-3882 NN trash emptier should not delete files via the client
- Open
-
HADOOP-8689 Make trash a server side configuration option
- Closed