-Re: thread safety of IndexedDocIterator
Billie Rinaldi 2012-11-05, 19:30
On Mon, Nov 5, 2012 at 11:24 AM, Sukant Hajra <[EMAIL PROTECTED]>wrote:
> We noticed that IndexedDocIterator.java has the following private static
> private static Text indexColf = DEFAULT_INDEX_COLF;
> private static Text docColf = DEFAULT_DOC_COLF;
> The init method, which sets these is synchronized. Still, though, this
> synchronization doesn't seem enough to allow different runs of the
> iterator to
> use different values for indexColf and docColf. One run will set the
> variables one way atomically in the synchronized init method. . . and
> run and immediately interleave in alternate "Colf" settings, which breaks
> original iterator run.
> For now, we're not touching the indexColf and docColf, just leaving it as
> We're not blocked by this. We're just curious if there's a bug in this
> Also, if it's not a defect, we're interested in learning what system
> of iterator execution makes this not a problem.
Sounds like a bug. Feel free to open a ticket!