WiredTiger data corruption in 3.4.x

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Critical - P2
    • None
    • Affects Version/s: 3.4.0, 3.4.1, 3.4.2
    • Component/s: WiredTiger
    • None
    • Fully Compatible
    • ALL
    • Hide
          tmpfile = "/tmp/disable-transparent-hugepages"
          put IO.read("config/deploy/plugin/mongo/init.d/disable-transparent-hugepages"), tmpfile
          run "sudo mv #{tmpfile} /etc/init.d/disable-transparent-hugepages"
          run "sudo chmod 755 /etc/init.d/disable-transparent-hugepages"
          run "sudo update-rc.d disable-transparent-hugepages defaults"
          run "sudo /etc/init.d/disable-transparent-hugepages start"
      
          run "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6"
          run "echo \"deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse\" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list"
      
          run "sudo apt-get update"
          run "sudo apt-get install -y --allow-unauthenticated  mongodb-org"
      
          run "sudo service mongod stop || true"
      
          tmpfile = "/tmp/mongodb.conf"
          put IO.read("config/deploy/plugin/mongo/mongod.conf"), tmpfile
          run "sudo mv #{tmpfile} /etc/mongod.conf"
      
          tmpfile = "/tmp/mongodb.service"
          put IO.read("config/deploy/plugin/mongo/systemd/mongodb.service"), tmpfile
          run "sudo mv #{tmpfile} /etc/systemd/system/mongodb.service"
      
          run "sudo systemctl daemon-reload"
          run "sudo systemctl enable mongodb.service"
      
          run "sudo systemctl start mongodb || true"
      
          

      then restart instance.

      Show
      tmpfile = "/tmp/disable-transparent-hugepages" put IO.read("config/deploy/plugin/mongo/init.d/disable-transparent-hugepages"), tmpfile run "sudo mv #{tmpfile} /etc/init.d/disable-transparent-hugepages" run "sudo chmod 755 /etc/init.d/disable-transparent-hugepages" run "sudo update-rc.d disable-transparent-hugepages defaults" run "sudo /etc/init.d/disable-transparent-hugepages start" run "sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6" run "echo \"deb http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse\" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list" run "sudo apt-get update" run "sudo apt-get install -y --allow-unauthenticated mongodb-org" run "sudo service mongod stop || true" tmpfile = "/tmp/mongodb.conf" put IO.read("config/deploy/plugin/mongo/mongod.conf"), tmpfile run "sudo mv #{tmpfile} /etc/mongod.conf" tmpfile = "/tmp/mongodb.service" put IO.read("config/deploy/plugin/mongo/systemd/mongodb.service"), tmpfile run "sudo mv #{tmpfile} /etc/systemd/system/mongodb.service" run "sudo systemctl daemon-reload" run "sudo systemctl enable mongodb.service" run "sudo systemctl start mongodb || true" then restart instance.
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      MongoDB with WiredTiger corrupts storage in case of instance restart
      Attached config, log, stored data, fstab (bfs and ext4 affected, I've tested both), mongodb.service

      I'm running mongo db m4.large instances on AWS, region: us-west-2 (Oregon)

        1. mongod.conf
          0.5 kB
        2. mongod.log
          7 kB
        3. mongodb.tar.gz
          10 kB
        4. fstab
          0.2 kB
        5. mongodb.service
          0.4 kB
        6. syslog
          200 kB
        7. mongo.tar.gz
          320 kB

            Assignee:
            David Hows (Inactive)
            Reporter:
            Rostyslav Mykhajliw
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: