[ 
https://issues.apache.org/jira/browse/OAK-4615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Amit Jain closed OAK-4615.
--------------------------

Close for 1.2.19

> 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
>             Fix For: 1.2.19
>
>         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)

Reply via email to