Skip to content

Commit

Permalink
Eliminate some warnings during cache invalidation
Browse files Browse the repository at this point in the history
Some filters (e.g. GT/LT) are not supported in "in memory mode" and
probably won't be for some time. This commit makes exceptions related
to this fact silent. See MID-5630 and MID-5657.
  • Loading branch information
mederly committed Aug 15, 2019
1 parent 7a56ba3 commit 8859c93
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -215,6 +215,11 @@ boolean mayAffect(QueryKey queryKey, SearchResultList list, MatchingRuleRegistry
}
try {
return mayMatchAfterChange(filter, list, matchingRuleRegistry);
} catch (UnsupportedOperationException e) {
LOGGER.debug("Couldn't match object being changed to cached query because the filter is not (yet) supported -- "
+ "continuing as if there might be an overlap:\n"
+ "change description = {}\nfilter = {}", this, filter, e);
return true;
} catch (Throwable t) {
LOGGER.warn("Couldn't match object being changed to cached query -- continuing as if there might be an overlap:\n"
+ "change description = {}\nfilter = {}", this, filter, t);
Expand Down

0 comments on commit 8859c93

Please sign in to comment.