Commit Graph

1598 Commits

Author SHA1 Message Date
conghuhu e6f64dbdb3
feat(WIP): add IntMapByDynamicHash (#2294) 2023-10-26 15:23:35 +08:00
conghuhu e90489f361
fix(core): handle schema Cache expandCapacity concurrent problem (#2332) 2023-10-25 17:25:07 +08:00
Wu Chencan 8db0a9b195
feat(core): support batch+parallel edges traverse (#2312)
## Main Changes

- Enhance Consumers.java, supporting ExceptionHandle and `Future` to handle InterruptedException when awaiting
- Add Nested Iterator Edge and support batch execution
- Support batch execution & thread parallel in KoutTraverser and Kneighbor
2023-10-24 19:33:24 +08:00
Dandelion b43526da60
fix: always wait for storage if rocksdb is selected (#2333) 2023-10-24 17:24:43 +08:00
Dandelion d4b95ca323
feat: support Cassandra with docker-compose in server (#2307)
## Main Changes

1. change the dockerfile, adding the shell to wait for storage backend and use a docker-entrypoint.sh to manage the starting process.
2. delete a deprecated class in  gremlin-console.sh (reference: [doc of ScriptExecutor](https://tinkerpop.apache.org/javadocs/3.2.3/full/org/apache/tinkerpop/gremlin/groovy/jsr223/ScriptExecutor.html))
3. add a healthy check in docker-compose
4. add an example folder where we can put all the template docker-compose.yml here
5. add `*swagger-ui*` in gitignore, which appears after you compile the source code locally.

---------

Co-authored-by: imbajin <jin@apache.org>
2023-10-23 16:29:42 +08:00
Dandelion 73329ce4f5
doc: README.md tiny improve (#2331) 2023-10-23 16:17:36 +08:00
SunnyBoy-WYH 869fc81811
feat(api): support embedded arthas agent in hugegraph-server (#2278) 2023-10-20 10:15:51 +08:00
Jermy Li 45636a0489
README.md tiny improve (#2320) 2023-10-13 13:47:01 +08:00
SunnyBoy-WYH fc9bc2866e
feat(api): support metric API Prometheus format & add statistic metric api (#2286) 2023-10-08 20:21:09 +08:00
SunnyBoy-WYH 30ef2f7c6b
feat: support White IP List (#2299)
tips:
- this feat works when auth mode was set.
- this feat works when white ip status was enabled.

because now PD is unavailable,just use java list; when pd ready , we can checkout pd.
2023-10-02 13:25:45 +08:00
Dandelion d7c1c2149c
doc: update README about start server with example graph (#2315) 2023-10-02 13:14:01 +08:00
M 4ceef1ab0c
fix: base-ref/head-ref missed in dependency-review on master (#2308) 2023-09-11 10:48:37 +08:00
Wu Chencan 8e99d85d33
feat(api-core): support label & property filtering for both edge and vertex & support kout dfs mode (#2295)
- Support label & property filtering for both edge and vertex and the filtering is implemented in Kout Post and Kneighbor - Post Apis, reducing unnecessary graph searches through pruning
- Support Kout dfs mode in Kout Post Api

Originally only edge label filtering was supported, now label and property filtering for edge and vertex is supported.
- add classes VEStepEntity and VEStep to support serialization in request
- add class Steps to support filtering of edge and vertex in runtime(core)
- add new method edgesOfVertex(Id source, Steps steps) to support label and property filtering for both edge and vertex in HugeTraverser.java

---------

Co-authored-by: imbajin <jin@apache.org>
2023-09-10 16:47:45 +08:00
Dandelion 1d0969dede
fix(dist): avoid var PRELOAD cover environmnet vars (#2302)
Update hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh

---------

Co-authored-by: imbajin <jin@apache.org>
2023-09-08 22:07:57 +08:00
Chong Shen aaf67cf81c
fix(core): close flat mapper iterator after usage (#2281)
close [Bug] FlatMapperIterator should be closed after usage #2280
2023-08-29 16:09:31 +08:00
Dandelion 8a515f20db
feat(dist): support pre-load test graph data in docker container (#2241)
- Provide the related conf and groovy for user to pre load some data.
- Change the start-hugegraph.sh to get the environment variables to decide to pre-load or not.

---------

Co-authored-by: imbajin <jin@apache.org>
2023-08-28 15:36:21 +08:00
V_Galaxy 77c76124af
chore(dist): replace wget to curl to download swagger-ui (#2277)
Main Changes:
1. replace `wget` by `curl` when downloading `swagger-ui`
2. silence the output of `curl` and `tar` commands
3. reuse the existing `v4.15.5.tar.gz` before downloading
4. avoid downloading `swagger-ui` in non-Linux platforms to prevent build failures (there might be a cross-platform build approach available 🤔)
5. wrapp the script content within `<![CDATA[ ... ]]>` blocks ensures that the script retains its original format when generating the `dist.sh` script (also suppresses automatic indentation)
6. remove intermediate files at the end of the script

**An alternative approach**, during the generation of the `dist.sh` script, only the `${final.name}` property from the build process is utilized. It might be possible to separately store a `dist.sh` script within hugegraph-dist, then use `sed` during the build process to replace the value of `${final.name}`, **thereby avoiding the need to embed script content within the pom file**.

---------

Co-authored-by: imbajin <jin@apache.org>
2023-08-25 15:20:44 +08:00
lzyxx 4d7ad86776
fix checkstyle: Update StandardStateMachineCallback.java (#2290)
During the compilation of your code, an informational message was displayed indicating an issue with the file /home/lzy/hugegraph/hugegraph-core/src/main/java/org/apache/hugegraph/masterelection/StandardStateMachineCallback.java at line 36. The specific problem was that the length of this line exceeded 100 characters, with a total of 101 characters.

To address this issue, I have made modifications to this class. I have split the originally long line into multiple lines to ensure that each line's length adheres to the coding standards' specified limits. This action not only aligns with the requirements of the code style, but also improves the readability and maintainability of the code.
2023-08-22 14:07:34 +08:00
DanGuge d12f5734e6
feat(api&core): in oltp apis, add statistics info and support full info about vertices and edges (#2262)
* chore: improve gitignore file

* feat: add ApiMeasure to collect runtime data

ApiMeasure will count the number of vertices and edges traversed at runtime, and the time the api takes to execute

* feat: Add ApiMeasure to JsonSerializer and Modify the Serializer interface

* JsonSerializer: return measure information in api response

* Serializer: fit the feature that returns complete information about vertices and edges

* refactor: format code based on hugegraph-style.xml

* feat: Add statistics information in all oltp restful apis response and Support full information about vertices and edges

Statistics information:

* add vertexIterCounter and edgeIterCounter in HugeTraverser.java to track traversed vertices and edges at run time

* modify all oltp restful apis to add statistics information in response

Full information about vertices and edges:

* add 'with_vertex' and 'with_edge' parameter option in apis

* modify oltp apis to support vertex and edge information in api response

* add EdgeRecord in HugeTraverser.java to record edges at run time and generate the edge information returned in api response

* modify Path and PathSet in HugeTraverser.java to support full edge information storage

* modify all traversers to support track of edge information at run time

* fix: numeric cast

* fix: Jaccard Similarity api test

* fix: adjust the code style and naming convention

* Empty commit

* Empty commit

* fix:
1. change System.currentTimeMillis() to System.nanoTime();
2. modify addCount()

* fix: rollback change in .gitignore

* fix: rollback ServerOptions.java code style

* fix: rollback API.java code style and add exception in else branch

* fix: fix code style

* fix: name style & code style
* rename edgeRecord to edgeResults
* fix Request class code style in SameNeighborsAPI.java
2023-08-19 13:41:08 +08:00
DanGuge b02c2bdaa7
fix(api): incorrect use of 'NO_LIMIT' variable (#2253)
* replace Query.NO_LIMIT with HugeTraverser.NO_LIMIT
2023-07-23 10:51:58 +08:00
Z-HUANT 7927335303
fix: asf invalid notification scheme 'discussions_comment' (#2250)
* fix:asf invalid notification scheme 'discussions_status'

---------

Co-authored-by: zhuangpengtao <zhuangpengtao@joyy.com>
Co-authored-by: imbajin <jin@apache.org>
2023-07-20 18:08:53 +08:00
Z-HUANT c922b10c31
fix:asf invalid notification scheme 'discussions_status' (#2247) 2023-07-20 10:32:56 +08:00
conghuhu 5df28fa2ca
feat(perf): support JMH benchmark in HG-test module (#2238)
* chore: add param to max cap

* chore: add non argument constructor to IntMapByEcSegment

---------

Co-authored-by: shiyi <congguoqing.cgq@alibaba-inc.com>
2023-07-17 16:50:35 +08:00
Z-HUANT 23776a7686
fix: optimizing ClassNotFoundException error message for MYSQL (#2246) 2023-07-17 16:49:37 +08:00
KeeProMise 8ee3d32b4f
doc: modify ASF and remove meaningless CLA (#2237) 2023-07-01 18:44:49 +08:00
Liu Xiao 5227248799
fix(core): support order by id (#2233)
* revert sslmode
2023-06-21 18:12:02 +08:00
Liu Xiao 80a4cd6877
chore: add pr template (#2234)
* update close/fix synx

* uniform case

---------

Co-authored-by: imbajin <jin@apache.org>
2023-06-21 18:11:18 +08:00
Liu Xiao 324cbb2c1f
collect option ssl_mode for hugegraph-test (#2235) 2023-06-21 17:46:21 +08:00
KeeProMise 258d1812ff
add com.janeluo.ikkanalyzer dependency to core model (#2206)
* put the third-party dependency license file and Declare the dependency in LICENSE info
2023-06-20 21:45:04 +08:00
Lionztt b836426db0
chore: improve the UI & content in README (#2227)
* feat: change contributor img size to normal size

---------

Co-authored-by: imbajin <jin@apache.org>
2023-06-13 00:04:28 +08:00
V_Galaxy b4e67e1dfb
fix: error when start gremlin-console with sample script (#2231)
* fix: add `-i` parameter in `gremlin-console.sh`, add `serverStarted` in `example.groovy`

* fix: modify hugegraph conf path

* fix: remove unnecessary index on properties on [name]
2023-06-12 16:25:47 +08:00
Liu Xiao b8c7743616
fix: jdbc ssl mode parameter (#2224) 2023-06-06 19:58:58 +08:00
M bcf2a395cf
doc: update README & add QR code (#2218)
Co-authored-by: imbajin <jin@apache.org>
2023-06-05 13:54:38 +08:00
imbajin a946ad1de4
chore: update .asf.yaml for mail rule (#2221) 2023-05-31 22:56:58 +08:00
vaughn e1d9607410
refact(core): optimized batch removal of remaining indices consumed by a single consumer (#2203) 2023-05-31 12:36:52 +08:00
starry-sky_down-to-earth f23c648937
refact(core): early stop unnecessary loops in edge cache (#2211) 2023-05-17 00:23:45 +08:00
KeeProMise 0f2faf48dc
fix: remove dup 'From' in filterExpiredResultFromFromBackend (#2207) 2023-05-08 20:55:02 +08:00
vaughn 267ff6d3a8
chore: async remove left index shouldn't effect query (#2199) 2023-04-19 21:19:01 +08:00
Simon Cheung 7b6a4bd136
fix exception of vertex-drop with index (#2181)
note only the vertex with index data needs forceLoad
2023-03-29 22:35:58 +08:00
zoulei 6997a87d0c
move validate release to hugegraph-doc (#2109) 2023-03-27 16:32:06 +08:00
zoulei 9e4fb9647e
chore: remove stage-repo in pom due to release done & update mail rule (#2128)
* add new issues mailbox and move some mails to it

---------

Co-authored-by: imbajin <jin@apache.org>
2023-03-16 13:16:38 +08:00
Bond 4b74ab6cec
feat: use an enhanced CypherAPI to refactor it (#2143)
Co-authored-by: lynn.bond <liyan75@baidu.com>
Co-authored-by: imbajin <jin@apache.org>
2023-03-15 22:36:13 +08:00
vaughn 6409d9277d
optimize: remove lock of globalMasterInfo (#2151) 2023-03-14 18:55:29 +08:00
Rocky 82c7e78a8c
feat: support parallel compress snapshot (#2136)
* add raft default config

* delete useless final

* fix import style

---------

Co-authored-by: imbajin <jin@apache.org>
2023-03-14 18:50:35 +08:00
Jermy Li 901da45e59
fix query dirty edges of a vertex with cache (#2166)
fix #2163
Change-Id: I58b26f8a791885800e42821a3d4b2724f4e647a0
2023-03-14 17:59:11 +08:00
vaughn 31c6c6df13
feat: support task auto manage by server role state machine (#2130) 2023-03-08 23:20:36 +08:00
Jermy Li a0f34d5973
chore: disable up-to-date in PR (#2150) 2023-03-08 22:53:52 +08:00
imbajin d968deb124
refact: use a slim way to build docker image on latest code & support zgc (#2118)
* also modify shell
2023-03-08 12:14:37 +08:00
imbajin 6c0d596eac
refact: use standard UTF-8 charset & enhance CI configs (#2095) 2023-03-07 23:10:31 +08:00
YangJiaqi 76fa64498a
add github token for license check comment (#2139) 2023-03-02 21:22:16 +08:00