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

After executing a studio statement, there are display issues with the console. #650

Closed
QingZ11 opened this issue Sep 22, 2023 · 1 comment
Labels
type/enhancement Type: make the code neat or more efficient

Comments

@QingZ11
Copy link

QingZ11 commented Sep 22, 2023

Nebula version 3.4, Nebula Studio version 3.7.

Currently, in Studio, there are cases where the executed statement is not displayed in the console.

image

Additionally, there are cases where the execution result is not displayed, and the console does not provide any information. Ideally, there should be a timeout or other prompt in this situation.

ref: https://discuss.nebula-graph.com.cn/t/topic/14034

nebula 版本 3.4 nebula-studio 版本 3.7

现在 studio 遇到执行不出来的语句,可能存在控制台不展示该条被执行的语句;

image

以及执行不出来结果,控制台没有返回任何信息,理论上这里应该报个 timeout 或者其他的提示信息;

@huaxiabuluo
Copy link
Contributor

huaxiabuluo commented Oct 8, 2023

In previous versions, the server had a default timeout duration for WebSocket read and write operations, which could block corresponding coroutines when the returned data volume was too large, causing a heartbeat timeout and thus triggering the WebSocket's destruction logic. However, these anomalies were only reflected in the error logs, with no corresponding perception on the page. Therefore, we made the following adjustments:

  • Exposed the WebSocket read and write parameter configuration
WebSocket:
  # The maximum wait time (secend) for the pong message from peer.
  # If a peer does not respond to the ping message within this time, websocket connection will be closed.
  # default 60s, 0 means no limit
  WriteDeadline: 60
  # The maximum wait time (secend) for the ping message from peer.
  # If a peer does not send a ping message within this time, websocket connection will be closed.
  # default 60s, 0 means no limit
  ReadDeadline: 60
  # The maximum message size allowed from peer.
  # If a peer sends a message larger than this, an error will be thrown and websocket connection will be closed.
  # default: 64MB (32 * 1024 * 1024), 0 means no limit or system limit
  WriteLimit: 33554432
  # The maximum message size allowed from peer.
  # If a peer sends a message larger than this, websocket connection will be closed.
  # default: 8MB (8 * 1024 * 1024), 0 means no limit or system limit
  ReadLimit: 8388608

In situations where some queries return a very large volume of data, we can appropriately increase the values of WriteDeadline, ReadDeadline, and WriteLimit to avoid related execution anomalies.

  • Threw WebSocket execution exception information to HTML page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Type: make the code neat or more efficient
Projects
None yet
Development

No branches or pull requests

2 participants