Here is a patch with CountDownLatch.
Other changes in previous patch is:
1) fixed one null pointer, which is caused because of not mocking the getConf on DN.
Added the mock in test.
2) DataXceiverAspects file apache header was not a header comment
+ * Licensed to the Apache Software Foundation (ASF) under one
3) System.setProperty("fi.enabledOOM", null); also changed to System.setProperty("fi.enabledOOM", "false");
because can not set null in props.
Also changed the check in aspectj file to check with true.
To be frank, i am not familiar with aspectJ programs.
So, requesting Cos to review once with my changes. One more thing is when i ran the tests with your command, i don't see any aspects injected in to DataXceiver.class and not running test. Not sure my compilations has the problems with aspectj. Since this is urgent for some of the load tests running by Konstantin, i updated the patch here.
Konstantin, can you check the patch and give the test run once.