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

RDBBlobStore: garbage collection fails to delete DATA records when there was subsequent blobstore activity

    XMLWordPrintableJSON

Details

    • Technical task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0.29, 1.2.13, 1.4.1, 1.5.1
    • 1.0.30, 1.2.14, 1.4.3, 1.5.2, 1.6.0
    • blob, rdbmk
    • None

    Description

      The countDeleteChunks, the statement used to cleanup the DATA table will not affect any rows if there are any rows never than maxLastModified. This is because the alias m matches the wrong table name.

      Will add test case.

      The fix likely is to use fully qualified table names, like:

      dataStatement.append(" and not exists(select * from " + this.tnMeta + 
        " where " + this.tnMeta + ".ID = " + this.tnData + ".ID and LASTMOD > ?)");
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: