processBatch() may block realtime consume

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.

Environment

None

Status

Assignee

John Wang

Reporter

John Wang

Labels

None

Components

Fix versions

Affects versions

3.1.0

Priority

Major
Configure