splitChunk returns error but splits anyway, no entry in changelog

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.0.9, 2.2.6, 2.4.8
    • Component/s: Sharding
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Moving the last chunk away from a shard, then back onto that shard, and trying to split it will cause an error. The chunk is still split though. The split does not appear in the changelog however.

      Error:

      {
      	"cause" : {
      		"errmsg" : "exception: couldn't find chunk { _id: MinKey }->{ _id: MaxKey }",
      		"code" : 13586,
      		"ok" : 0
      	},
      	"ok" : 0,
      	"errmsg" : "split failed"
      }
      

      jstest attached.

      The test fails in all mentioned affected versions. In 2.5.4 it succeeds without failure.

        1. movelastchunksplit.js
          0.7 kB
          Thomas Rueckstiess

            Assignee:
            Matthew Saltz (Inactive)
            Reporter:
            Thomas Rueckstiess (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: