Chunk migrations fail in geo_s2disjoint_holes.js test

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • ALL
    • Hide

      Remove the `assumes_balancer_off` from the geo_s2disjoint_holes.js test and run it against the `sharded_collections_jscore_passthrough_with_config_transitions_and_add_remove_shard` suite.

      Show
      Remove the `assumes_balancer_off` from the geo_s2disjoint_holes.js test and run it against the `sharded_collections_jscore_passthrough_with_config_transitions_and_add_remove_shard` suite.
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The test geo_s2disjoint_holes.js has been recently enabled for sharded collections under SERVER-83211.

      This uncovered a failure on the `geo_s2disjoint_holes.js` test: chunk migrations fail on collections that uses geo spatial indexes when a shard is draining, the error is the following one:

      2025-11-06T12:23:02.300+00:00 I  MIGRATE  6718407 [S] [ChunkMigrationInserters-0] "Batch application failed","attr":{"error":{"code":16755,"codeName":"Location16755","errmsg":"Insert of { _id: ObjectId('690c8fa0fe7cbc45194e1548'), p: { type: \"MultiPolygon\", coordinates: [ [ [ [ 9.0, 9.0 ], [ 9.0, 11.0 ], [ 11.0, 11.0 ], [ 11.0, 9.0 ], [ 9.0, 9.0 ] ], [ [ 0.0, 0.0 ], [ 0.0, 1.0 ], [ 1.0, 1.0 ], [ 1.0, 0.0 ], [ 0.0, 0.0 ] ] ] ] } } failed. :: caused by :: Can't extract geo keys: { _id: ObjectId('690c8fa0fe7cbc45194e1548'), p: { type: \"MultiPolygon\", coordinates: [ [ [ [ 9.0, 9.0 ], [ 9.0, 11.0 ], [ 11.0, 11.0 ], [ 11.0, 9.0 ], [ 9.0, 9.0 ] ], [ [ 0.0, 0.0 ], [ 0.0, 1.0 ], [ 1.0, 1.0 ], [ 1.0, 0.0 ], [ 0.0, 0.0 ] ] ] ] } }  Secondary loops not contained by first exterior loop - secondary loops must be holes: [ [ 0.0, 0.0 ], [ 0.0, 1.0 ], [ 1.0, 1.0 ], [ 1.0, 0.0 ], [ 0.0, 0.0 ] ] first loop: [ [ 9.0, 9.0 ], [ 9.0, 11.0 ], [ 11.0, 11.0 ], [ 11.0, 9.0 ], [ 9.0, 9.0 ] ]"},"namespace":"test.geo_s2disjoint_holes_2"}
      

      You'll find the evg logs in the comments of this ticket.

      The goal of this task is to understand and fix the issue and enable the test on the `sharded_collections_jscore_passthrough_with_config_transitions_and_add_remove_shard` suite.

            Assignee:
            Unassigned
            Reporter:
            Silvia Surroca
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: