Skip to content

Commit 833a326

Browse files
authored
Merge branch 'master' into master
2 parents 0c79c2c + 21855c6 commit 833a326

File tree

179 files changed

+6985
-1843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

179 files changed

+6985
-1843
lines changed

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ hugegraph-store/hg-store-dist/src/assembly/static/bin/libjemalloc_aarch64.so exp
1212
.github/ export-ignore
1313
.idea/ export-ignore
1414
install-dist/scripts/ export-ignore
15+
install-dist/release-docs/ export-ignore
1516
hugegraph-commons/hugegraph-dist/ export-ignore
1617
docker/ export-ignore

.github/workflows/cluster-test-ci.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: "Cluster Test CI"
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'release-*'
8+
- 'test-*'
9+
pull_request:
10+
11+
jobs:
12+
cluster-test:
13+
runs-on: ubuntu-latest
14+
env:
15+
USE_STAGE: 'true' # Whether to include the stage repository.
16+
17+
steps:
18+
- name: Install JDK 11
19+
uses: actions/setup-java@v3
20+
with:
21+
java-version: '11'
22+
distribution: 'zulu'
23+
24+
- name: Cache Maven packages
25+
uses: actions/cache@v3
26+
with:
27+
path: ~/.m2
28+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
29+
restore-keys: ${{ runner.os }}-m2
30+
31+
- name: Checkout
32+
uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 5
35+
36+
- name: use staged maven repo settings
37+
if: ${{ env.USE_STAGE == 'true' }}
38+
run: |
39+
cp $HOME/.m2/settings.xml /tmp/settings.xml
40+
mv -vf .github/configs/settings.xml $HOME/.m2/settings.xml
41+
42+
- name: Package
43+
run: |
44+
mvn clean package -U -Dmaven.javadoc.skip=true -Dmaven.test.skip=true -ntp
45+
46+
- name: Run simple cluster test
47+
run: |
48+
mvn test -pl hugegraph-cluster-test/hugegraph-clustertest-test -am -P simple-cluster-test -DskipCommonsTests=true
49+
50+
- name: Run multi cluster test
51+
run: |
52+
mvn test -pl hugegraph-cluster-test/hugegraph-clustertest-test -am -P multi-cluster-test -DskipCommonsTests=true

