The return value was always false which caused index query listeners to
never be fired upon index replace operations. This in turn caused
potentially invalidated query results to be returne for database
clients.
The regression was introduced in commit
702195f3 for release/1.28.0.
refs #7665
Change-Id: I9103f0fd9001ffc42f85633bc6a11d77ed863613
(cherry picked from commit
480b0e3c16a3958a21de00707b9957c422c21c88)
// Could not write index for some reason. Ignore and let the next index query reinitialize the index.
return true;
}
// Could not write index for some reason. Ignore and let the next index query reinitialize the index.
return true;
}
- searcher.replaceIndex(progress.newChild(40), key, keyValues, relation, 1, documents);
+ didChange |= searcher.replaceIndex(progress.newChild(40), key, keyValues, relation, 1, documents);
} catch (InvalidResourceReferenceException e) {
throw new IndexException(e);
} catch (InvalidResourceReferenceException e) {
throw new IndexException(e);