Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9359

RocksDB clear always reinitializes the database

    XMLWordPrintable

Details

    Description

      The RocksDBStore always destroys the database on a clear and reinitializes it. This causes a lot of disk IO, especially when the store may have very few entries. The configured clearThreshold is only supposed to reinit the database if so many entries are found, but the variable should have been checked as > instead of <=.

      if (optionalIterator.isPresent() && configuration.clearThreshold() <= 0) {
      

      Attachments

        Activity

          People

            wburns@redhat.com Will Burns
            wburns@redhat.com Will Burns
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: