uzshao opened a new pull request #2921:
URL: https://github.com/apache/hadoop/pull/2921


   See https://issues.apache.org/jira/browse/HDFS-15980
   
   
   HDFS-15754 introduces 4 new metrics in DataNodeMetrics.  However the test 
associated with the patch has some bugs.  This issue is to fix those bugs in 
the tests.
   
   Please note that the non-test code of HDFS-15754 worked fine without any 
bugs.
   
   There are 3 issues:
   1. The metric names in the tests were incorrect;
   2. The tests only checked the metrics of DataNode 0, but one of the metrics, 
PacketsSlowWriteToMirror,  is only updated on 2 of the 3 DataNodes, so this 
created an indeterministic failure.
   3. The metric PacketsSlowWriteToOsCache was not updated in the test due to 
the fact that the size of the file was smaller than 
BlockReceiver.CACHE_DROP_LAG_BYTES
   
   All of them are fixed in this patch.
   


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

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