Details
Description
In the function XceiverClientHandler#sendCommandAsync we should add a check
if(StringUtils.isEmpty(request.getTraceID())) { throw new IllegalArgumentException("Invalid trace ID"); }
To ensure that ozone clients always send a valid trace ID. However, when you do that a set of current tests that do add a valid trace ID will fail. So we need to fix these tests too.
TestContainerMetrics.testContainerMetrics TestOzoneContainer.testBothGetandPutSmallFile TestOzoneContainer.testCloseContainer TestOzoneContainer.testOzoneContainerViaDataNode TestOzoneContainer.testXcieverClientAsync TestOzoneContainer.testCreateOzoneContainer TestOzoneContainer.testDeleteContainer TestContainerServer.testClientServer TestContainerServer.testClientServerWithContainerDispatcher TestKeys.testPutAndGetKeyWithDnRestart
This is based on a comment from vagarychen in HDFS-11580.