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

Removing a kafka node and recreating a node with the same name again fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: remoting-kafka-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.141 remoting-kafka-plugin-1.1.0
    • Similar Issues:

      Description

      After removing a Kafka agent from the nodes page and adding a node with the same name fails with:

       

      error in launching a slave. This is probably a bug in Jenkins.error in launching a slave. This is probably a bug in Jenkins.hudson.remoting.RequestAbortedException: hudson.remoting.Channel$OrderlyShutdown: Command Close created at at hudson.remoting.Request.abort(Request.java:340) at hudson.remoting.Channel.terminate(Channel.java:1038) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1271) at hudson.remoting.Channel$1.handle(Channel.java:565) at hudson.remoting.SynchronousCommandTransport$ReaderThread.run(SynchronousCommandTransport.java:87) Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to overtake at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741) at hudson.remoting.Request.call(Request.java:202) at hudson.remoting.Channel.call(Channel.java:954) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:622) at hudson.slaves.SlaveComputer.setChannel(SlaveComputer.java:465) at io.jenkins.plugins.remotingkafka.KafkaComputerLauncher$1.call(KafkaComputerLauncher.java:88) at io.jenkins.plugins.remotingkafka.KafkaComputerLauncher$1.call(KafkaComputerLauncher.java:74) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)Caused by: hudson.remoting.Channel$OrderlyShutdown: Command Close created at ... 3 moreCaused by: Command Close created at at hudson.remoting.Command.<init>(Command.java:68) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1265) at hudson.remoting.Channel$CloseCommand.<init>(Channel.java:1263) at hudson.remoting.Channel.close(Channel.java:1436) at hudson.remoting.Channel.close(Channel.java:1403) at hudson.remoting.Channel$CloseCommand.execute(Channel.java:1270) ... 2 more
      

       

      I noticed that when a Jenkins node is created for the first time it creates a new topic named JENKINSINSTANCE.PORT.NODENAME-topic. But nothing happens when the node is deleted.

      running on Kafka the following command

      bin/kafka-topics.sh --list --zookeeper localhost:2181
      

      I can see that the topic is still there after removing an agent.

      Workaround:

      Manually delete the topic in Kafka using

      bin/kafka-topics.sh --topic jenkinssecure.8081.overtakke-topic --delete --zookeeper localhost:2181
      

      and recreate the node in Jenkins

       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            pvtuan10 Pham Vu Tuan
            Reporter:
            fnaum Federico Naum
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: