Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-30900

Remove WARN on MongoDBIndexCreator because index is not in background

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2021.17
    • Component/s: Core MongoDB
    • Release Notes Summary:
      The WARN message on MongoDBIndexCreator because index is not in background has been removed.
    • Tags:
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #57
    • Story Points:
      2

      Description

      We want to avoid warns during the start of an instance created before 2021.8 because the contributed index has been created without the background option.
      This should be ignored because there is no behavior difference once the index is created.

      2022-02-23T09:29:02,808 WARN  [MongoDBIndexCreator] The index: aceinfo:id_1 has not the correct definition, please check you DB, expected: IndexModel{keys={"aceinfo:id": 1}, options=IndexOptions{background=true, unique=false, name='null', sparse=false, expireAfterSeconds=null, version=null, weights=null, defaultLanguage='null', languageOverride='null', textVersion=null, sphereVersion=null, bits=null, min=null, max=null, bucketSize=null, storageEngine=null, partialFilterExpression=null, collation=null, wildcardProjection=null, hidden=false}}, actual:{v=2, key={aceinfo:id=1}, name=aceinfo:id_1, ns=nuxeo.aceinfo}
      2022-02-23T09:29:03,016 WARN  [MongoDBIndexCreator] The index: ecm:parentId_1_ecm:name_1 has not the correct definition, please check you DB, expected: IndexModel{keys={"ecm:parentId": 1, "ecm:name": 1}, options=IndexOptions{background=false, unique=false, name='null', sparse=false, expireAfterSeconds=null, version=null, weights=null, defaultLanguage='null', languageOverride='null', textVersion=null, sphereVersion=null, bits=null, min=null, max=null, bucketSize=null, storageEngine=null, partialFilterExpression=Operator Filter{fieldName='ecm:parentId', operator='$exists', value=BsonBoolean{value=true}}, collation=null, wildcardProjection=null, hidden=false}}, actual:{v=2, key={ecm:parentId=1, ecm:name=1}, name=ecm:parentId_1_ecm:name_1, ns=nuxeo.default}
      2022-02-23T09:29:03,017 WARN  [MongoDBIndexCreator] The index: dc:modified_-1 has not the correct definition, please check you DB, expected: IndexModel{keys={"dc:modified": -1}, options=IndexOptions{background=true, unique=false, name='null', sparse=false, expireAfterSeconds=null, version=null, weights=null, defaultLanguage='null', languageOverride='null', textVersion=null, sphereVersion=null, bits=null, min=null, max=null, bucketSize=null, storageEngine=null, partialFilterExpression=null, collation=null, wildcardProjection=null, hidden=false}}, actual:{v=2, key={dc:modified=-1}, name=dc:modified_-1, ns=nuxeo.default}
      2022-02-23T09:29:03,032 WARN  [MongoDBIndexCreator] The index: collection:documentIds_1 has not the correct definition, please check you DB, expected: IndexModel{keys={"collection:documentIds": 1}, options=IndexOptions{background=true, unique=false, name='null', sparse=false, expireAfterSeconds=null, version=null, weights=null, defaultLanguage='null', languageOverride='null', textVersion=null, sphereVersion=null, bits=null, min=null, max=null, bucketSize=null, storageEngine=null, partialFilterExpression=null, collation=null, wildcardProjection=null, hidden=false}}, actual:{v=2, key={collection:documentIds=1}, name=collection:documentIds_1, ns=nuxeo.default}
      2022-02-23T09:29:03,033 WARN  [MongoDBIndexCreator] The index: comment:parentId_1 has not the correct definition, please check you DB, expected: IndexModel{keys={"comment:parentId": 1}, options=IndexOptions{background=true, unique=false, name='null', sparse=false, expireAfterSeconds=null, version=null, weights=null, defaultLanguage='null', languageOverride='null', textVersion=null, sphereVersion=null, bits=null, min=null, max=null, bucketSize=null, storageEngine=null, partialFilterExpression=null, collation=null, wildcardProjection=null, hidden=false}}, actual:{v=2, key={comment:parentId=1}, name=comment:parentId_1, ns=nuxeo.default}
      2022-02-23T09:29:03,034 WARN  [MongoDBIndexCreator] The index: annotation:xpath_1 has not the correct definition, please check you DB, expected: IndexModel{keys={"annotation:xpath": 1}, options=IndexOptions{background=true, unique=false, name='null', sparse=false, expireAfterSeconds=null, version=null, weights=null, defaultLanguage='null', languageOverride='null', textVersion=null, sphereVersion=null, bits=null, min=null, max=null, bucketSize=null, storageEngine=null, partialFilterExpression=null, collation=null, wildcardProjection=null, hidden=false}}, actual:{v=2, key={annotation:xpath=1}, name=annotation:xpath_1, ns=nuxeo.default}
      2022-02-23T09:29:03,035 WARN  [MongoDBIndexCreator] The index: rend:sourceId_1 has not the correct definition, please check you DB, expected: IndexModel{keys={"rend:sourceId": 1}, options=IndexOptions{background=true, unique=false, name='null', sparse=false, expireAfterSeconds=null, version=null, weights=null, defaultLanguage='null', languageOverride='null', textVersion=null, sphereVersion=null, bits=null, min=null, max=null, bucketSize=null, storageEngine=null, partialFilterExpression=null, collation=null, wildcardProjection=null, hidden=false}}, actual:{v=2, key={rend:sourceId=1}, name=rend:sourceId_1, ns=nuxeo.default}
      2022-02-23T09:29:03,035 WARN  [MongoDBIndexCreator] The index: rend:renditionName_1 has not the correct definition, please check you DB, expected: IndexModel{keys={"rend:renditionName": 1}, options=IndexOptions{background=true, unique=false, name='null', sparse=false, expireAfterSeconds=null, version=null, weights=null, defaultLanguage='null', languageOverride='null', textVersion=null, sphereVersion=null, bits=null, min=null, max=null, bucketSize=null, storageEngine=null, partialFilterExpression=null, collation=null, wildcardProjection=null, hidden=false}}, actual:{v=2, key={rend:renditionName=1}, name=rend:renditionName_1, ns=nuxeo.default}
      2022-02-23T09:29:03,036 WARN  [MongoDBIndexCreator] The index: rend:sourceVersionableId_1 has not the correct definition, please check you DB, expected: IndexModel{keys={"rend:sourceVersionableId": 1}, options=IndexOptions{background=true, unique=false, name='null', sparse=false, expireAfterSeconds=null, version=null, weights=null, defaultLanguage='null', languageOverride='null', textVersion=null, sphereVersion=null, bits=null, min=null, max=null, bucketSize=null, storageEngine=null, partialFilterExpression=null, collation=null, wildcardProjection=null, hidden=false}}, actual:{v=2, key={rend:sourceVersionableId=1}, name=rend:sourceVersionableId_1, ns=nuxeo.default}
      2022-02-23T09:29:03,037 WARN  [MongoDBIndexCreator] The index: collectionMember:collectionIds_1 has not the correct definition, please check you DB, expected: IndexModel{keys={"collectionMember:collectionIds": 1}, options=IndexOptions{background=true, unique=false, name='null', sparse=false, expireAfterSeconds=null, version=null, weights=null, defaultLanguage='null', languageOverride='null', textVersion=null, sphereVersion=null, bits=null, min=null, max=null, bucketSize=null, storageEngine=null, partialFilterExpression=null, collation=null, wildcardProjection=null, hidden=false}}, actual:{v=2, key={collectionMember:collectionIds=1}, name=collectionMember:collectionIds_1, ns=nuxeo.default}
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: