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

No handling of MDB_MAP_FULL (LMDB)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Higher
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cf-agent
    • Labels:
      None

      Description

      In DBPrivWrite() we only check the status of mdb_put() for being != MDB_SUCCESS to log an error. However, one of the possible statuses returned by the LMDB code is MDB_MAP_FULL which means, it's impossible to write more data into the LMDB file. So this (error) case needs special handling because future writes will just fail. And attempts to delete data from the LMDB in a transaction are likely to fail as well because every transaction needs some space.

        Attachments

          Activity

            People

            • Assignee:
              vpodzime Vratislav Podzimek
              Reporter:
              vpodzime Vratislav Podzimek
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Summary Panel