Skip to content
代码片段 群组 项目
未验证 提交 d0b62278 编辑于 作者: Vikas Singh's avatar Vikas Singh 提交者: GitHub
浏览文件

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.
上级 13dd1c03
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册