Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1266 DocumentStore implementation for relational databases
  3. OAK-5622

RDBDocumentStore: improve logic that decides whether to try string appends

    XMLWordPrintableJSON

Details

    • Technical task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • documentmk
    • None

    Description

      While looking at log output for OAK-5387, it became clear that in at least that particular test, we are trying updates that we could know in advance to fail.

      This is because in this test, all nodes get the same batched appending updates, thus their DATA column will exceed the maximum length for all nodes at the same time.

      The correctly working per-document retry logic however immediately tries again an append, which consequently fails, and only then tries a full rewrite.

      We could avoid this by leveraging DSIZE from the DB, currently there only for debug purposed. We would always fetch it, put it into RDBRow, expose it in Document and then make use of it in the decision logic.

      Attachments

        1. OAK-5622.diff
          15 kB
          Julian Reschke

        Issue Links

          Activity

            People

              Unassigned Unassigned
              reschke Julian Reschke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: