You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/09/05 03:23:14 UTC
[PR] test(alert): deepen AlertFingerprint uniqueness coverage [rocketmq-dashboard]
yyqdbngt opened a new pull request, #3262:
URL: https://github.com/apache/rocketmq-dashboard/pull/3262
## Summary
Extends the existing `AlertFingerprintTest` (2 → 5 tests) to pin down the fingerprint uniqueness contract used for alert state keys.
Added cases:
- `null` labels produce the same fingerprint as an empty label map (64 hex chars);
- changing the rule id, the instance id, or a single label value each yields a different fingerprint;
- escaping: label values containing backslashes, newlines, or equals signs each produce fingerprints distinct from the plain value and from each other, so embedded separators cannot forge collisions.
## Why
The fingerprint keys the per-rule/resource alert state; collision resistance and stability are what make state transitions deterministic across replicas.
## Testing
`mvn -B test -Dtest=AlertFingerprintTest` — 5/5 pass; checkstyle (validate) clean.
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] test(alert): deepen AlertFingerprint uniqueness coverage [rocketmq-dashboard]
Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #3262: test(alert): deepen AlertFingerprint uniqueness coverage
URL: https://github.com/apache/rocketmq-dashboard/pull/3262
--
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: commits-unsubscribe@rocketmq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org