Skip to content

Commit

Permalink
chore: async remove left index should't effect query
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxxoo committed Apr 17, 2023
1 parent 7b6a4bd commit ba71834
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1725,7 +1725,12 @@ private boolean rightResultFromIndexQuery(Query query, HugeElement elem) {
* Both have correct and left index, wo should return true
* but also needs to cleaned up left index
*/
this.indexTx.asyncRemoveIndexLeft(cq, elem);
try {
this.indexTx.asyncRemoveIndexLeft(cq, elem);
} catch (Throwable e) {
LOG.warn("Failed to remove left index for query '{}', " +
"element '{}'", cq, elem, e);
}
}

/* Return true if:
Expand All @@ -1737,7 +1742,12 @@ private boolean rightResultFromIndexQuery(Query query, HugeElement elem) {
}

if (cq.optimized() == OptimizedType.INDEX) {
this.indexTx.asyncRemoveIndexLeft(cq, elem);
try {
this.indexTx.asyncRemoveIndexLeft(cq, elem);
} catch (Throwable e) {
LOG.warn("Failed to remove left index for query '{}', " +
"element '{}'", cq, elem, e);
}
}
return false;
}
Expand Down

0 comments on commit ba71834

Please sign in to comment.