0

Steps to reproduce

  1. After upgrading from 4.2 to 4.4, take backup using mongodump
  2. Now restore backup

On some collections, I am getting following {"alternate":"non-ignorable", "backwards":false, "caseFirst":"off", "caseLevel":false, "locale":"en_US", "maxVariable":"punct", "normalization":false, "numericOrdering":false, "strength":3, "version":"57.1"}. It seems whenever I get this, indexes don't get restored. And its not showing any understandable error.

Find detailed logs below

2021-09-19T09:03:58.931-0500    restoring indexes for collection reflecx_io_old.voc_20201021 from metadata
2021-09-19T09:03:58.931-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"language.code_1", "ns":"reflecx_io.voc_20201021", "v":2}, Key:primitive.D{primitive.E{Key:"language.code", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:58.931-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"survey_response.question.comment_type_1", "ns":"reflecx_io.voc_20201021", "v":2}, Key:primitive.D{primitive.E{Key:"survey_response.question.comment_type", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:58.932-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"text_analytics.response.sentiment_label_1", "ns":"reflecx_io.voc_20201021", "v":2}, Key:primitive.D{primitive.E{Key:"text_analytics.response.sentiment_label", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:58.932-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"text_analytics.response.categorization.sentiment_id_1", "ns":"reflecx_io.voc_20201021", "v":2}, Key:primitive.D{primitive.E{Key:"text_analytics.response.categorization.sentiment_id", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:58.932-0500    index: &idx.IndexDocument{Options:primitive.M{"collation":primitive.M{"alternate":"non-ignorable", "backwards":false, "caseFirst":"off", "caseLevel":false, "locale":"en_US", "maxVariable":"punct", "normalization":false, "numericOrdering":false, "strength":3, "version":"57.1"}, "name":"reporting.dealer.type_1", "ns":"reflecx_io.voc_20201021", "v":2}, Key:primitive.D{primitive.E{Key:"reporting.dealer.type", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:58.932-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"client_id_1", "ns":"reflecx_io.voc_20201021", "v":2}, Key:primitive.D{primitive.E{Key:"client_id", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:58.932-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"survey_response.response_id_1", "ns":"reflecx_io.voc_20201021", "v":2}, Key:primitive.D{primitive.E{Key:"survey_response.response_id", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:58.932-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"survey_response.question.q_code_1", "ns":"reflecx_io.voc_20201021", "v":2}, Key:primitive.D{primitive.E{Key:"survey_response.question.q_code", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:58.932-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"survey_response.question.o_code_1", "ns":"reflecx_io.voc_20201021", "v":2}, Key:primitive.D{primitive.E{Key:"survey_response.question.o_code", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:58.932-0500    index: &idx.IndexDocument{Options:primitive.M{"collation":primitive.M{"alternate":"non-ignorable", "backwards":false, "caseFirst":"off", "caseLevel":false, "locale":"en_US", "maxVariable":"punct", "normalization":false, "numericOrdering":false, "strength":3, "version":"57.1"}, "name":"survey_response.question.comment_1", "ns":"reflecx_io.voc_20201021", "v":2}, Key:primitive.D{primitive.E{Key:"survey_response.question.comment", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:58.932-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"text_analytics.response.sentiment_id_1", "ns":"reflecx_io.voc_20201021", "v":2}, Key:primitive.D{primitive.E{Key:"text_analytics.response.sentiment_id", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:58.932-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"text_analytics.response.categorization.sentiment_label_1", "ns":"reflecx_io.voc_20201021", "v":2}, Key:primitive.D{primitive.E{Key:"text_analytics.response.categorization.sentiment_label", Value:1}}, PartialFilterExpression:primitive.D(nil)}

Against some collections, indexes are being restored correctly, and the logs are given below,

2021-09-19T09:03:59.177-0500    restoring indexes for collection reflecx_io_old.org from metadata
2021-09-19T09:03:59.177-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"name_1", "ns":"reflecx_io.org", "v":2}, Key:primitive.D{primitive.E{Key:"name", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:59.177-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"parent_1", "ns":"reflecx_io.org", "v":2}, Key:primitive.D{primitive.E{Key:"parent", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:59.177-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"level_1", "ns":"reflecx_io.org", "v":2}, Key:primitive.D{primitive.E{Key:"level", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:59.177-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"identifier_1", "ns":"reflecx_io.org", "v":2}, Key:primitive.D{primitive.E{Key:"identifier", Value:1}}, PartialFilterExpression:primitive.D(nil)}
2021-09-19T09:03:59.177-0500    index: &idx.IndexDocument{Options:primitive.M{"name":"client_id_1", "ns":"reflecx_io.org", "v":2}, Key:primitive.D{primitive.E{Key:"client_id", Value:1}}, PartialFilterExpression:primitive.D(nil)}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.