MissingTopState metric unreported when replica is set to ANY_LIVEINSTANCE
csudharsanan opened this issue · 0 comments
csudharsanan commented
Describe the bug
The metric "MissingTopState" is not being calculated (hence not reported) as an exception is thrown prior to metric calculation in the ResourceMonitor.
Whenever the replica is set to ANY_LIVEINSTANCE, we encounter a NumberFormatException and return (as we try to get the replica count as Integer) before calculating rest of the metrics which includes the _numNonTopStatePartitions.
To Reproduce
Set replica to 'ANY_LIVEINSTANCE'
Expected behavior
_numNonTopStatePartitions reflecting right value when replica is set to ANY_LIVEINSTANCE.
Additional context
Add any other context about the problem here.