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

Jenkins remoting goesn't honour -noreconnect option

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • swarm-plugin
    • None

      When using the swam plugin and the master is restarted the swarm client attempts to reconnect 10 times even though we have specified -noreconnect.

      The ConnectException is coming from Engine.java in the remoting dependency.

      Engine.connect has 10 hard coded retries. The reconnect flag is only checked in the method that calls connect.

      We'd also like to configure the number of retries.

      We're happy to raise a PR to fix this if you'll accept it.

          [JENKINS-32923] Jenkins remoting goesn't honour -noreconnect option

          Christopher Batey created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 168635 ] New: JNJira + In-Review [ 183210 ]
          Oleg Nenashev made changes -
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ]
          Basil Crow made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]

            Unassigned Unassigned
            chbatey Christopher Batey
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: