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

Is there a limit on size of gremlin query, and is this configurable? #30

Open
tucats opened this issue Aug 17, 2020 · 0 comments
Open

Comments

@tucats
Copy link

tucats commented Aug 17, 2020

I have a query that is about 12k characters long. I am getting server errors of the "unexpected end of input" flavor, followed by a panic in the response unmarshall operation. Empirically, I can see that if I reduce the query length to 7362 characters (at least in my case, on my configuration) the query goes through without error. I'm guessing I'm running into a buffer length issue of 8k including socket overhead, but I don't really know.

Is there a limit on the length of the query? Or something I need to do to cause it to send multiple chunks (frames?) to represent the entire query? Note that I can execute this from the apache gremlin console without error, so I believe the query itself is well-formed.

The code looks approximately like this (the somewhat ugly template-generated query is omitted here).

client, err := grammes.DialWithWebSocket("ws://127.0.0.1:8182")
if err != nil {
    fmt.Printf("Error while creating client: %s\n", err.Error())
}
defer client.Close()
query := ` ... super long query goes here ...`

res, err := client.ExecuteStringQuery(query)

Perhaps I am just missing a configuration step?

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

1 participant