MINOR: Fix testDiskCapacityUpdatedMissingNode initialization issue (#7171)
getClusterMissingNode0 wasn't initializing the testPartitions variable, thus passing null to CruiseControlMetricProcessor::process method which resulted in NPE. This change fixes the code to initialize the variable correctly. The test was not having issue when run as part of the whole suite as other tests methods were initializing the static variable. Ideally the variable should be non-static and get initialized by each method, but that is a bigger change. Test passes now when run individually.
想要评论请 注册 或 登录