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);
      }

          [JENKINS-69040] Thinbackup-safemode

          Wang Ruxun created issue -

          Wang Ruxun added a comment - - edited

          I think this is a solution,and experimented,Backup can start normally

          Wang Ruxun added a comment - - edited I think this is a solution,and experimented,Backup can start normally
          Wang Ruxun made changes -
          Summary Original: Thinbackup-backup cannot start New: Thinbackup-safemode--backup cannot start
          Wang Ruxun made changes -
          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);
          }
          Wang Ruxun made changes -
          Priority Original: Minor [ 4 ] New: Critical [ 2 ]
          Wang Ruxun made changes -
          Assignee Original: Thomas Fürer [ tofuatjava ] New: Wang Ruxun [ wangruxun ]
          Wang Ruxun made changes -
          Assignee Original: Wang Ruxun [ wangruxun ] New: Thomas Fürer [ tofuatjava ]
          Wang Ruxun made changes -
          Assignee Original: Thomas Fürer [ tofuatjava ] New: Wang Ruxun [ wangruxun ]
          Wang Ruxun made changes -
          Assignee Original: Wang Ruxun [ wangruxun ] New: thomas Fürer [ tofuatgit ]
          Mark Waite made changes -
          Sprint Original: Post-launch [ 151 ]

            tofuatgit thomas Fürer
            wangruxun Wang Ruxun
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: