private StateChangeRequestInfo convert(HAStateChangeRequestInfoProto proto) { RequestSource src; switch (proto.getReqSource()) { case REQUEST_BY_USER: src = RequestSource.REQUEST_BY_USER; break; case REQUEST_BY_USER_FORCED: src = RequestSource.REQUEST_BY_USER_FORCED; break; case REQUEST_BY_ZKFC: src = RequestSource.REQUEST_BY_ZKFC; break; default: LOG.warn("Unknown request source: " + proto.getReqSource()); src = null; } return new StateChangeRequestInfo(src); }
boolean autoHaEnabled = getConf().getBoolean( DFS_HA_AUTO_FAILOVER_ENABLED_KEY, DFS_HA_AUTO_FAILOVER_ENABLED_DEFAULT); switch (req.getSource()) { case REQUEST_BY_USER: if (autoHaEnabled) {
public void testFailoverAfterRemoveQueue() throws Exception { HAServiceProtocol.StateChangeRequestInfo req = new HAServiceProtocol.StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER);
final StateChangeRequestInfo req = new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER);
public void testFailoverReadsFromUpdatedStore() throws Exception { HAServiceProtocol.StateChangeRequestInfo req = new HAServiceProtocol.StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER);
StateChangeRequestInfo requestInfo = new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER);
StateChangeRequestInfo requestInfo = new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER);
rm.init(conf); final StateChangeRequestInfo requestInfo = new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER);
new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER); checkMonitorHealth();
rm.start(); final StateChangeRequestInfo requestInfo = new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER); FailFastDispatcher dispatcher =
@Test public void testRMHAWithFileSystemBasedConfiguration() throws IOException, YarnException { StateChangeRequestInfo requestInfo = new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER); updateConfigurationForRMHA();
@Test public void testRMHAWithFileSystemBasedConfiguration() throws IOException, YarnException { StateChangeRequestInfo requestInfo = new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER); updateConfigurationForRMHA();
new HAServiceProtocol.StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER);
rm.start(); final StateChangeRequestInfo requestInfo = new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER); FailFastDispatcher dispatcher =
rm.init(conf); final StateChangeRequestInfo requestInfo = new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER);
StateChangeRequestInfo req = new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER); String rootPath =
assertTrue(expectedEventHandlerCount != 0); StateChangeRequestInfo requestInfo = new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER);
new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER); checkMonitorHealth();
new HAServiceProtocol.StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER); rm2.adminService.transitionToStandby(requestInfo);
assertTrue(expectedEventHandlerCount != 0); StateChangeRequestInfo requestInfo = new StateChangeRequestInfo( HAServiceProtocol.RequestSource.REQUEST_BY_USER);