replikativ / datahike

A fast, immutable, distributed & compositional Datalog engine for everyone.
https://datahike.io
Eclipse Public License 1.0
1.62k stars 95 forks source link

[Bug]: Changing cache size throws exception #675

Closed alekcz closed 1 month ago

alekcz commented 3 months ago

What version of Datahike are you using?

1558

What version of Java are you using?

"21.0.3" 2024-04-16

What operating system are you using?

MacOS

What database EDN configuration are you using?

{:store {:backend :file :path dev-db :scope "datahike-database"}
                 :keep-history? true
                 :store-cache-size 10000
                 :search-cache-size 100000}

Describe the bug

When I change the cache configuration and connect to Datahike I get an exception.

Execution error (ExceptionInfo) at datahike.connector/ensure-stored-config-consistency (connector.cljc:130).
Configuration does not match stored configuration.

What is the expected behaviour?

The DB should start as normal if the search or search caches change.

How can the behaviour be reproduced?

  1. Create a DB.
  2. Transact on the DB
  3. Shutdown the DB change the cache setting
  4. Behold the error
alekcz commented 3 months ago

@whilo here's the issue as discussed