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

Allow the DaemonStream run rate be controlled by the internal stream

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Implemented
    • None
    • 6.0, 7.0
    • None
    • None

    Description

      Currently the DaemonStream sleeps for one second and then checks the runInterval param to determine if it needs to rerun the internal stream.

      This setup will work fine if the runInterval is longer then one second and if it never changes. But with the TopicStream, you want a variable run rate. For example if the TopicStream's latest run has returned documents, the next run should be immediate. But if the TopicStream's latest run returned zero documents then you'd want to sleep for a period of time before starting the next run.

      This ticket allows the internal stream to control the DaemonStream run rate by adding a sleepMillis key-pair to the EOF Tuple. After each run the DaemonStream will check the EOF Tuple from the internal stream and if the sleepMillis key-pair is present it will adjust it's run rate accordingly.

      Attachments

        1. SOLR-8878.patch
          8 kB
          Joel Bernstein
        2. SOLR-8878.patch
          4 kB
          Joel Bernstein

        Activity

          People

            Unassigned Unassigned
            jbernste Joel Bernstein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: