Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9417

Allow daemons to terminate when they finish iterating a topic

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: None
    • Fix Version/s: 6.3
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      The daemon expression currently runs until it's killed. This ticket will add a new terminate parameter to the daemon expression that will allow the daemon to shut itself down when it's finished processing a topic.

      There are a couple of small changes that need to be made to allow the daemon to terminate on it's own:

      1) The daemon will need to be passed the Map of all daemons in the /stream handler. This will allow the DaemonStream to remove itself from the Map when it terminates.
      2) Logic needs to be added for the daemon to exit it's run loop if the topic signals it had a zero Tuple run. The sleepMillis value in the EOF Tuple can be used for this purpose. If sleepMillis is greater then 0 then this signals a zero Tuple run.

        Attachments

        1. SOLR-9417.patch
          21 kB
          Joel Bernstein
        2. SOLR-9417.patch
          11 kB
          Joel Bernstein
        3. SOLR-9417.patch
          6 kB
          Joel Bernstein

          Activity

            People

            • Assignee:
              joel.bernstein Joel Bernstein
              Reporter:
              joel.bernstein Joel Bernstein
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: