RockteMQ-AI commented on issue #1431:
URL: 
https://github.com/apache/rocketmq-dashboard/issues/1431#issuecomment-5236486728

   **Issue Evaluation**
   
   Category: `type/bug` | Status: **Confirmed**
   
   Alert rule threshold accepting NaN and Infinity is a valid bug. These values 
produce invalid PromQL expressions that Prometheus cannot evaluate.
   
   **Root Cause:** No numeric validation on threshold input — NaN and Infinity 
pass through standard numeric parsers but are not valid in PromQL expressions.
   **Impact:** Invalid alert rules that fail silently or cause Prometheus 
errors.
   **Severity:** Medium — affects alerting correctness.
   
   **Suggested fix:** Add `Double.isFinite(value)` check before accepting 
threshold; reject NaN/Infinity with a clear validation error.
   
   ---
   *Automated evaluation by github-manager*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to