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

Failure on downgrade from 4.4 to 4.2 after unclean shutdown

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: 4.4.4
    • Fix Version/s: None
    • Component/s: WiredTiger
    • Labels:
      None
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      docker run -d --name mon --rm -v mongodb:/data/db mongo:4.2
      sleep 5
      docker stop mon
      docker run -d --name mon --rm -v mongodb:/data/db mongo:4.4
      sleep 5
      docker kill mon
      docker run --name mon --rm -v mongodb:/data/db mongo:4.2

      Show
      docker run -d --name mon --rm -v mongodb:/data/db mongo:4.2 sleep 5 docker stop mon docker run -d --name mon --rm -v mongodb:/data/db mongo:4.4 sleep 5 docker kill mon docker run --name mon --rm -v mongodb:/data/db mongo:4.2

      Description

      If you upgrade from 4.2 to 4.4, then kill 4.4 and run 4.2 again, it fails to start and cannot recover.
      Output:

      2021-02-23T14:33:58.753+0000 I  CONTROL  [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
      2021-02-23T14:33:58.756+0000 W  ASIO     [main] No TransportLayer configured during NetworkInterface startup
      2021-02-23T14:33:58.757+0000 I  CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=c30e2eb88c85
      2021-02-23T14:33:58.758+0000 I  CONTROL  [initandlisten] db version v4.2.12
      2021-02-23T14:33:58.758+0000 I  CONTROL  [initandlisten] git version: 5593fd8e33b60c75802edab304e23998fa0ce8a5
      2021-02-23T14:33:58.758+0000 I  CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.1.1  11 Sep 2018
      2021-02-23T14:33:58.758+0000 I  CONTROL  [initandlisten] allocator: tcmalloc
      2021-02-23T14:33:58.758+0000 I  CONTROL  [initandlisten] modules: none
      2021-02-23T14:33:58.758+0000 I  CONTROL  [initandlisten] build environment:
      2021-02-23T14:33:58.758+0000 I  CONTROL  [initandlisten]     distmod: ubuntu1804
      2021-02-23T14:33:58.758+0000 I  CONTROL  [initandlisten]     distarch: x86_64
      2021-02-23T14:33:58.758+0000 I  CONTROL  [initandlisten]     target_arch: x86_64
      2021-02-23T14:33:58.758+0000 I  CONTROL  [initandlisten] options: { net: { bindIp: "*" } }
      2021-02-23T14:33:58.761+0000 W  STORAGE  [initandlisten] Detected unclean shutdown - /data/db/mongod.lock is not empty.
      2021-02-23T14:33:58.761+0000 I  STORAGE  [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
      2021-02-23T14:33:58.761+0000 W  STORAGE  [initandlisten] Recovering data from the last clean checkpoint.
      2021-02-23T14:33:58.761+0000 I  STORAGE  [initandlisten]
      2021-02-23T14:33:58.761+0000 I  STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
      2021-02-23T14:33:58.761+0000 I  STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
      2021-02-23T14:33:58.761+0000 I  STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=3468M,cache_overflow=(file_max=0M),session_max=33000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000,close_scan_interval=10,close_handle_minimum=250),statistics_log=(wait=0),verbose=[recovery_progress,checkpoint_progress],
      2021-02-23T14:33:59.424+0000 E  STORAGE  [initandlisten] WiredTiger error (-31802) [1614090839:423987][1:0x7fb808665b00], connection: __log_open_verify, 925: unsupported WiredTiger file version: this build only supports versions up to 4, and the file is version 5: WT_ERROR: non-specific WiredTiger error Raw: [1614090839:423987][1:0x7fb808665b00], connection: __log_open_verify, 925: unsupported WiredTiger file version: this build only supports versions up to 4, and the file is version 5: WT_ERROR: non-specific WiredTiger error
      2021-02-23T14:34:00.758+0000 E  STORAGE  [initandlisten] WiredTiger error (-31802) [1614090840:758579][1:0x7fb808665b00], connection: __log_open_verify, 925: unsupported WiredTiger file version: this build only supports versions up to 4, and the file is version 5: WT_ERROR: non-specific WiredTiger error Raw: [1614090840:758579][1:0x7fb808665b00], connection: __log_open_verify, 925: unsupported WiredTiger file version: this build only supports versions up to 4, and the file is version 5: WT_ERROR: non-specific WiredTiger error
      2021-02-23T14:34:00.774+0000 E  STORAGE  [initandlisten] WiredTiger error (-31802) [1614090840:774796][1:0x7fb808665b00], connection: __log_open_verify, 925: unsupported WiredTiger file version: this build only supports versions up to 4, and the file is version 5: WT_ERROR: non-specific WiredTiger error Raw: [1614090840:774796][1:0x7fb808665b00], connection: __log_open_verify, 925: unsupported WiredTiger file version: this build only supports versions up to 4, and the file is version 5: WT_ERROR: non-specific WiredTiger error
      2021-02-23T14:34:00.786+0000 E  STORAGE  [initandlisten] WiredTiger error (-31802) [1614090840:786545][1:0x7fb808665b00], connection: __log_open_verify, 925: unsupported WiredTiger file version: this build only supports versions up to 4, and the file is version 5: WT_ERROR: non-specific WiredTiger error Raw: [1614090840:786545][1:0x7fb808665b00], connection: __log_open_verify, 925: unsupported WiredTiger file version: this build only supports versions up to 4, and the file is version 5: WT_ERROR: non-specific WiredTiger error
      2021-02-23T14:34:00.801+0000 E  STORAGE  [initandlisten] WiredTiger error (-31802) [1614090840:801601][1:0x7fb808665b00], connection: __log_open_verify, 925: unsupported WiredTiger file version: this build only supports versions up to 4, and the file is version 5: WT_ERROR: non-specific WiredTiger error Raw: [1614090840:801601][1:0x7fb808665b00], connection: __log_open_verify, 925: unsupported WiredTiger file version: this build only supports versions up to 4, and the file is version 5: WT_ERROR: non-specific WiredTiger error
      2021-02-23T14:34:00.808+0000 W  STORAGE  [initandlisten] Failed to start up WiredTiger under any compatibility version.
      2021-02-23T14:34:00.808+0000 F  STORAGE  [initandlisten] Reason: -31802: WT_ERROR: non-specific WiredTiger error
      2021-02-23T14:34:00.808+0000 F  -        [initandlisten] Fatal Assertion 28595 at src/mongo/db/storage/wiredtiger/wiredtiger_kv_engine.cpp 925
      2021-02-23T14:34:00.808+0000 F  -        [initandlisten] \n\n***aborting after fassert() failure\n\n
       

        Attachments

          Activity

            People

            Assignee:
            eric.sedor Eric Sedor
            Reporter:
            orgads@gmail.com Orgad Shaneh
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: