From 46c54bf2009d83343534a6dd64ef1e225f5c8202 Mon Sep 17 00:00:00 2001 From: Eric Payne Date: Fri, 19 May 2017 11:24:54 -0500 Subject: [PATCH] YARN-6618. TestNMLeveldbStateStoreService#testCompactionCycle can fail if compaction occurs more than once. Contributed by Jason Lowe. (cherry picked from commit 19482e0d0990feb719678d71971aa849095982fd) --- .../nodemanager/recovery/TestNMLeveldbStateStoreService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/recovery/TestNMLeveldbStateStoreService.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/recovery/TestNMLeveldbStateStoreService.java index a702db90825..25270f2f559 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/recovery/TestNMLeveldbStateStoreService.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/test/java/org/apache/hadoop/yarn/server/nodemanager/recovery/TestNMLeveldbStateStoreService.java @@ -931,7 +931,7 @@ public class TestNMLeveldbStateStoreService { }; store.init(conf); store.start(); - verify(mockdb, timeout(10000)).compactRange( + verify(mockdb, timeout(10000).atLeastOnce()).compactRange( (byte[]) isNull(), (byte[]) isNull()); store.close(); }