[infinispan-issues] [JBoss JIRA] (ISPN-9359) RocksDB clear always reinitializes the database

William Burns (JIRA) issues at jboss.org
Tue Jul 10 15:21:00 EDT 2018


     [ https://issues.jboss.org/browse/ISPN-9359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

William Burns updated ISPN-9359:
--------------------------------
    Status: Open  (was: New)


> RocksDB clear always reinitializes the database
> -----------------------------------------------
>
>                 Key: ISPN-9359
>                 URL: https://issues.jboss.org/browse/ISPN-9359
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Loaders and Stores
>    Affects Versions: 9.3.0.Final
>            Reporter: William Burns
>            Assignee: William Burns
>             Fix For: 9.4.0.Alpha1
>
>
> 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 *<=*.
> {code}
> if (optionalIterator.isPresent() && configuration.clearThreshold() <= 0) {
> {code}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the infinispan-issues mailing list