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

WiredTiger data corruption in 3.4.x

    • Type: Icon: Bug Bug
    • Resolution: Gone away
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 3.4.0, 3.4.1, 3.4.2
    • Component/s: WiredTiger
    • Labels:
      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.

      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. fstab
          0.2 kB
        2. mongo.tar.gz
          320 kB
        3. mongod.conf
          0.5 kB
        4. mongod.log
          7 kB
        5. mongodb.service
          0.4 kB
        6. mongodb.tar.gz
          10 kB
        7. syslog
          200 kB

            Assignee:
            david.hows David Hows
            Reporter:
            necromant2005@gmail.com Rostyslav Mykhajliw
            Votes:
            0 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated:
              Resolved: