|
@@ -70,6 +70,11 @@ public class TestDataNodeMXBean {
|
|
|
int xceiverCount = (Integer)mbs.getAttribute(mxbeanName,
|
|
|
"XceiverCount");
|
|
|
Assert.assertEquals(datanode.getXceiverCount(), xceiverCount);
|
|
|
+ // Ensure mxbean's XmitsInProgress is same as the DataNode's
|
|
|
+ // live value.
|
|
|
+ int xmitsInProgress =
|
|
|
+ (Integer) mbs.getAttribute(mxbeanName, "XmitsInProgress");
|
|
|
+ Assert.assertEquals(datanode.getXmitsInProgress(), xmitsInProgress);
|
|
|
} finally {
|
|
|
if (cluster != null) {cluster.shutdown();}
|
|
|
}
|