Uploaded image for project: 'Zoie'
  1. ZOIE-108

processBatch() may block realtime consume

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 3.1.0
    • Fix versions: 3.2.0
    • Components: core
    • Labels:
      None
    • Sprint:

      Description

      In RealtimeIndexDataLoader, the consume() method add the doc into ram index within a synchronized block. And the processBatch() method which responsible for merging ram index to fs index is also in synchronized. I think these two method will block each other and thus zoie will lose realtime feature while merging ram index to fs.

        Attachments

          Activity

            People

            • Assignee:
              jwang John Wang
              Reporter:
              jwang John Wang
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: