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

Setting ImmuDB embedded Store MaxKeyValue is not working #1864

Open
ngurusamy opened this issue Nov 9, 2023 · 1 comment
Open

Setting ImmuDB embedded Store MaxKeyValue is not working #1864

ngurusamy opened this issue Nov 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@ngurusamy
Copy link

What happened
We are uisng ImmuDB embedded store as our local data store. The value mapped to the key more than 4Kb (approximately 1023Kb).
Even though changing the maxValueLen in the options got from store.DefaultOptions() and using that options to open the store, the maxVauleLen is not changed to new value and throws the error "2023/11/08 22:25:11 max value length exceeded"

code snippet:

    **_opts := store.DefaultOptions()
    opts = opts.WithMaxValueLen(10485760)
    st, err := store.Open("dataSource", opts)_**

What you expected to happen
I expect, the maxValueLen of the Store should have new value 10485760

How to reproduce it (as minimally and precisely as possible)

  1. Open embedded store with above mentioned maxValueLen set.
  2. Set the key and value of 1023Kb in the datastore.

Environment
immudb: v1.5.0


**Additional info (any other context about the problem)**
@ngurusamy ngurusamy added the bug Something isn't working label Nov 9, 2023
@jeroiraz
Copy link
Contributor

What happened We are uisng ImmuDB embedded store as our local data store. The value mapped to the key more than 4Kb (approximately 1023Kb). Even though changing the maxValueLen in the options got from store.DefaultOptions() and using that options to open the store, the maxVauleLen is not changed to new value and throws the error "2023/11/08 22:25:11 max value length exceeded"

code snippet:

    **_opts := store.DefaultOptions()
    opts = opts.WithMaxValueLen(10485760)
    st, err := store.Open("dataSource", opts)_**

What you expected to happen I expect, the maxValueLen of the Store should have new value 10485760

How to reproduce it (as minimally and precisely as possible)

1. Open embedded store with above mentioned maxValueLen set.

2. Set the key and value of 1023Kb in the datastore.

Environment immudb: v1.5.0


**Additional info (any other context about the problem)**

Hi @ngurusamy, currently the key length can only be effectively specified at database creation time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants