Details
-
Bug
-
Status: Open (View Workflow)
-
Critical
-
Resolution: Unresolved
-
thinbackup1.10
Description
When Jenkins enters safe mode, if the executor is not shut down, the backup cannot be started, and the safe mode cannot be canceled, and Jenkins cannot run normally.
I gave the solution:When entering safe mode, force shutdown of running executors,
This will start the backup normally。In "\src\main\java\org\jvnet\hudson\plugins\thinbackup\utils\Utils.java"
if (!jenkins.isQuietingDown() && starttime + unit.toMillis(timeout) < System.currentTimeMillis()) {
LOGGER.info("Force quiet mode for jenkins now and wait until all executors are idle.");
jenkins.doQuietDown();
//below is added by wangruxun
for (final Computer computer : computers) {
if (computer.countBusy() != 0)
}
}
} while (running);
}
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Summary | Thinbackup-backup cannot start | Thinbackup-safemode--backup cannot start |
Description |
When Jenkins enters safe mode, if the executor is not shut down, the backup cannot be started, and the safe mode cannot be canceled, and Jenkins cannot run normally.
I gave the solution:When entering safe mode, force shutdown of running executors, This will start the backup normally。In "\src\main\java\org\jvnet\hudson\plugins\thinbackup\utils\Utils.java" if (!jenkins.isQuietingDown() && starttime + unit.toMillis(timeout) < System.currentTimeMillis()) { LOGGER.info("Force quiet mode for jenkins now and wait until all executors are idle."); jenkins.doQuietDown(); //below is added by wangruxun for (final Computer computer : computers) { if (computer.countBusy() != 0) { computer.interrupt();//强制关闭执行器 } } } } while (running); } |
When Jenkins enters safe mode, if the executor is not shut down, the backup cannot be started, and the safe mode cannot be canceled, and Jenkins cannot run normally.
I gave the solution:When entering safe mode, force shutdown of running executors, This will start the backup normally。In "\src\main\java\org\jvnet\hudson\plugins\thinbackup\utils\Utils.java" if (!jenkins.isQuietingDown() && starttime + unit.toMillis(timeout) < System.currentTimeMillis()) { LOGGER.info("Force quiet mode for jenkins now and wait until all executors are idle."); jenkins.doQuietDown(); //below is added by wangruxun for (final Computer computer : computers) { if (computer.countBusy() != 0) { computer.interrupt();//Force close the actuator } } } } while (running); } |
Priority | Minor [ 4 ] | Critical [ 2 ] |
Assignee | Thomas Fürer [ tofuatjava ] | Wang Ruxun [ JIRAUSER147632 ] |
Assignee | Wang Ruxun [ JIRAUSER147632 ] | Thomas Fürer [ tofuatjava ] |
Assignee | Thomas Fürer [ tofuatjava ] | Wang Ruxun [ JIRAUSER147632 ] |
Assignee | Wang Ruxun [ JIRAUSER147632 ] | thomas Fürer [ tofuatgit ] |
Sprint | Post-launch [ 151 ] |
Description |
When Jenkins enters safe mode, if the executor is not shut down, the backup cannot be started, and the safe mode cannot be canceled, and Jenkins cannot run normally.
I gave the solution:When entering safe mode, force shutdown of running executors, This will start the backup normally。In "\src\main\java\org\jvnet\hudson\plugins\thinbackup\utils\Utils.java" if (!jenkins.isQuietingDown() && starttime + unit.toMillis(timeout) < System.currentTimeMillis()) { LOGGER.info("Force quiet mode for jenkins now and wait until all executors are idle."); jenkins.doQuietDown(); //below is added by wangruxun for (final Computer computer : computers) { if (computer.countBusy() != 0) { computer.interrupt();//Force close the actuator } } } } while (running); } |
When Jenkins enters safe mode, if the executor is not shut down, the backup cannot be started, and the safe mode cannot be canceled, and Jenkins cannot run normally.
I gave the solution:When entering safe mode, force shutdown of running executors, |
Summary | Thinbackup-safemode--backup cannot start | Thinbackup-safemode |
Description |
When Jenkins enters safe mode, if the executor is not shut down, the backup cannot be started, and the safe mode cannot be canceled, and Jenkins cannot run normally.
I gave the solution:When entering safe mode, force shutdown of running executors, |
Description |
When Jenkins enters safe mode, if the executor is not shut down, the backup cannot be started, and the safe mode cannot be canceled, and Jenkins cannot run normally.
I gave the solution:When entering safe mode, force shutdown of running executors, This will start the backup normally。In "\src\main\java\org\jvnet\hudson\plugins\thinbackup\utils\Utils.java" if (!jenkins.isQuietingDown() && starttime + unit.toMillis(timeout) < System.currentTimeMillis()) { LOGGER.info("Force quiet mode for jenkins now and wait until all executors are idle."); jenkins.doQuietDown(); //below is added by wangruxun for (final Computer computer : computers) { if (computer.countBusy() != 0) { computer.interrupt();//Force close the actuator } } } } while (running); } |