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

Creating client without subscribing to a topic causes infinite loop

XMLWordPrintable

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

      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

        This is the controller panel for Smart Panels app

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

                Created:
                Updated: