-
Bug
-
Resolution: Unresolved
-
Critical
-
thinbackup1.10
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);
}
[JENKINS-69040] Thinbackup-safemode
Summary | Original: Thinbackup-backup cannot start | New: Thinbackup-safemode--backup cannot start |
Description |
Original:
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); } |
New:
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 | Original: Minor [ 4 ] | New: Critical [ 2 ] |
Assignee | Original: Thomas Fürer [ tofuatjava ] | New: Wang Ruxun [ wangruxun ] |
Assignee | Original: Wang Ruxun [ wangruxun ] | New: Thomas Fürer [ tofuatjava ] |
Assignee | Original: Thomas Fürer [ tofuatjava ] | New: Wang Ruxun [ wangruxun ] |
Assignee | Original: Wang Ruxun [ wangruxun ] | New: thomas Fürer [ tofuatgit ] |
Sprint | Original: Post-launch [ 151 ] |
Description |
Original:
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); } |
New:
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 | Original: Thinbackup-safemode--backup cannot start | New: Thinbackup-safemode |