You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2016/08/26 09:14:21 UTC
[jira] [Updated] (OAK-4615) RDBDocumentStore: in 1.0, cache
invalidation is slightly different from 1.2
[ https://issues.apache.org/jira/browse/OAK-4615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Reschke updated OAK-4615:
--------------------------------
Affects Version/s: (was: 1.0.32)
1.2.18
> RDBDocumentStore: in 1.0, cache invalidation is slightly different from 1.2
> ---------------------------------------------------------------------------
>
> Key: OAK-4615
> URL: https://issues.apache.org/jira/browse/OAK-4615
> Project: Jackrabbit Oak
> Issue Type: Technical task
> Components: rdbmk
> Affects Versions: 1.2.18
> Reporter: Julian Reschke
> Assignee: Julian Reschke
> Attachments: OAK-4615.diff
>
>
> The difference is:
> {noformat}
> ***************
> *** 1128,1140 ****
> String appendData = ser.asString(update);
> for (List<String> chunkedIds : Lists.partition(ids, CHUNKSIZE)) {
> Set<QueryContext> seenQueryContext = Collections.emptySet();
> if (collection == Collection.NODES) {
> - for (String id : chunkedIds) {
> - nodesCache.invalidate(id);
> - }
> -
> // keep concurrently running queries from updating
> // the cache entry for this key
> seenQueryContext = new HashSet<QueryContext>();
> --- 1128,1137 ----
> String appendData = ser.asString(update);
> for (List<String> chunkedIds : Lists.partition(ids, CHUNKSIZE)) {
> +
> Set<QueryContext> seenQueryContext = Collections.emptySet();
> if (collection == Collection.NODES) {
> // keep concurrently running queries from updating
> // the cache entry for this key
> seenQueryContext = new HashSet<QueryContext>();
> ***************
> *** 1142,1147 ****
> --- 1139,1147 ----
> qc.addKeys(chunkedIds);
> seenQueryContext.add(qc);
> }
> + for (String id : chunkedIds) {
> + nodesCache.invalidate(id);
> + }
> }
> {noformat}
> and seems to be caused by the change for OAK-3657.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)