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

Too many open files error #132

Open
tock-ibm opened this issue Apr 4, 2022 · 0 comments
Open

Too many open files error #132

tock-ibm opened this issue Apr 4, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@tock-ibm
Copy link
Contributor

tock-ibm commented Apr 4, 2022

Problem:

we are encountering from time to time the following error:

Error:		Received unexpected error received error from remote [failed to process request: failed to write action: invalid transfer: failed getting state [ztoken4a8b637387db21a2a7181ec80ddb4e2a383efbab6602465935c72caaffa83ca81]: failed getting data: Get "http://127.0.0.1:22021/data/zkat/~ztoken~4a8b637387db21a2a7181ec80ddb4e2a383efbab6602465935c72caaffa83ca8~1~": dial tcp 127.0.0.1:22021: socket: too many open files]

This happens when doing a GET to http://127.0.0.1:22021/data/zkat/~ztoken~4a8b637387db21a2a7181ec80ddb4e2a383efbab6602465935c72caaffa83ca8~1~

where zkat is a db name and ~ztoken~4a8b637387db21a2a7181ec80ddb4e2a383efbab6602465935c72caaffa83ca8~1~ is a key.

In our integration tests, we also executes many token transactions, in parallel and not.
I’m wondering if this is because in the orion-sdk a new http client is created for each new DataTx instance.

Related:

check ulimit -n
see this discussion

check closing the http client in the DataTx or reusing it.

@tock-ibm tock-ibm added the bug Something isn't working label Apr 4, 2022
MayRosenbaum pushed a commit to MayRosenbaum/orion-sdk-go that referenced this issue Oct 29, 2022
To enable logical operations such as <, >, <=, >=, we introduce
two additional fields in the index entry: ValuePosition and
KeyPosition.

Further, we unexport certain fields/functions and export some
which are to be used by query executor package

Signed-off-by: senthil <[email protected]>
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

1 participant