Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1836

LMDB consistency test fails on HPUX

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.6
    • Component/s: Internal Databases
    • Labels:
      None

      Description

      I don't know what causes it, but it passes elsewhere so it must be an issue with LMDB on HP-UX. We have seen errors in the field as well, so this is not surprising.

      The error is:

      <pre>
      10:09:36 "(null)" != "SHA=key1"
      10:09:36 ERROR: lastseen_test.c:319 Failure!
      10:09:39 1 out of 26 tests failed!
      10:09:39 test_consistent_1a
      10:09:39 ==================================================
      10:09:39 Starting test: lastseen_test.c
      10:09:39 ==================================================
      10:09:39 test_newentry: Starting test
      10:09:39 test_newentry: Test completed successfully.
      10:09:39 test_update: Starting test
      10:09:39 test_update: Test completed successfully.
      10:09:39 test_reverse_missing: Starting test
      10:09:39 test_reverse_missing: Test completed successfully.
      10:09:39 test_reverse_conflict: Starting test
      10:09:39 2015-02-19T03:09:36CST warning: Lastseen db inconsistency: no key entry 'kSHA-98765' for existing host entry 'a127.0.0.64'
      10:09:39 test_reverse_conflict: Test completed successfully.
      10:09:39 test_reverse_missing_forward: Starting test
      10:09:39 2015-02-19T03:09:36CST warning: Lastseen db inconsistency: no key entry 'kSHA-12345' for existing host entry 'a127.0.0.64'
      10:09:39 test_reverse_missing_forward: Test completed successfully.
      10:09:39 test_remove: Starting test
      10:09:39 test_remove: Test completed successfully.
      10:09:39 test_remove_ip: Starting test
      10:09:39 test_remove_ip: Test completed successfully.
      10:09:39 test_consistent_1a: Starting test
      10:09:39 test_consistent_1a: Test failed.
      10:09:39 test_consistent_1b: Starting test
      10:09:39 test_consistent_1b: Test completed successfully.
      10:09:39 test_consistent_2a: Starting test
      10:09:39 test_consistent_2a: Test completed successfully.
      10:09:39 test_consistent_2b: Starting test
      10:09:39 test_consistent_2b: Test completed successfully.
      10:09:39 test_consistent_3a: Starting test
      10:09:39 test_consistent_3a: Test completed successfully.
      10:09:39 test_consistent_3b: Starting test
      10:09:39 test_consistent_3b: Test completed successfully.
      10:09:39 test_consistent_4a: Starting test
      10:09:39 test_consistent_4a: Test completed successfully.
      10:09:39 test_consistent_4b: Starting test
      10:09:39 test_consistent_4b: Test completed successfully.
      10:09:39 test_consistent_5a: Starting test
      10:09:39 test_consistent_5a: Test completed successfully.
      10:09:39 test_consistent_5b: Starting test
      10:09:39 test_consistent_5b: Test completed successfully.
      10:09:39 test_consistent_6a: Starting test
      10:09:39 test_consistent_6a: Test completed successfully.
      10:09:39 test_consistent_6b: Starting test
      10:09:39 test_consistent_6b: Test completed successfully.
      10:09:39 test_consistent_7b: Starting test
      10:09:39 test_consistent_7b: Test completed successfully.
      10:09:39 test_inconsistent_1: Starting test
      10:09:39 2015-02-19T03:09:38CST warning: lastseen db inconsistency, found aIP -> 'SHA=key2' entry, but no 'kSHA=key2' -> any ip entry exists!
      10:09:39 test_inconsistent_1: Test completed successfully.
      10:09:39 test_inconsistent_2: Starting test
      10:09:39 2015-02-19T03:09:38CST warning: lastseen db inconsistency, found aIP -> 'SHA=key2' entry, but no 'kSHA=key2' -> any ip entry exists!
      10:09:39 test_inconsistent_2: Test completed successfully.
      10:09:39 test_inconsistent_3: Starting test
      10:09:39 2015-02-19T03:09:38CST warning: lastseen db inconsistency, found kKEY -> '127.0.0.122' entry, but no 'a127.0.0.122' -> any key entry exists!
      10:09:39 test_inconsistent_3: Test completed successfully.
      10:09:39 test_inconsistent_4: Starting test
      10:09:39 2015-02-19T03:09:38CST warning: lastseen db inconsistency, found kKEY -> '127.0.0.122' entry, but no 'a127.0.0.122' -> any key entry exists!
      10:09:39 test_inconsistent_4: Test completed successfully.
      10:09:39 test_inconsistent_5: Starting test
      10:09:39 2015-02-19T03:09:38CST warning: lastseen db inconsistency, found kKEY -> '127.0.0.122' entry, but no 'a127.0.0.122' -> any key entry exists!
      10:09:39 2015-02-19T03:09:38CST warning: lastseen db inconsistency, found aIP -> 'SHA=key2' entry, but no 'kSHA=key2' -> any ip entry exists!
      10:09:39 test_inconsistent_5: Test completed successfully.
      10:09:39 test_inconsistent_6: Starting test
      10:09:39 2015-02-19T03:09:38CST warning: lastseen db inconsistency, found kKEY -> '127.0.0.122' entry, but no 'a127.0.0.122' -> any key entry exists!
      10:09:39 2015-02-19T03:09:38CST warning: lastseen db inconsistency, found aIP -> 'SHA=key2' entry, but no 'kSHA=key2' -> any ip entry exists!
      10:09:39 test_inconsistent_6: Test completed successfully.
      10:09:39 FAIL: lastseen_test
      </pre>

      We need to figure our whether the bug is in the test or in LMDB itself.

        Attachments

        1. dbm_lmdb.c
          17 kB
        2. lastseen_test.c
          21 kB
        3. lmdb_test_case.c
          2 kB

          Activity

            People

            • Assignee:
              a10040 Kristian Amlie
              Reporter:
              a10040 Kristian Amlie
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 day, 5 hours
                  1d 5h
                  Remaining:
                  Not Specified
                  Logged:
                  Time Not Required
                  Not Specified