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

MongoDocumentStore should avoid logging warning when connect in read only mode

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.7.7, 1.8.0
    • mongomk
    • None

    Description

      Currently while connecting oak-run console to older oak/Mongo setups results in following warning logged

      11:14:49.313 [main] WARN  o.a.j.o.p.d.mongo.MongoDocumentStore - Detected an upgrade from Oak version <= 1.6. For optimal Revision GC performance it is recommended to create a partial index for the 'nodes' collection on {_deletedOnce:1, _modified:1} with a partialFilterExpression {_deletedOnce:true}. Partial indexes require MongoDB 3.2 or higher.
      11:14:49.320 [main] WARN  o.a.j.o.p.d.mongo.MongoDocumentStore - Detected an upgrade from Oak version <= 1.6. For optimal Revision GC performance it is recommended to create a sparse compound index for the 'nodes' collection on {_sdType:1, _sdMaxRevTime:1}.
      
      

      As the connect by default is read only we can avoid logging this warning.

      Attachments

        1. OAK-6588-v1.patch
          4 kB
          Chetan Mehrotra

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: