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

dumprestore.js chooses primary port for mongorestore

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.9
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • QuInt A (10/12/15)

      Task Failure
      Task History

      The test appears to be broken. The intention is to try dumping/restoring from a secondary. However, the port selection logic is having it restore to the primary. This succeeds instead of fails.

      [js_test:dumprestore3] 2015-10-02T19:48:57.832+0000 dumprestore3.js step 5 try mongorestore to slave
      [js_test:dumprestore3] 2015-10-02T19:48:57.833+0000 2015-10-02T19:48:57.833+0000 I -        [thread1] shell: started program (sh13568):  /data/mci/src/mongodump --host 127.0.0.1:20012 --out /data/db/job0/mongorunner/dumprestore3-other1/
      [js_test:dumprestore3] 2015-10-02T19:48:57.846+0000 d20012| 2015-10-02T19:48:57.846+0000 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:40006 #2 (2 connections now open)
      [js_test:dumprestore3] 2015-10-02T19:48:57.850+0000 d20012| 2015-10-02T19:48:57.850+0000 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:40007 #3 (3 connections now open)
      [js_test:dumprestore3] 2015-10-02T19:48:57.851+0000 sh13568| 2015-10-02T19:48:57.851+0000	writing foo.system.indexes to /data/db/job0/mongorunner/dumprestore3-other1/foo/system.indexes.bson
      [js_test:dumprestore3] 2015-10-02T19:48:57.852+0000 sh13568| 2015-10-02T19:48:57.852+0000	done dumping foo.system.indexes (1 document)
      [js_test:dumprestore3] 2015-10-02T19:48:57.853+0000 sh13568| 2015-10-02T19:48:57.852+0000	writing foo.bar to /data/db/job0/mongorunner/dumprestore3-other1/foo/bar.bson
      [js_test:dumprestore3] 2015-10-02T19:48:57.853+0000 sh13568| 2015-10-02T19:48:57.853+0000	done dumping foo.bar (1 document)
      [js_test:dumprestore3] 2015-10-02T19:48:57.855+0000 d20012| 2015-10-02T19:48:57.854+0000 I NETWORK  [conn2] end connection 127.0.0.1:40006 (2 connections now open)
      [js_test:dumprestore3] 2015-10-02T19:48:57.855+0000 d20012| 2015-10-02T19:48:57.854+0000 I NETWORK  [conn3] end connection 127.0.0.1:40007 (2 connections now open)
      [js_test:dumprestore3] 2015-10-02T19:48:57.858+0000 2015-10-02T19:48:57.857+0000 I -        [thread1] shell: started program (sh13578):  /data/mci/src/mongorestore --host 127.0.0.1:20011 --dir /data/db/job0/mongorunner/dumprestore3-other1/
      [js_test:dumprestore3] 2015-10-02T19:48:57.870+0000 d20011| 2015-10-02T19:48:57.869+0000 I NETWORK  [initandlisten] connection accepted from 127.0.0.1:60236 #7 (5 connections now open)
      [js_test:dumprestore3] 2015-10-02T19:48:57.873+0000 sh13578| 2015-10-02T19:48:57.872+0000	building a list of dbs and collections to restore from /data/db/job0/mongorunner/dumprestore3-other1 dir
      [js_test:dumprestore3] 2015-10-02T19:48:57.874+0000 sh13578| 2015-10-02T19:48:57.874+0000	reading metadata for foo.bar from
      [js_test:dumprestore3] 2015-10-02T19:48:57.874+0000 sh13578| 2015-10-02T19:48:57.874+0000	restoring foo.bar from
      [js_test:dumprestore3] 2015-10-02T19:48:57.881+0000 sh13578| 2015-10-02T19:48:57.881+0000	restoring indexes for collection foo.bar from metadata
      [js_test:dumprestore3] 2015-10-02T19:48:57.882+0000 sh13578| 2015-10-02T19:48:57.882+0000	finished restoring foo.bar (1 document)
      [js_test:dumprestore3] 2015-10-02T19:48:57.882+0000 sh13578| 2015-10-02T19:48:57.882+0000	done
      [js_test:dumprestore3] 2015-10-02T19:48:57.883+0000 assert: [0] != [0] are equal : mongorestore should exit w/ 1 on slave
      [js_test:dumprestore3] 2015-10-02T19:48:57.883+0000 d20011| 2015-10-02T19:48:57.883+0000 I NETWORK  [conn7] end connection 127.0.0.1:60236 (4 connections now open)
      [js_test:dumprestore3] 2015-10-02T19:48:57.883+0000 doassert@src/mongo/shell/assert.js:15:14
      [js_test:dumprestore3] 2015-10-02T19:48:57.883+0000 assert.neq@src/mongo/shell/assert.js:119:5
      [js_test:dumprestore3] 2015-10-02T19:48:57.884+0000 @jstests/tool/dumprestore3.js:46:1
      [js_test:dumprestore3] 2015-10-02T19:48:57.884+0000 
      [js_test:dumprestore3] 2015-10-02T19:48:57.884+0000 2015-10-02T19:48:57.883+0000 E QUERY    [thread1] Error: [0] != [0] are equal : mongorestore should exit w/ 1 on slave :
      [js_test:dumprestore3] 2015-10-02T19:48:57.884+0000 doassert@src/mongo/shell/assert.js:15:14
      [js_test:dumprestore3] 2015-10-02T19:48:57.884+0000 assert.neq@src/mongo/shell/assert.js:119:5
      [js_test:dumprestore3] 2015-10-02T19:48:57.884+0000 @jstests/tool/dumprestore3.js:46:1
      [js_test:dumprestore3] 2015-10-02T19:48:57.885+0000 
      [js_test:dumprestore3] 2015-10-02T19:48:57.885+0000 failed to load: jstests/tool/dumprestore3.js
      

            Assignee:
            dan@mongodb.com Daniel Pasette (Inactive)
            Reporter:
            dan@mongodb.com Daniel Pasette (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: