Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-69040

Thinbackup-safemode

    XMLWordPrintable

Details

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

      Attachments

        Activity

          wangruxun Wang Ruxun created issue -
          wangruxun Wang Ruxun added a comment - - edited

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

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

           
          wangruxun Wang Ruxun made changes -
          Summary Thinbackup-safemode--backup cannot start Thinbackup-safemode
          wangruxun Wang Ruxun made changes -
          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,

           
          markewaite Mark Waite added a comment -

          There is not enough information in this issue report for anyone to act on the report. If more information is not provided, I'll close the issue as "Cannot reproduce".

          markewaite Mark Waite added a comment - There is not enough information in this issue report for anyone to act on the report. If more information is not provided, I'll close the issue as "Cannot reproduce".
          wangruxun Wang Ruxun added a comment - - edited

          I will open this issue on October。Feasibility is being studied。I want to do better

           

           

          wangruxun Wang Ruxun added a comment - - edited I will open this issue on October。Feasibility is being studied。I want to do better    
          wangruxun Wang Ruxun made changes -
          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);
          }

          People

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

            Dates

              Created:
              Updated: