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

          Pull requests are always welcome chbatey

          Peter Jönsson added a comment - Pull requests are always welcome chbatey

          Oleg Nenashev added a comment -

          KK does not maintain this plugin anymore. Moving to unassigned to set the expectation

          Oleg Nenashev added a comment - KK does not maintain this plugin anymore. Moving to unassigned to set the expectation

          Basil Crow added a comment -

          This issue is due to confusion between the command-line parameters of the Swarm client JAR vs the command-line parameters of the Remoting JAR. In the Swarm client JAR, one disables retries by specifying -noRetryAfterConnected. In the Remoting JAR, one disables retries by specifying -noreconnect. Please use the appropriate command-line argument based on which JAR you are calling.

          Basil Crow added a comment - This issue is due to confusion between the command-line parameters of the Swarm client JAR vs the command-line parameters of the Remoting JAR. In the Swarm client JAR, one disables retries by specifying -noRetryAfterConnected . In the Remoting JAR, one disables retries by specifying -noreconnect . Please use the appropriate command-line argument based on which JAR you are calling.

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

              Created:
              Updated:
              Resolved: