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

[8.0] moveCollection in FCV 7.0 returns NamespaceNotFound instead of CommandNotSupported

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Cluster Scalability
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      ClusterMoveCollectionCmd implements a 
      gFeatureFlagReshardingImprovements (FCV 7.2) check to return CommandNotSupported, but mongos nodes do not have knowledge of the FCV and always act as if latest.
       
      When the cluster is in FCV 7.0, this causes the moveCollection command proceed past the check and return NamespaceNotFound for an existing namespace:

      [js_test:unionWith_explain_stale_router_cache] uncaught exception: Error: command failed: {
      
      [js_test:unionWith_explain_stale_router_cache] 	"ok" : 0,
      
      [js_test:unionWith_explain_stale_router_cache] 	"errmsg" : "Expected collection union_with.A to be tracked",
      
      [js_test:unionWith_explain_stale_router_cache] 	"code" : 26,
      
      [js_test:unionWith_explain_stale_router_cache] 	"codeName" : "NamespaceNotFound",
      
      [js_test:unionWith_explain_stale_router_cache] 	"$clusterTime" : {
      
      [js_test:unionWith_explain_stale_router_cache] 		"clusterTime" : Timestamp(1745406812, 4),
      
      [js_test:unionWith_explain_stale_router_cache] 		"signature" : {
      
      [js_test:unionWith_explain_stale_router_cache] 			"hash" : BinData(0,"AAAAAAAAAAAAAAAAAAAAAAAAAAA="),
      
      [js_test:unionWith_explain_stale_router_cache] 			"keyId" : NumberLong(0)
      
      [js_test:unionWith_explain_stale_router_cache] 		}
      
      [js_test:unionWith_explain_stale_router_cache] 	}
      

      Which can be misleading.

            Assignee:
            jack.mulrow@mongodb.com Jack Mulrow
            Reporter:
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: