Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-11908

Creating client without subscribing to a topic causes infinite loop

    XMLWordPrintable

Details

    • Bug Report
    • Resolution: Unresolved
    • L3 - Default
    • None
    • None
    • None

    Description

      What are the steps to reproduce your problem?

      Just try that:

      public static void main(String[] args) throws InterruptedException {
          ExternalTaskClient client = ExternalTaskClient.create()
              .baseUrl("http://localhost:8080/engine-rest")
              .asyncResponseTimeout(1000)
              .build();
      
          Thread.sleep(300_000);
      }
      

      What is the problem?

      CPU usage goes to 100% (for one thread).

      What would be the expected behavior:

      Keep calm and wait for subscription.

      Hints (optional):

      This goes wild: camunda-external-task-client-java/client/src/main/java/org/camunda/bpm/client/topic/impl/TopicSubscriptionManager.java

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Activity

            People

              Unassigned Unassigned
              ragnar.nevries Ragnar Nevries
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Salesforce