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

Reemit late tuples in windowed mode

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0, 1.1.0
    • Component/s: storm-core
    • Labels:
      None

      Description

      Currently late tuples are just logged (and acknowledged in the coming 1.0.2), but in our use-case it would be desirable to emit them on a different stream than the default.

      I implemented a first version, where every windowed bolt are going to have a '_late' stream by default, and component-specific parameter (Config.TOPOLOGY_BOLTS_EMIT_LATE_TUPLE) the definer of the bolt could turn on or off the emission of the late tuples on this stream.

      One could turn on the emission of late tuples with a builder method like this:

      MyWindowedBolt.java
      new MyWindowedBolt()
              .withTimestampField("timestamp")
              .withLateTupleEmission(true)
              .withWindow(
                      new BaseWindowedBolt.Duration(1, TimeUnit.MINUTES),
                      new BaseWindowedBolt.Duration(1, TimeUnit.SECONDS)
              );
      

      What do you think about it?

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kosii Balazs Kossovics
                Reporter:
                kosii Balazs Kossovics
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: