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

RocksDB clear always reinitializes the database

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 9.4.0.Final
    • 9.3.0.Final
    • Loaders and Stores
    • None

      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) {
      

              wburns@redhat.com Will Burns
              wburns@redhat.com Will Burns
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: