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

   ### Description of PR
   
   I recently came across a NN log where about 800k setRep calls were made, 
setting the replication from 3 to 3 - ie leaving it unchanged. Obviously the 
application should be fixed, but we could have an optimisation for this.
   
   When the replication is unchanged in a case like this, we log an edit 
record, an audit log, and perform some quota checks etc. I believe we should 
still log an audit in these sort of cases, but we can skip all the checks and 
avoid writing an edit.
   
   ### How was this patch tested?
   
   Added a new test and validated the code paths were correct around writing 
and syncing edits or not with some log messages I then removed.
   
   


-- 
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