open-horizon / edge-sync-service

Cloud - Edge synchronization service (MMS)
Apache License 2.0
24 stars 26 forks source link

MongoDB6: Failed to create index when it exists #154

Open LiilyZhang opened 1 month ago

LiilyZhang commented 1 month ago

CSS Failed to create syncObjects-destination-policy.services.service-id index in MongoDB if it already exists

CSS: 2024/09/06 14:09:42 ERROR: Failed to create an index on syncObjects. Error: (IndexKeySpecsConflict) An existing index has the same name as the requested index. When index names are not specified, they are auto generated and can cause conflicts. Please refer to our documentation. Requested index: { v: 2, unique: true, key: { metadata.destination-org-id: -1, metadata.destination-policy.services.org-id: -1, metadata.destination-policy.services.service-name: -1 }, name: "syncObjects-destination-policy.services.service-id" }, existing index: { v: 2, key: { metadata.destination-org-id: 1, metadata.destination-policy.services.org-id: 1, metadata.destination-policy.services.service-name: 1 }, name: "syncObjects-destination-policy.services.service-id", sparse: true }