|
@@ -91,6 +91,8 @@ public class RMStateStoreTestBase {
|
|
|
|
|
|
public static final Log LOG = LogFactory.getLog(RMStateStoreTestBase.class);
|
|
public static final Log LOG = LogFactory.getLog(RMStateStoreTestBase.class);
|
|
|
|
|
|
|
|
+ protected final long epoch = 10L;
|
|
|
|
+
|
|
static class TestDispatcher implements Dispatcher, EventHandler<Event> {
|
|
static class TestDispatcher implements Dispatcher, EventHandler<Event> {
|
|
|
|
|
|
ApplicationAttemptId attemptId;
|
|
ApplicationAttemptId attemptId;
|
|
@@ -564,13 +566,13 @@ public class RMStateStoreTestBase {
|
|
store.setRMDispatcher(new TestDispatcher());
|
|
store.setRMDispatcher(new TestDispatcher());
|
|
|
|
|
|
long firstTimeEpoch = store.getAndIncrementEpoch();
|
|
long firstTimeEpoch = store.getAndIncrementEpoch();
|
|
- Assert.assertEquals(0, firstTimeEpoch);
|
|
|
|
|
|
+ Assert.assertEquals(epoch, firstTimeEpoch);
|
|
|
|
|
|
long secondTimeEpoch = store.getAndIncrementEpoch();
|
|
long secondTimeEpoch = store.getAndIncrementEpoch();
|
|
- Assert.assertEquals(1, secondTimeEpoch);
|
|
|
|
|
|
+ Assert.assertEquals(epoch + 1, secondTimeEpoch);
|
|
|
|
|
|
long thirdTimeEpoch = store.getAndIncrementEpoch();
|
|
long thirdTimeEpoch = store.getAndIncrementEpoch();
|
|
- Assert.assertEquals(2, thirdTimeEpoch);
|
|
|
|
|
|
+ Assert.assertEquals(epoch + 2, thirdTimeEpoch);
|
|
}
|
|
}
|
|
|
|
|
|
public void testAppDeletion(RMStateStoreHelper stateStoreHelper)
|
|
public void testAppDeletion(RMStateStoreHelper stateStoreHelper)
|