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/07/28 15:40:20 UTC

[jira] [Created] (OAK-4615) RDBDocumentStore: in 1.0, cache invalidation is slightly different from 1.2

Julian Reschke created OAK-4615:
-----------------------------------

             Summary: 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: Task
          Components: rdbmk
    Affects Versions: 1.0.32
            Reporter: Julian Reschke
            Assignee: Julian Reschke


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)