YARN-7357. Several methods in TestZKRMStateStore.TestZKRMStateStoreTester.TestZKRMStateStoreInternal should have @Override annotations
(Contributed by Sen Zhao via Daniel Templeton)
(cherry picked from commit 0553f5a012e14c8ceb40a16161440384f9f3a9a8)
(cherry picked from commit 9da9023371
)
This commit is contained in:
parent
2b04ae918c
commit
08cfd010a3
|
@ -148,6 +148,7 @@ public class TestZKRMStateStore extends RMStateStoreTestBase {
|
|||
return znodeWorkingPath + "/" + ROOT_ZNODE_NAME + "/" + VERSION_NODE;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Version getCurrentVersion() {
|
||||
return CURRENT_VERSION_INFO;
|
||||
}
|
||||
|
@ -197,6 +198,7 @@ public class TestZKRMStateStore extends RMStateStoreTestBase {
|
|||
return createStore(conf);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RMStateStore getRMStateStore() throws Exception {
|
||||
YarnConfiguration conf = new YarnConfiguration();
|
||||
return createStore(conf);
|
||||
|
@ -220,6 +222,7 @@ public class TestZKRMStateStore extends RMStateStoreTestBase {
|
|||
return store.getCurrentVersion();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean appExists(RMApp app) throws Exception {
|
||||
String appIdPath = app.getApplicationId().toString();
|
||||
int split =
|
||||
|
@ -229,6 +232,7 @@ public class TestZKRMStateStore extends RMStateStoreTestBase {
|
|||
.forPath(store.getAppNode(appIdPath, split));
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean attemptExists(RMAppAttempt attempt) throws Exception {
|
||||
ApplicationAttemptId attemptId = attempt.getAppAttemptId();
|
||||
return null != curatorFramework.checkExists()
|
||||
|
@ -278,6 +282,7 @@ public class TestZKRMStateStore extends RMStateStoreTestBase {
|
|||
static class TestAppRejDispatcher extends TestDispatcher {
|
||||
private boolean appsavefailedEvnt;
|
||||
|
||||
@Override
|
||||
public void handle(Event event) {
|
||||
if (event instanceof RMAppEvent && event.getType()
|
||||
.equals(RMAppEventType.APP_SAVE_FAILED)) {
|
||||
|
|
Loading…
Reference in New Issue