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

DataStoreBlobStore does not take into maxLastModifiedTime when fetching all chunks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.20
    • core
    • None

    Description

      Currently the DataStoreBlobStore has a pending TODO

       @Override
          public Iterator<String> getAllChunkIds(long maxLastModifiedTime) throws Exception {
              //TODO Ignores the maxLastModifiedTime currently.
              return Iterators.transform(delegate.getAllIdentifiers(), new Function<DataIdentifier, String>() {
                  @Nullable
                  @Override
                  public String apply(@Nullable DataIdentifier input) {
                      return input.toString();
                  }
              });
          }
      

      Due to this it currently returns all blobId. This would issue when new binary gets created while a blob gc is running as such binaries might be considered orphan and deleted

      Attachments

        Activity

          People

            chetanm Chetan Mehrotra
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: