-
Notifications
You must be signed in to change notification settings - Fork 192
Cache Eviction not working #1369
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
type: bug
A general bug
Comments
the cacheEvict test case does not check that user1 is evicted. Only that user2 is not evicted.
|
mikereiche
added a commit
that referenced
this issue
Mar 16, 2022
5 tasks
mikereiche
added a commit
that referenced
this issue
Mar 16, 2022
Closes #1369. Co-authored-by: Michael Reiche <[email protected]>
mikereiche
added a commit
that referenced
this issue
Mar 16, 2022
mikereiche
added a commit
that referenced
this issue
Mar 16, 2022
5 tasks
mikereiche
added a commit
that referenced
this issue
Mar 16, 2022
mikereiche
added a commit
that referenced
this issue
Mar 16, 2022
Closes #1369. Co-authored-by: Michael Reiche <[email protected]>
mikereiche
added a commit
that referenced
this issue
Mar 16, 2022
mikereiche
added a commit
that referenced
this issue
Mar 16, 2022
Closes #1369. Co-authored-by: Michael Reiche <[email protected]>
mikereiche
added a commit
that referenced
this issue
Mar 16, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cache eviction is not taking into account the scope and collection, only the bucket. The problem seems to be in the DefaultCouchbaseCacheWriter.clear(String) method.
public long clear(final String pattern) {
QueryResult result = clientFactory.getCluster().query(
"DELETE FROM
" + clientFactory.getBucket().name() + "
where meta().id LIKE $pattern",queryOptions().metrics(true).parameters(JsonObject.create().put("pattern", pattern + "%")));
return result.metaData().metrics().map(QueryMetrics::mutationCount).orElse(0L);
}
The text was updated successfully, but these errors were encountered: