Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-3185

Fix TestMongorestoreTxns failure on all platforms when run against latest Server

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 100.6.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      See https://spruce.mongodb.com/version/631219cf9ccd4e4e682f0e4f/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC for all the failing tasks. The failure looks like this:

      [2022/09/02 15:11:47.685] === RUN   TestMongorestoreTxns
      [2022/09/02 15:11:47.685]   With a test MongoRestore ✔2022-09-02T15:11:45.106+0000	preparing collections to restore from
      [2022/09/02 15:11:47.685] 2022-09-02T15:11:45.106+0000	replaying oplog
      [2022/09/02 15:11:47.685] ✘
      [2022/09/02 15:11:47.685] Failures:
      [2022/09/02 15:11:47.685]   * /data/mci/e22fdde90119745fef7a7bd754279eb6/src/github.com/mongodb/mongo-tools/mongorestore/mongorestore_txn_test.go
      [2022/09/02 15:11:47.685]   Line 78:
      [2022/09/02 15:11:47.685]   Expected: nil
      [2022/09/02 15:11:47.685]   Actual:   'restore error: error handling transaction oplog entry: error applying transaction op: applyOps: (Location4772600) Expected _id field or $v:2, but got: EOO'
      [2022/09/02 15:11:47.685]   goroutine 6849 [running]:
      [2022/09/02 15:11:47.685]   github.com/mongodb/mongo-tools/mongorestore.TestMongorestoreTxns.func1()
      [2022/09/02 15:11:47.685]   	/data/mci/e22fdde90119745fef7a7bd754279eb6/src/github.com/mongodb/mongo-tools/mongorestore/mongorestore_txn_test.go:78 +0x130
      [2022/09/02 15:11:47.685]   github.com/jtolds/gls.(*ContextManager).SetValues.func1(0x0)
      [2022/09/02 15:11:47.685]   	/data/mci/e22fdde90119745fef7a7bd754279eb6/src/github.com/mongodb/mongo-tools/vendor/github.com/jtolds/gls/context.go:97 +0x48c
      [2022/09/02 15:11:47.685]   github.com/jtolds/gls.EnsureGoroutineId.func1()
      [2022/09/02 15:11:47.685]   	/data/mci/e22fdde90119745fef7a7bd754279eb6/src/github.com/mongodb/mongo-tools/vendor/github.com/jtolds/gls/gid.go:24 +0x30
      [2022/09/02 15:11:47.685]   github.com/jtolds/gls._m(0x0, 0x40049795f0)
      [2022/09/02 15:11:47.685]   	/data/mci/e22fdde90119745fef7a7bd754279eb6/src/github.com/mongodb/mongo-tools/vendor/github.com/jtolds/gls/stack_tags.go:108 +0x30
      [2022/09/02 15:11:47.685]   github.com/jtolds/gls.github_com_jtolds_gls_markS(0x0, 0x40049795f0)
      [2022/09/02 15:11:47.685]   	/data/mci/e22fdde90119745fef7a7bd754279eb6/src/github.com/mongodb/mongo-tools/vendor/github.com/jtolds/gls/stack_tags.go:56 +0x30
      [2022/09/02 15:11:47.685]   github.com/jtolds/gls.addStackTag(...)
      [2022/09/02 15:11:47.685]   	/data/mci/e22fdde90119745fef7a7bd754279eb6/src/github.com/mongodb/mongo-tools/vendor/github.com/jtolds/gls/stack_tags.go:49
      [2022/09/02 15:11:47.685]   github.com/jtolds/gls.EnsureGoroutineId(0x40004f7b00)
      [2022/09/02 15:11:47.685]   	/data/mci/e22fdde90119745fef7a7bd754279eb6/src/github.com/mongodb/mongo-tools/vendor/github.com/jtolds/gls/gid.go:24 +0xd8
      [2022/09/02 15:11:47.685]   github.com/jtolds/gls.(*ContextManager).SetValues(0x400005dc10, 0x40004f7aa0, 0x40002a3ee0)
      [2022/09/02 15:11:47.685]   	/data/mci/e22fdde90119745fef7a7bd754279eb6/src/github.com/mongodb/mongo-tools/vendor/github.com/jtolds/gls/context.go:63 +0x180
      [2022/09/02 15:11:47.685]   github.com/mongodb/mongo-tools/mongorestore.TestMongorestoreTxns(0x4000dcb380)
      [2022/09/02 15:11:47.685]   	/data/mci/e22fdde90119745fef7a7bd754279eb6/src/github.com/mongodb/mongo-tools/mongorestore/mongorestore_txn_test.go:67 +0x4f8
      [2022/09/02 15:11:47.685]   testing.tRunner(0x4000dcb380, 0xaaaab2f634c0)
      [2022/09/02 15:11:47.685]   	/opt/golang/go1.17/src/testing/testing.go:1259 +0xf8
      [2022/09/02 15:11:47.685]   created by testing.(*T).Run
      [2022/09/02 15:11:47.685]   	/opt/golang/go1.17/src/testing/testing.go:1306 +0x328
      [2022/09/02 15:11:47.685] 
      [2022/09/02 15:11:47.685] 436 total assertions
      [2022/09/02 15:11:47.685] --- FAIL: TestMongorestoreTxns (0.40s)
      

      Acceptance Criteria

      • Figure out why the test is failing and recommend a next step, whether that's fixing the test or skipping it when run with some Server versions.

            Assignee:
            dave.rolsky@mongodb.com Dave Rolsky
            Reporter:
            dave.rolsky@mongodb.com Dave Rolsky
            Evgeni Dobranov, Tim Fogarty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: