https://bugs.openldap.org/show_bug.cgi?id=10024
--- Comment #3 from kero renault.cle@gmail.com --- Created attachment 1042 --> https://bugs.openldap.org/attachment.cgi?id=1042&action=edit A test file that shows that the prev snapshot is just ignored
Hello Howard and Markus,
We plan to use the MDB_PREVSNAPSHOT feature in Meilisearch to roll back multiple environments if one of the updates goes wrong.
Each environment corresponds to a Meilisearch index, and, unfortunately, we cannot keep the environment open for all of them simultaneously as it reaches the OS limit of allocated memory mapped [1]. Even if we could, there could be one (or more) failing commits that we need to roll back.
I would like to know if we can help with this. If you want us to fix it, could you guide us a bit?
I linked a test file to show that the MDB_PREVSNAPSHOST is ignored and the previous values cannot be retrieved. The following output shows the problem:
wtxn0 id=1 0 after write toto contained: titi1 expecting titi1 wtxn1 id=2 1 before write toto contained: titi1 expecting titi1 1 after write toto contained: titi2 expecting titi2 wtxn2 with PREVSNAPSHOT id=1 2 toto contained: titi2, expecting titi1 wtxn3 id=3 3 toto contained: titi2
Have a nice day, Howard, Thank you again for the work and this great library!
[1]: https://www.meilisearch.com/blog/dynamic-virtual-address-management