Daniel Klessing created STORM-2705:
--------------------------------------

             Summary: DRPCSpout sleeps twice when idle
                 Key: STORM-2705
                 URL: https://issues.apache.org/jira/browse/STORM-2705
             Project: Apache Storm
          Issue Type: Bug
          Components: storm-core
            Reporter: Daniel Klessing
         Attachments: drpc_idle_overhead.png

Profiling our topology I noticed that the {{DRPCSpout}} actually sleeps twice 
if it has nothing to do. This is due to a {{Utils.sleep(1)}} call at the end of 
{{nextTuple()}} while the {{SleepSpoutWaitStrategy}} performs the default sleep 
if a spout did not emit any tuple.

This causes - in my understanding - unnecessary context switches, especially 
with a high number of parallelism.

Attached the corresponding YourKit screenshot.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to