xingjian shu
unread,Mar 15, 2012, 12:05:04 AM3/15/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to zoie
In class RealtimeIndexDataLoader.java,
we can see method processBatch() is synchronized
and also in the method consume(Collection<DataEvent<D>> events)
there is a synchronized (this) block with comment "this blocks the
batch disk loader thread while indexing to RAM".
Because they are synchronized, we can't execute them at the same time
in two different threads.
Does this means, while disk index and RAM_A index is mergying, zoie
cannot add document to RAM_B?