Investigate why mr_preserve_indexes.js fails on disagg sharding passthrough

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Integration
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Right now it's disabled together with a group of other tests that relied on index working on disagg. We're incrementally enabling them since we have preliminary index support now. I've noticed that this test is consistently failing when sharding is enabled, for example in this patch build.

      [j3:s0:prim] | 2025-11-18T02:27:26.216+00:00 W  QUERY    23799   [S] [conn55] "Aggregate command executor error","attr":{"error":{"code":78,"codeName":"CommandResultSchemaViolation","errmsg":"No \"ok\" field in command result {}"},"stats":{"isCached":false,"stage":"PROJECTION_DEFAULT","nReturned":0,"works":0,"advanced":0,"needTime":0,"needYield":0,"saveState":1,"restoreState":0,"isEOF":0,"transformBy":{},"inputStage":{"stage":"COLLSCAN","nReturned":0,"works":0,"advanced":0,"needTime":0,"needYield":0,"saveState":1,"restoreState":0,"isEOF":0,"direction":"forward","docsExamined":0}},"cmd":{"aggregate":"mr_preserve_indexes","pipeline":[{"$project":{"emits":{"$_internalJsEmit":{"eval":"function () {\n    for (let tag of this.tags) emit(tag, 1);\n}","this":"$$ROOT"}},"_id":false}},{"$unwind":{"path":"$emits"}},{"$group":{"_id":"$emits.k","value":{"$_internalJsReduce":{"data":"$emits","eval":"function (k, vs) {\n    return Array.sum(vs);\n}"}},"$willBeMerged":false}},{"$out":{"coll":"mr_preserve_indexes_out","db":"test"}}],"cursor":{"batchSize":9223372036854775807},"allowDiskUse":true,"fromRouter":true,"let":{"IS_MR":{"$literal":true},"NOW":{"$literal":{"$date":"2025-11-18T02:27:26.052Z"}},"CLUSTER_TIME":{"$literal":{"$timestamp":{"t":1763432845,"i":204}}}},"isMapReduceCommand":true,"readConcern":{"level":"local","provenance":"implicitDefault"},"writeConcern":{"w":"majority","wtimeout":0,"provenance":"implicitDefault"},"shardVersion":{"e":{"$oid":"000000000000000000000000"},"t":{"$timestamp":{"t":0,"i":0}},"v":{"$timestamp":{"t":0,"i":0}}},"databaseVersion":{"uuid":{"$uuid":"2a6cc364-11af-4331-bfbf-812bb65c99b6"},"timestamp":{"$timestamp":{"t":1763432845,"i":186}},"lastMod":1},"clientOperationKey":{"$uuid":"eb4e6811-8fc1-4149-97a0-9b77348be7b8"},"$traceCtx":{"traceparent":"00-325c8c8fc395bbf3e0b96c7c9b130ac1-185269226dd8b359-01","baggage":"keepSpan=false"},"lsid":{"id":{"$uuid":"8d00e7a5-19b8-4e76-af10-ebb852370722"},"uid":{"$binary":{"base64":"47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=","subType":"0"}}},"$clusterTime":{"clusterTime":{"$timestamp":{"t":1763432845,"i":204}}},"$configTime":{"$timestamp":{"t":1763432845,"i":204}},"$topologyTime":{"$timestamp":{"t":1763432823,"i":63}},"$client":{"application":{"name":"MongoDB Shell"},"driver":{"name":"MongoDB Internal Client","version":"8.3.0-alpha0-3152-g6c6ac97-patch-691bcd0b42e5bb000717c173"},"os":{"type":"Linux","name":"Amazon Linux release 2023.9.20251110 (Amazon Linux)","architecture":"aarch64","version":"Kernel 6.1.158-178.288.amzn2023.aarch64"},"mongos":{"host":"ip-10-122-38-204.ec2.internal:20757","client":"127.0.0.1:47112","version":"8.3.0-alpha0-3152-g6c6ac97-patch-691bcd0b42e5bb000717c173"}},"mayBypassWriteBlocking":false,"$db":"test"}}
      

       

            Assignee:
            Unassigned
            Reporter:
            Wei Hu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: