use of functionaltests.utils.SchedulerTHelper in project scheduling by ow2-proactive.
the class RunningTaskRecoveryWithDownNodeTest method startDedicatedScheduler.
@Before
public void startDedicatedScheduler() throws Exception {
RMFactory.setOsJavaProperty();
schedulerHelper = new SchedulerTHelper(false, new File(SCHEDULER_CONFIGURATION_START.toURI()).getAbsolutePath(), new File(RM_CONFIGURATION_START.toURI()).getAbsolutePath(), null);
// timeout of 30 seconds for the running task and the scheduler to reconnect
PASchedulerProperties.SCHEDULER_NODE_PING_ATTEMPTS.updateProperty("3");
PASchedulerProperties.SCHEDULER_NODE_PING_FREQUENCY.updateProperty("10");
}
use of functionaltests.utils.SchedulerTHelper in project scheduling by ow2-proactive.
the class RunningTaskRecoveryWithDownNodeTest method restartScheduler.
private void restartScheduler() throws Exception {
schedulerHelper = new SchedulerTHelper(false, new File(SCHEDULER_CONFIGURATION_RESTART.toURI()).getAbsolutePath(), new File(RM_CONFIGURATION_RESTART.toURI()).getAbsolutePath(), null, false);
this.createNodes();
}
use of functionaltests.utils.SchedulerTHelper in project scheduling by ow2-proactive.
the class TestNodeDiesAtSchedulerRestart method nodeDiesAtSchedulerRestart.
@Test(timeout = 300000)
public void nodeDiesAtSchedulerRestart() throws Throwable {
testNode = schedulerHelper.createRMNodeStarterNode("nodeDiesAtSchedulerRestart");
schedulerHelper.waitForAnyNodeEvent(RMEventType.NODE_ADDED, 120000);
schedulerHelper.waitForAnyNodeEvent(RMEventType.NODE_STATE_CHANGED, 10000);
schedulerHelper.killScheduler();
Assert.assertFalse(testNode.getNodeProcess().isFinished());
schedulerHelper = new SchedulerTHelper(true, true);
int exitCode = testNode.getNodeProcess().waitFor();
Assert.assertEquals(306, exitCode);
}
use of functionaltests.utils.SchedulerTHelper in project scheduling by ow2-proactive.
the class TestRunAsMeLinuxNone method startDedicatedScheduler.
@BeforeClass
public static void startDedicatedScheduler() throws Exception {
assumeTrue(OperatingSystem.getOperatingSystem() == OperatingSystem.unix);
setupUser();
RMFactory.setOsJavaProperty();
// start an empty scheduler and add a node source with modified properties
schedulerHelper = new SchedulerTHelper(true, true);
List<String> arguments = new ArrayList<>();
arguments.addAll(RMTHelper.setup.getJvmParametersAsList());
arguments.add("-D" + ForkerUtils.FORK_METHOD_KEY + "=" + ForkerUtils.ForkMethod.NONE.toString());
schedulerHelper.createNodeSource("RunAsMeNSNone", 5, arguments);
}
use of functionaltests.utils.SchedulerTHelper in project scheduling by ow2-proactive.
the class TestRunAsMeLinuxPwd method startDedicatedScheduler.
@BeforeClass
public static void startDedicatedScheduler() throws Exception {
assumeTrue(OperatingSystem.getOperatingSystem() == OperatingSystem.unix);
setupUser();
RMFactory.setOsJavaProperty();
// start an empty scheduler and add a node source with modified properties
schedulerHelper = new SchedulerTHelper(true, true);
List<String> arguments = new ArrayList<>();
arguments.addAll(RMTHelper.setup.getJvmParametersAsList());
arguments.add("-D" + ForkerUtils.FORK_METHOD_KEY + "=" + ForkerUtils.ForkMethod.PWD.toString());
schedulerHelper.createNodeSource("RunAsMeNSPwd", 5, arguments);
}
Aggregations