.github/workflows/commons-ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ jobs:
5252
5353
- name: Run common test
5454
run: |
55-
mvn test -pl hugegraph-commons/hugegraph-common -Dtest=UnitTestSuite
55+
mvn test -pl hugegraph-commons/hugegraph-common -Dtest=UnitTestSuite -DskipCommonsTests=false
5656
5757
- name: Run rpc test
5858
run: |
59-
mvn test -pl hugegraph-commons/hugegraph-rpc -Dtest=UnitTestSuite
59+
mvn test -pl hugegraph-commons/hugegraph-rpc -Dtest=UnitTestSuite -DskipCommonsTests=false
6060
6161
- name: Upload coverage to Codecov
6262
uses: codecov/codecov-action@v3.0.0
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Licensed to the Apache Software Foundation (ASF) under one or more
4+
~ contributor license agreements. See the NOTICE file distributed with
5+
~ this work for additional information regarding copyright ownership.
6+
~ The ASF licenses this file to You under the Apache License, Version 2.0
7+
~ (the "License"); you may not use this file except in compliance with
8+
~ the License. You may obtain a copy of the License at
9+
~
10+
~ http://www.apache.org/licenses/LICENSE-2.0
11+
~
12+
~ Unless required by applicable law or agreed to in writing, software
13+
~ distributed under the License is distributed on an "AS IS" BASIS,
14+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
~ See the License for the specific language governing permissions and
16+
~ limitations under the License.
17+
-->
18+
19+
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xmlns="http://maven.apache.org/POM/4.0.0"
21+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
22+
<modelVersion>4.0.0</modelVersion>
23+
<parent>
24+
<groupId>org.apache.hugegraph</groupId>
25+
<artifactId>hugegraph-cluster-test</artifactId>
26+
<version>${revision}</version>
27+
<relativePath>../pom.xml</relativePath>
28+
</parent>
29+
30+
<artifactId>hugegraph-clustertest-dist</artifactId>
31+
32+
<properties>
33+
<dist.dir>${project.parent.basedir}</dist.dir>
34+
<shell-executable>bash</shell-executable>
35+
<assembly.dir>${project.basedir}/src/assembly</assembly.dir>
36+
<assembly.descriptor.dir>${assembly.dir}/descriptor</assembly.descriptor.dir>
37+
<assembly.static.dir>${assembly.dir}/static</assembly.static.dir>
38+
<executable.jar.name>hg-ct</executable.jar.name>
39+
</properties>
40+
41+
<build>
42+
<plugins>
43+
<plugin>
44+
<artifactId>maven-assembly-plugin</artifactId>
45+
<version>2.4</version>
46+
<executions>
47+
<execution>
48+
<id>assembly-hugegraph-ct</id>
49+
<phase>package</phase>
50+
<goals>
51+
<goal>single</goal>
52+
</goals>
53+
<configuration>
54+
<attach>false</attach>
55+
<appendAssemblyId>false</appendAssemblyId>
56+
<outputDirectory>${dist.dir}</outputDirectory>
57+
<descriptors>
58+
<descriptor>
59+
${assembly.descriptor.dir}/assembly.xml
60+
</descriptor>
61+
</descriptors>
62+
<finalName>${final.name}</finalName>
63+
</configuration>
64+
</execution>
65+
</executions>
66+
</plugin>
67+
</plugins>
68+
</build>
69+
70+
<dependencies>
71+
<dependency>
72+
<groupId>org.apache.hugegraph</groupId>
73+
<artifactId>hugegraph-clustertest-minicluster</artifactId>
74+
<version>${revision}</version>
75+
</dependency>
76+
</dependencies>
77+
78+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<!--
2+
~ Licensed to the Apache Software Foundation (ASF) under one or more
3+
~ contributor license agreements. See the NOTICE file distributed with
4+
~ this work for additional information regarding copyright ownership.
5+
~ The ASF licenses this file to You under the Apache License, Version 2.0
6+
~ (the "License"); you may not use this file except in compliance with
7+
~ the License. You may obtain a copy of the License at
8+
~
9+
~ http://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
18+
<assembly>
19+
<id>distribution</id>
20+
<includeBaseDirectory>false</includeBaseDirectory>
21+
22+
<formats>
23+
<format>dir</format>
24+
</formats>
25+
26+
<fileSets>
27+
<fileSet>
28+
<directory>${assembly.static.dir}</directory>
29+
<outputDirectory>/</outputDirectory>
30+
<includes>
31+
<include>**/*</include>
32+
</includes>
33+
</fileSet>
34+
35+
</fileSets>
36+
37+
<dependencySets>
38+
<!-- code jars -->
39+
<dependencySet>
40+
<outputDirectory>/lib</outputDirectory>
41+
<unpack>false</unpack>
42+
<scope>runtime</scope>
43+
<useProjectArtifact>false</useProjectArtifact>
44+
<includes>
45+
<include>org.apache.hugegraph:${executable.jar.name}:jar:*</include>
46+
</includes>
47+
</dependencySet>
48+
</dependencySets>
49+
50+
</assembly>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
# gremlin entrance to create graph
19+
# auth config: org.apache.hugegraph.auth.HugeFactoryAuthProxy
20+
gremlin.graph=org.apache.hugegraph.HugeFactory
21+
22+
# cache config
23+
#schema.cache_capacity=100000
24+
# vertex-cache default is 1000w, 10min expired
25+
vertex.cache_type=l2
26+
#vertex.cache_capacity=10000000
27+
#vertex.cache_expire=600
28+
# edge-cache default is 100w, 10min expired
29+
edge.cache_type=l2
30+
#edge.cache_capacity=1000000
31+
#edge.cache_expire=600
32+
33+
34+
# schema illegal name template
35+
#schema.illegal_name_regex=\s+|~.*
36+
37+
#vertex.default_label=vertex
38+
39+
backend=hstore
40+
serializer=binary
41+
42+
store=hugegraph
43+
44+
# pd config
45+
pd.peers=$PD_PEERS_LIST$
46+
47+
# task config
48+
task.scheduler_type=local
49+
task.schedule_period=10
50+
task.retry=0
51+
task.wait_timeout=10
52+
53+
# raft config
54+
raft.mode=false
55+
raft.path=./raft-log
56+
raft.safe_read=true
57+
raft.use_replicator_pipeline=true
58+
raft.election_timeout=10000
59+
raft.snapshot_interval=3600
60+
raft.backend_threads=48
61+
raft.read_index_threads=8
62+
raft.snapshot_threads=4
63+
raft.snapshot_parallel_compress=false
64+
raft.snapshot_compress_threads=4
65+
raft.snapshot_decompress_threads=4
66+
raft.read_strategy=ReadOnlyLeaseBased
67+
raft.queue_size=16384
68+
raft.queue_publish_timeout=60
69+
raft.apply_batch=1
70+
raft.rpc_threads=80
71+
raft.rpc_connect_timeout=5000
72+
raft.rpc_timeout=60
73+
raft.install_snapshot_rpc_timeout=36000
74+
75+
# search config
76+
search.text_analyzer=jieba
77+
search.text_analyzer_mode=INDEX
78+
79+
# rocksdb backend config
80+
#rocksdb.data_path=/path/to/disk
81+
#rocksdb.wal_path=/path/to/disk
82+
83+
84+
# cassandra backend config
85+
cassandra.host=localhost
86+
cassandra.port=9042
87+
cassandra.username=
88+
cassandra.password=
89+
#cassandra.connect_timeout=5
90+
#cassandra.read_timeout=20
91+
#cassandra.keyspace.strategy=SimpleStrategy
92+
#cassandra.keyspace.replication=3
93+
94+
# hbase backend config
95+
#hbase.hosts=localhost
96+
#hbase.port=2181
97+
#hbase.znode_parent=/hbase
98+
#hbase.threads_max=64
99+
# IMPORTANT: recommend to modify the HBase partition number
100+
# by the actual/env data amount & RS amount before init store
101+
# It will influence the load speed a lot
102+
#hbase.enable_partition=true
103+
#hbase.vertex_partitions=10
104+
#hbase.edge_partitions=30
105+
106+
# mysql backend config
107+
#jdbc.driver=com.mysql.jdbc.Driver
108+
#jdbc.url=jdbc:mysql://127.0.0.1:3306
109+
#jdbc.username=root
110+
#jdbc.password=
111+
#jdbc.reconnect_max_times=3
112+
#jdbc.reconnect_interval=3
113+
#jdbc.ssl_mode=false
114+
115+
# postgresql & cockroachdb backend config
116+
#jdbc.driver=org.postgresql.Driver
117+
#jdbc.url=jdbc:postgresql://localhost:5432/
118+
#jdbc.username=postgres
119+
#jdbc.password=
120+
#jdbc.postgresql.connect_database=template1
121+
122+
# palo backend config
123+
#palo.host=127.0.0.1
124+
#palo.poll_interval=10
125+
#palo.temp_dir=./palo-data
126+
#palo.file_limit_size=32

0 commit comments

Comments
 (0)