Uploaded image for project: 'Apache Storm'
  1. Apache Storm
  2. STORM-2705

DRPCSpout sleeps twice when idle

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0, 1.2.0, 1.1.2, 1.0.5
    • storm-core
    • None

    Description

      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.

      Attachments

        1. drpc_idle_overhead.png
          177 kB
          Daniel Klessing

        Issue Links

          Activity

            People

              sakanaou Daniel Klessing
              sakanaou Daniel Klessing
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 50m
                  50m