-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HWKMETRICS-160 Fix Intermittent test failures in GraphiteITest
When EmbeddedJMXTrans is stopped, it collects and sends metrics one last time after the schedulers have been shut down. So two data points can have very close timestamps. But Graphite only supports second resolution. So it is possible that two points with the same timestamp (see #getTimestamp logic) are sent to the server. Consequently, when building the expected data set, we need to check if one metric has two points with the same timestamp, and, in this case, keep the older one only.
- Loading branch information
1 parent
ef2a653
commit 4b5f4d0
Showing
1 changed file
with
20 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters