accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edcole...@apache.org
Subject [accumulo] branch master updated: Fix GcMetricsIT test when multple IT tests run (#1402)
Date Wed, 30 Oct 2019 19:48:11 GMT
This is an automated email from the ASF dual-hosted git repository.

edcoleman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/master by this push:
     new d9159bf  Fix GcMetricsIT test when multple IT tests run (#1402)
d9159bf is described below

commit d9159bfc882a887bb51727cd322b90cf459b8a6f
Author: EdColeman <dev1@etcoleman.com>
AuthorDate: Wed Oct 30 15:48:04 2019 -0400

    Fix GcMetricsIT test when multple IT tests run (#1402)
---
 test/src/main/java/org/apache/accumulo/test/functional/GcMetricsIT.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/test/src/main/java/org/apache/accumulo/test/functional/GcMetricsIT.java b/test/src/main/java/org/apache/accumulo/test/functional/GcMetricsIT.java
index eab1956..748ccb2 100644
--- a/test/src/main/java/org/apache/accumulo/test/functional/GcMetricsIT.java
+++ b/test/src/main/java/org/apache/accumulo/test/functional/GcMetricsIT.java
@@ -74,7 +74,9 @@ public class GcMetricsIT extends AccumuloClusterHarness {
 
       long testStart = System.currentTimeMillis();
 
+      // ignore first line - if file exists it can be from another test / run
       LineUpdate firstUpdate = waitForUpdate(-1, gcTail);
+      firstUpdate = waitForUpdate(firstUpdate.getLastUpdate(), gcTail);
 
       Map<String,Long> firstSeenMap = parseLine(firstUpdate.getLine());
 


Mime
View raw message