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

[win-fdb] anomaly test unable to open corrupted file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.1
    • 4.5.0
    • forestdb
    • None
    • Untriaged
    • Yes

    Description

      Test creates and corrupts a file but is later unable to re-open.

      Fails with status = FDB_RESULT_NO_SUCH_FILE (-3)

      The forestdb_dump tool gives a read error

      C:\Users\Administrator\Downloads\workspace\win2012-p0-forestdb-sanity\forestdb\b
      uild\tests\anomaly>..\..\forestdb_dump.exe  anomaly_test2
      [FDB ERR] Unable to read a database file 'anomaly_test2' with blocksize 14757395
      255531671552
       
      [FDB ERR] Error in READ on a database file 'anomaly_test2', errno = 38: 'Reached
       the end of the file.
      '
      Unable to open anomaly_test2
      

          // open the corrupted file
          s = fdb_open(&dbfile, "anomaly_test2", &config);
          TEST_CHK(s == FDB_RESULT_SUCCESS);
      

      >	fdb_anomaly_test.exe!corrupted_header_correct_superblock_test() Line 869	C++
       	fdb_anomaly_test.exe!main() Line 910	C++
      

      Attachments

        1. anomaly_test1
          84 kB
        2. anomaly_test1.lat
          0.2 kB
        3. anomaly_test2
          80 kB
        4. Screen Shot 2016-05-25 at 6.20.58 PM.png
          Screen Shot 2016-05-25 at 6.20.58 PM.png
          107 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              abhinav Abhi Dangeti
              tommie Tommie McAfee (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty