Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-4715

Reduce DocumentStore reads for local changes

Details

    Description

      The observation test added for OAK-4528 shows significant time spent in reading documents from the store when local changes are processed. Since those changes were done on the local cluster node, they should be served from cache and not reach out to the underlying store.

      Attachments

        Issue Links

          Activity

            Additional reads happen when new nodes are created on one cluster node and the associated revision is only from the local cluster node. The current code uses the after revision vector as is and therefore also includes revision components from other cluster nodes. Reading such new nodes later on the local cluster node will only use the local revision part for the revision vector and result in a cache miss.

            mreutegg Marcel Reutegger added a comment - Additional reads happen when new nodes are created on one cluster node and the associated revision is only from the local cluster node. The current code uses the after revision vector as is and therefore also includes revision components from other cluster nodes. Reading such new nodes later on the local cluster node will only use the local revision part for the revision vector and result in a cache miss.
            mreutegg Marcel Reutegger added a comment - Done in trunk: http://svn.apache.org/r1758213

            Slightly improved the test: http://svn.apache.org/r1758713

            mreutegg Marcel Reutegger added a comment - Slightly improved the test: http://svn.apache.org/r1758713

            Bulk close for 1.5.9

            edivad Davide Giannella added a comment - Bulk close for 1.5.9
            baedke Manfred Baedke added a comment - Fixed in 1.4: http://svn.apache.org/r1762686 .

            People

              mreutegg Marcel Reutegger
              mreutegg Marcel Reutegger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: