alde编译c语言,aldelee

commit sha174066ed0a34ffe1bd6fb627b36458192d5e2897

add some test case for PageState

push time in 6 hours

pull request commenthugegraph/hugegraph

Merging #1460 (7d80fd9) into master (de81038) will increase coverage by 0.35%.

The diff coverage is 80.00%.

tree.svg?width=650&height=150&src=pr&token=dnOdmj3zyg&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hugegraph

@@ Coverage Diff @@

## master #1460 +/- ##

============================================

+ Coverage 59.68% 60.04% +0.35%

- Complexity 5715 5736 +21

============================================

Files 381 381

Lines 32139 32199 +60

Branches 4504 4510 +6

============================================

+ Hits 19183 19333 +150

+ Misses 10968 10867 -101

- Partials 1988 1999 +11

Legend - Click here to learn more

Δ = absolute (impact), ø = not affected, ? = missing data

Powered by Codecov. Last update de81038...7d80fd9. Read the comment docs.

imbajin

aldelee

comment created time in 7 hours

pull request commenthugegraph/hugegraph

Merging #1459 (ddc0f47) into master (1ede97c) will increase coverage by 0.36%.

The diff coverage is n/a.

tree.svg?width=650&height=150&src=pr&token=dnOdmj3zyg&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=hugegraph

@@ Coverage Diff @@

## master #1459 +/- ##

============================================

+ Coverage 61.80% 62.16% +0.36%

- Complexity 5840 5862 +22

============================================

Files 381 381

Lines 32148 32169 +21

Branches 4504 4503 -1

============================================

+ Hits 19869 19999 +130

+ Misses 10231 10119 -112

- Partials 2048 2051 +3

Legend - Click here to learn more

Δ = absolute (impact), ø = not affected, ? = missing data

Powered by Codecov. Last update 1ede97c...ddc0f47. Read the comment docs.

imbajin

aldelee

comment created time in 7 hours

Pull request review commenthugegraph/hugegraph

public void testQueryByPageWithInvalidPage() {});}+ @Test+ public void testQueryByPageWithSpecialBase64Chars() {+ final String pageWith3Base64Chars = "AAAAADsyABwAEAqI546LS6WW57unBgA" +

keep them for tests below

imbajin

aldelee

comment created time in 8 hours

Consider use MurmurHash3 (later)

+15 -2

0

comment

1 changed

file

pr created time in 8 hours

commit shaddc0f479afc258c4a6516c07981da980272864c6

refact: remove sourceV from Kneighbor default results

also need change relative test (carefully)

push time in 8 hours

commit shad137cb8a115a22c51288ec12dfe9118b7f5cdc78

replace Query by array

push time in 8 hours

commit shaf16fa551f56bcf699e45293993b7789f8471b34e

fix shell

push time in 8 hours

Pull request review commenthugegraph/hugegraph

protected int concurrentDepth() {ExtendableIterator results = new ExtendableIterator<>();for (Id label : labels.keySet()) {E.checkNotNull(label, "edge label");- // TODO: limit should be applied to all labelsresults.extend(this.edgesOfVertex(source, dir, label, limit));}- return results;++ if (limit == NO_LIMIT) {+ return results;+ }++ Query query = new Query(HugeType.EDGE);+ query.limit(limit);+ return new LimitIterator<>(results, e -> {+ long count = query.goOffset(1L);

use LongAdder

imbajin

aldelee

comment created time in 9 hours

Reviewers

aldelee

aldelee

also remove LimitIterator (moved to common)

+13 -45

0

comment

2 changed

files

pr created time in 9 hours

commit sha454d51ac3e3007ee54b033b6fa795f24d73db16c

improve code style

push time in 10 hours

按照文档中的步骤发送请求

b74ed0b5b0266337571a9ca3a62806eb.png

简单的http请求

040f2f67862aae52ea9ad7cf0a962544.png

启动日志

46b8bdbdff18fa98bea5d1e40f68c641.png

浏览器报错信息

8a24878a16fb7e618d11799e8acda210.png

浏览器机器ping虚拟机能ping通的,hubble文件夹下没有log文件

snrui

aldelee

comment created time in 10 hours

commit sha1b961e8fd550b0aeca6514a9a2d28b0b8c72deb5

improve code style

push time in 10 hours

Pull request review commenthugegraph/hugegraph

protected void createUser(String name) {this.client().post(path, user);}- protected List> getList() {- Response r = this.client().get(path,- ImmutableMap.of("limit", -1));+ protected List> listUsers() {+ Response r = this.client().get(path, NO_LIMIT);String result = assertResponseStatus(200, r);- Map>> resultMap = JsonUtil.fromJson(- result,- new TypeReference>>>() {- });+ Map>> resultMap =+ JsonUtil.fromJson(result, new TypeReference>>>() {});

it need to cast

coderzc

aldelee

comment created time in 10 hours

delete branch : remove-decompress

delete time in 10 hours

commit sha558ab027e3a0fb32bb8f464d4d36e2ed32255ace

Support newly added node install and resume snapshot (#1439)

Change-Id: I0bb904a967eaada26b51b9b47bbfde5d31653bd1

push time in 10 hours

Change-Id: I974d9ec3d05eed02123191a8fe0916163fe59811

+148 -84

1

comment

5 changed

files

Linary

aldelee

pr closed time in 10 hours

Pull request review commenthugegraph/hugegraph

protected void createUser(String name) {this.client().post(path, user);}- protected List> getList() {- Response r = this.client().get(path,- ImmutableMap.of("limit", -1));+ protected List> listUsers() {+ Response r = this.client().get(path, NO_LIMIT);String result = assertResponseStatus(200, r);- Map>> resultMap = JsonUtil.fromJson(- result,- new TypeReference>>>() {- });+ Map>> resultMap =+ JsonUtil.fromJson(result, new TypeReference>>>() {});

return JsonUtil.fromJson(result, type).get("users");

coderzc

aldelee

comment created time in 10 hours

Pull request review commenthugegraph/hugegraph

set -evTRAVIS_DIR=`dirname $0`VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout`SERVER_DIR=hugegraph-$VERSION+CONF=$TRAVIS_DIR/conf/hugegraph.properties+REST_CONF=$TRAVIS_DIR/conf/rest-server.properties+GREMLIN_CONF=$TRAVIS_DIR/conf/gremlin-server.yamlmvn package -DskipTests++cp $CONF "${CONF}_bak"+cp $REST_CONF "${REST_CONF}_bak"+cp $GREMLIN_CONF "${GREMLIN_CONF}_bak"++sed -i '$/#auth.authenticator=/auth.authenticator=com.baidu.hugegraph.auth.StandardAuthenticator' $REST_CONF+sed -i '$/gremlin.graph=.*/gremlin.graph=com.baidu.hugegraph.auth.HugeFactoryAuthProxy/' $CONF+echo "+authentication: {+ authenticator: com.baidu.hugegraph.auth.StandardAuthenticator,+ authenticationHandler: com.baidu.hugegraph.auth.WsAndHttpBasicAuthHandler,+ config: {tokens: conf/rest-server.properties}+}" >> $GREMLIN_CONF+$TRAVIS_DIR/start-server.sh $SERVER_DIR || (cat $SERVER_DIR/logs/hugegraph-server.log && exit 1)mvn test -P api-test,$BACKEND || (cat $SERVER_DIR/logs/hugegraph-server.log && exit 1)$TRAVIS_DIR/build-report.sh$TRAVIS_DIR/stop-server.sh++mv "${CONF}_bak" $CONF+mv "${REST_CONF}_bak" $REST_CONF+mv "${GREMLIN_CONF}_bak" $GREMLIN_CONF

add empty line

coderzc

aldelee

comment created time in 10 hours

Pull request review commenthugegraph/hugegraph

set -evTRAVIS_DIR=`dirname $0`VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout`SERVER_DIR=hugegraph-$VERSION+CONF=$TRAVIS_DIR/conf/hugegraph.properties+REST_CONF=$TRAVIS_DIR/conf/rest-server.properties+GREMLIN_CONF=$TRAVIS_DIR/conf/gremlin-server.yamlmvn package -DskipTests++cp $CONF "${CONF}_bak"

don't need to copy bak file

coderzc

aldelee

comment created time in 10 hours

Pull request review commenthugegraph/hugegraph

public class UserApiTest extends BaseApiTest {private static final String path = "graphs/hugegraph/auth/users";+ private static final Map NO_LIMIT = ImmutableMap.of("limit",

just define NO_LIMIT = -1;

coderzc

aldelee

comment created time in 10 hours

Pull request review commenthugegraph/hugegraph

set -evTRAVIS_DIR=`dirname $0`VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout`SERVER_DIR=hugegraph-$VERSION+CONF=$TRAVIS_DIR/conf/hugegraph.properties+REST_CONF=$TRAVIS_DIR/conf/rest-server.properties+GREMLIN_CONF=$TRAVIS_DIR/conf/gremlin-server.yaml

GREMLIN_SERVER_CONF

coderzc

aldelee

comment created time in 10 hours

Pull request review commenthugegraph/hugegraph

set -evTRAVIS_DIR=`dirname $0`VERSION=`mvn help:evaluate -Dexpression=project.version -q -DforceStdout`SERVER_DIR=hugegraph-$VERSION+CONF=$TRAVIS_DIR/conf/hugegraph.properties+REST_CONF=$TRAVIS_DIR/conf/rest-server.properties

REST_SERVER_CONF

coderzc

aldelee

comment created time in 10 hours

是的, 默认要求 JDK 版本在 jdk8/1.8 , 开发环境基于 JDK8, 到 JDK11 肯定有不兼容的地方

很少有项目可以直接兼容使用的, 不过你可以提供一下 JDK11 报错的信息, 后续项目可考虑兼容到 JDK 11 / 15 长期支持版

当然还有一个重要考虑就是升级带来的好处, 比如升级 JDK 11 主要考量是什么呢, 欢迎反馈

snrui

aldelee

comment created time in 11 hours

在java 8环境下可以正常运行,在java 11中重启服务报错

9fb654c6db6b408437c0a711f3dd234b.png

java版本

f8ff8e0ee5125e823db89b3db60b3d56.png

是不兼容java 11吗

created time in 11 hours

commit sha00b22f64670614dba63a420c180685add132074c

open auth properties

push time in 12 hours

commit sha96edf756719c509d171016853598e4d58c5033ce

open auth properties

push time in 12 hours

server 发送 http 请求返回 200,状态正常,监听主机配置为 0.0.0.0,telnet 服务器端口也是通的

提示简单看应该是填入的host 不合法或者没被识别, 你说 server 发送 http 请求是怎么发的? 麻烦贴一下具体语句

你应该在 hubble 的机器上 curl 发一个 简单的 HTTP 请求 (如http://hostbane:8080/graphs), "主机名 + 端口" 都与 浏览器中 hubble 填写的中一致, 然后截图发送的请求.

另外在你浏览器的机器也试试 ping 一下你填的 ip/域名, 看看是否存在任何的网络问题. 如果以上都排查过, 你可以 F12 打开浏览器调试模式, 看看报错的请求是否有其他详细信息, 包括看看 hubble 进程对应输出的日志, 是否有任何具体异常栈输出

snrui

aldelee

comment created time in 13 hours

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值