Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-32847

forestdb_dump crashed when opens an fdb file in backup repo

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Critical
    • 6.5.0
    • 6.5.0
    • forestdb
    • Centos 7.5 64-bit
    • Untriaged
    • Centos 64-bit
    • Yes

    Description

      Install Couchbase server 6.5.0-2158 on 4 centos 7.5 servers (224, 225, 226, 227).
      Create a default bucket on node 224.
      Load 1000 docs to default bucket.
      On node 227, backup data from node 224 to /tmp/entbackup
      On node 226, create default bucket.
      On node 227, restore data to node 226
      To compare backup data in backup repo and data on restore node, I use forestdb_dump in /opt/couchbase/bin to extract data from backup repo, the extraction failed due to crash on shard_9.fdb

      [root@s44018 ~]# /opt/couchbase/bin/forestdb_dump --plain-meta /tmp/entbackup/backup/201*/default*/data/shard_*.fdb 
      2019-01-28T21:36:00.936-08:00 [ERRO][FDB] Crash Detected: Last Block not DBHEADER ff in a database file '/tmp/entbackup/backup/2019-01-28T21_07_56.041313113-08_00/default-e875fa27b05c03256741bc2937cae764/data/shard_9.fdb'
       
      2019-01-28T21:36:00.936-08:00 [INFO][FDB] Forestdb opened database file /tmp/entbackup/backup/2019-01-28T21_07_56.041313113-08_00/default-e875fa27b05c03256741bc2937cae764/data/shard_9.fdb
      DB header info:
          No header exists.
          DB file version: ForestDB v2.x format
      2019-01-28T21:36:00.937-08:00 [INFO][FDB] Forestdb closed database file /tmp/entbackup/backup/2019-01-28T21_07_56.041313113-08_00/default-e875fa27b05c03256741bc2937cae764/data/shard_9.fdb
      [root@s44018 ~]# 
      [root@s44018 ~]# 
      [root@s44018 ~]# 
      [root@s44018 ~]# /opt/couchbase/bin/forestdb_dump --plain-meta /tmp/entbackup/backup/201*/default*/data/shard_9.fdb 
      2019-01-28T21:36:08.774-08:00 [ERRO][FDB] Crash Detected: Last Block not DBHEADER ff in a database file '/tmp/entbackup/backup/2019-01-28T21_07_56.041313113-08_00/default-e875fa27b05c03256741bc2937cae764/data/shard_9.fdb'
       
      2019-01-28T21:36:08.775-08:00 [INFO][FDB] Forestdb opened database file /tmp/entbackup/backup/2019-01-28T21_07_56.041313113-08_00/default-e875fa27b05c03256741bc2937cae764/data/shard_9.fdb
      DB header info:
          No header exists.
          DB file version: ForestDB v2.x format
      2019-01-28T21:36:08.776-08:00 [INFO][FDB] Forestdb closed database file /tmp/entbackup/backup/2019-01-28T21_07_56.041313113-08_00/default-e875fa27b05c03256741bc2937cae764/data/shard_9.fdb
      [root@s44018 ~]# 
      
      

      Attachments

        Activity

          People

            srinath.duvuru Srinath Duvuru
            thuan Thuan Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty