ZanderXu opened a new pull request, #4813:
URL: https://github.com/apache/hadoop/pull/4813

   ### Description of PR
   
   DFSClient should diff the writing files with namespaceId and iNodeId, 
because the writing files may belongs to different namespace with the same 
iNodeId.
   
   And the related code as bellows:
   ```
   public void putFileBeingWritten(final long inodeId,
         final DFSOutputStream out) {
       synchronized(filesBeingWritten) {
         filesBeingWritten.put(inodeId, out);
         // update the last lease renewal time only when there was no
         // writes. once there is one write stream open, the lease renewer
         // thread keeps it updated well with in anyone's expiration time.
         if (lastLeaseRenewal == 0) {
           updateLastLeaseRenewal();
         }
       }
     }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to