Improve the error message displayed by the `moveCollection` command when FCV is lower than 8.0

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 8.0.0, 8.1.0
    • Component/s: None
    • None
    • Cluster Scalability
    • ClusterScalability Jun9-Jun23
    • None
    • 3
    • TBD
    • 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:
            1 Start watching this issue

              Created:
              Updated: