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

all ngql statements running throw error after a socket timeout #384

Closed
huaxiabuluo opened this issue Dec 8, 2022 · 0 comments
Closed

all ngql statements running throw error after a socket timeout #384

huaxiabuluo opened this issue Dec 8, 2022 · 0 comments
Assignees
Labels
affects/none PR/issue: this bug affects none version. process/done Process of bug severity/none Severity of bug type/bug Type: something is unexpected

Comments

@huaxiabuluo
Copy link
Contributor

huaxiabuluo commented Dec 8, 2022

Describe the bug (must be provided)

when we set GraphServiceTimeout a value of 5s, it will throw errors after a socket request timeout.

errors like:

  • read tcp 10.8.0.34:64072->192.168.8.131:9669: i/o timeout
  • ErrInternalServer::execute failed: out of sequence response
  • ErrInternalServer::Invalid data length
  • ...

so we make GraphServiceTimeout a value of long timeout

// set the timeout for the graph service: 8 hours
// once the timeout is reached, the connection will be closed
// all requests running ngql will be failed, so keepping a long timeout is necessary, make the connection alive
const GraphServiceTimeout = 8 * time.Hour

Your Environments (must be provided)

  • OS: Linux,Mac or Windows
  • Node-version: node --version
  • Studio-version: display in studio navBar

How To Reproduce(must be provided)

Steps to reproduce the behavior:

  1. Step 1
  2. Step 2
  3. Step 3

Expected behavior

A clear and concise description of what you expected to happen.

Additional context

Provide logs and configs, or any other context to trace the problem.

@huaxiabuluo huaxiabuluo self-assigned this Dec 8, 2022
@huaxiabuluo huaxiabuluo added the type/bug Type: something is unexpected label Dec 8, 2022
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Dec 8, 2022
@hetao92 hetao92 closed this as completed Dec 13, 2022
@github-actions github-actions bot added the process/fixed Process of bug label Dec 13, 2022
@liangliangc liangliangc added process/done Process of bug and removed process/fixed Process of bug labels Dec 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/none PR/issue: this bug affects none version. process/done Process of bug severity/none Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

3 participants