Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

orm.lmdbjava.Dbi$MapResizedException on query after reimport 0.8.16 → 0.9.5 #250

Open
jdf-id-au opened this issue May 4, 2024 · 1 comment

Comments

@jdf-id-au
Copy link
Contributor

Thanks again for this glorious project.

I tried to upgrade from 0.8.16 → 0.9.5 via a nippy export (using my approach from #216 ) and am getting an exception when trying to query new version. Happy to investigate if asked, but I'll just roll back for the time being to finish another task.

1. Unhandled org.lmdbjava.Dbi$MapResizedException
   Database contents grew beyond environment mapsize (-30785)

     ResultCodeMapper.java:   88  org.lmdbjava.ResultCodeMapper/checkRc
                  Txn.java:  176  org.lmdbjava.Txn/renew
                  java.clj:  130  datalevin.binding.java.Rtx/renew
                  java.clj:  684  datalevin.binding.java.LMDB/get_rtx
                  java.clj:  966  datalevin.binding.java.LMDB/list_count
               storage.clj:  533  datalevin.storage.Store/av_size
                    db.clj:  110  datalevin.db.DB/_count
                 query.clj: 1153  datalevin.query/datom-n/fn
             protocols.clj:   49  clojure.core.protocols/iter-reduce
             protocols.clj:   75  clojure.core.protocols/fn
             protocols.clj:   75  clojure.core.protocols/fn
             protocols.clj:   13  clojure.core.protocols/fn/G
                  core.clj: 6887  clojure.core/reduce
                  core.clj: 6869  clojure.core/reduce
                 query.clj: 1149  datalevin.query/datom-n
                 query.clj: 1147  datalevin.query/datom-n
                 query.clj: 1190  datalevin.query/count-clause-datoms/fn/fn/fn/fn
                  AFn.java:  154  clojure.lang.AFn/applyToHelper
                  AFn.java:  144  clojure.lang.AFn/applyTo
                  core.clj:  669  clojure.core/apply
                  core.clj: 6221  clojure.core/update-in/up
                  core.clj: 6220  clojure.core/update-in/up
                  core.clj: 6222  clojure.core/update-in
                  core.clj: 6208  clojure.core/update-in
               RestFn.java:  445  clojure.lang.RestFn/invoke
                 query.clj: 1189  datalevin.query/count-clause-datoms/fn/fn/fn
                  core.clj: 6232  clojure.core/update
                  core.clj: 6224  clojure.core/update
                 query.clj: 1184  datalevin.query/count-clause-datoms/fn/fn
             protocols.clj:   49  clojure.core.protocols/iter-reduce
             protocols.clj:   75  clojure.core.protocols/fn
             protocols.clj:   75  clojure.core.protocols/fn
             protocols.clj:   13  clojure.core.protocols/fn/G
                  core.clj: 6887  clojure.core/reduce
                  core.clj: 6869  clojure.core/reduce
                 query.clj: 1179  datalevin.query/count-clause-datoms/fn
             protocols.clj:   49  clojure.core.protocols/iter-reduce
             protocols.clj:   75  clojure.core.protocols/fn
             protocols.clj:   75  clojure.core.protocols/fn
             protocols.clj:   13  clojure.core.protocols/fn/G
                  core.clj: 6887  clojure.core/reduce
                  core.clj: 6869  clojure.core/reduce
                 query.clj: 1174  datalevin.query/count-clause-datoms
                 query.clj: 1172  datalevin.query/count-clause-datoms
                 query.clj: 1232  datalevin.query/build-graph
                 query.clj: 1213  datalevin.query/build-graph
                 query.clj: 1665  datalevin.query/-q
                 query.clj: 1662  datalevin.query/-q
                 query.clj: 1897  datalevin.query/q
                 query.clj: 1880  datalevin.query/q
               RestFn.java:  139  clojure.lang.RestFn/applyTo
                  core.clj:  669  clojure.core/apply
                  core.clj:  662  clojure.core/apply
                  core.clj:  420  datalevin.core/q
                  core.clj:  405  datalevin.core/q
@huahaiy
Copy link
Contributor

huahaiy commented May 4, 2024

Try open the DB with a bigger size, e.g. add :kv-opts {:mapsize A-BIGGER-SIZE-THAN-CURRENT} option when you create connection, where A-BIGGER-SIZE-THAN-CURRENT is a number bigger than your current DB size (in MiB) .

Also try upgrade to 0.8.29 first, before moving to 0.9.5. Your method of upgrading may missed something.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants