[v8.0] Improve the error message displayed by the `moveCollection` command when FCV is lower than 8.0

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.0.16
    • Affects Version/s: 8.0.0, 8.1.0
    • Component/s: None
    • None
    • Cluster Scalability
    • Fully Compatible
    • v8.0
    • ClusterScalability Jun9-Jun23, ClusterScalability Jul7-Jul20, ClusterScalability Jul21-Aug3, ClusterScalability Aug4-18, ClusterScalability Sep1-15, ClusterScalability Sep15-29, ClusterScalability Sep29-Oct13
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 0

      A failed attempt to downgrade a sharded cluster from FCV 8.0 to 7.0 can leave the version in a downgrading state.

      In this situation, the moveCollection command fails because the underlying resharding functionality depends on features that are only available starting from FCV 8.0.

      The current error message is:

      MongoServerError[InvalidOptions]: Resharding improvements is not enabled, reject shardDistribution parameter
      

      However, this error message is difficult to interpret unless you are an engineer familiar with the feature. A clearer and more helpful error message would be:

      This command requires FCV 8.0 or higher.
      

            Assignee:
            Adi Zaimi
            Reporter:
            Antonio Fuschetto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: