Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-26797

Illegal cast to StaleConfigException is possible after moveChunk which fails with StaleConfigException

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.4.0-rc3
    • Affects Version/s: 3.4.0-rc1
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Hide

      Any moveChunk command where the caller has stale version should be able to exercise it.

      Show
      Any moveChunk command where the caller has stale version should be able to exercise it.
    • Sharding 2016-11-21

      The moveChunk command on the shard was made rejoinable for the purpose of supporting recovery of active migrations after balancer step down.

      A command which rejoins will take the status from the command which executed the actual move operation and call uassertStatusOK on it.

      However, the SendStaleConfig error code is treated specially and the resulting DBException is later cast to StaleConfigException. In this case, such a typecast will be illegal and may lead to accessing invalid memory.

            Assignee:
            misha.tyulenev@mongodb.com Misha Tyulenev (Inactive)
            Reporter:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: