Skip to content

Commit e44f47c

Browse files
authored
Fix AccumuloStoreFateIT.testCreateWithKeyInProgress (apache#4291)
* added the expected status to the txStore before calling delete()
1 parent 78f6430 commit e44f47c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/src/main/java/org/apache/accumulo/test/fate/accumulo/FateStoreIT.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ protected void testCreateWithKeyInProgress(FateStore<TestEnv> store, ServerConte
332332
FateKey fateKey = FateKey.forSplit(ke);
333333

334334
FateTxStore<TestEnv> txStore = store.createAndReserve(fateKey).orElseThrow();
335-
;
335+
336336
try {
337337
assertTrue(txStore.timeCreated() > 0);
338338
txStore.setStatus(TStatus.IN_PROGRESS);
@@ -342,6 +342,7 @@ protected void testCreateWithKeyInProgress(FateStore<TestEnv> store, ServerConte
342342
assertTrue(create(store, fateKey).isEmpty());
343343
assertEquals(TStatus.IN_PROGRESS, txStore.getStatus());
344344
} finally {
345+
txStore.setStatus(TStatus.SUCCESSFUL);
345346
txStore.delete();
346347
txStore.unreserve(0, TimeUnit.SECONDS);
347348
}

0 commit comments

Comments
 (0)