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

1.restapi 有没有返回超时时长的设置2.restapi访问时产生的日志记录在哪 #68

Open
fisherinbox opened this issue Sep 20, 2018 · 2 comments
Labels

Comments

@fisherinbox
Copy link

@fisherinbox fisherinbox commented Sep 20, 2018

Expected behavior 期望表现

{type something here...}

Actual behavior 实际表现

{type something here...}

Steps to reproduce the problem 复现步骤

  1. {step 1}
  2. {step 2}
  3. {step 3}

Status of loaded data 数据状态

Vertex/Edge summary 数据量

  • loaded vertices amount: {like 10 million}
  • loaded edges amount: {like 20 million}
  • loaded time: {like 200s}

Vertex/Edge example 数据示例

{type something here...}

Schema(VertexLabel, EdgeLabel, IndexLabel) 元数据结构

{type something here...}

Specifications of environment 环境信息

  • hugegraph version: {like v0.7.4}
  • operating system: {like centos 7.4, 32 CPUs, 64G RAM}
  • hugegraph backend: {like cassandra 3.10, cluster with 20 nodes, 3 x 1TB HDD disk each node}
@javeme

This comment has been minimized.

Copy link
Contributor

@javeme javeme commented Sep 26, 2018

1.restapi 有没有返回超时时长的设置

有的,可以使用HugeClient(String url, String graph, int timeout)或者HugeClient(String url, String graph, String username, String password, int timeout)

2.restapi访问时产生的日志记录在哪

java client没有记录访问日志,如果确实有需要记录日志可调用client各方法前打印日志。server端有打debug级别的访问日志,若需要请修改log4j配置文件conf/log4j2.xml中的level配置项。

@javeme javeme added the question label Sep 26, 2018
@fisherinbox

This comment has been minimized.

Copy link
Author

@fisherinbox fisherinbox commented Sep 26, 2018

1.restapi 有没有返回超时时长的设置

有的,可以使用HugeClient(String url, String graph, int timeout)或者HugeClient(String url, String graph, String username, String password, int timeout)

2.restapi访问时产生的日志记录在哪

java client没有记录访问日志,如果确实有需要记录日志可调用client各方法前打印日志。server端有打debug级别的访问日志,若需要请修改log4j配置文件conf/log4j2.xml中的level配置项。

感谢,那如何查询当前的超时时间呢,除了hugeclient方式有没有修改配置文件的方式.这里说的超时是不是
与下文的timeout=60000ms 是一个东西
{"exception":"class java.io.UncheckedIOException","message":"java.io.IOException: Failed to get result within timeout, timeout=60000ms","cause":"java.io.IOException: Failed to get result within timeout, timeout=60000ms"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.