-
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
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}
- is related to
-
NXP-30865 Don't prevent Nuxeo from starting if MongoDB indexes are not correct
- Resolved