Commit Graph

1040 Commits

Author SHA1 Message Date
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
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
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
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
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
Liu Xiao 5227248799
fix(core): support order by id (#2233)
* revert sslmode
2023-06-21 18:12:02 +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
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
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
imbajin 6c0d596eac
refact: use standard UTF-8 charset & enhance CI configs (#2095) 2023-03-07 23:10:31 +08:00
vaughn 1d524760eb
chore: cmn algorithm optimization (#2134) 2023-03-01 08:19:04 +08:00
imbajin 271d72c9f3
doc: update issue template & README file (#2131)
* doc: update issue template & README file
* replace outdated url
2023-02-28 00:16:32 +08:00
Simon Cheung 614d47159d
fix: transfer add_peer/remove_peer command to leader (#2112) 2023-02-20 19:04:15 +08:00
Simon Cheung effedb0c23
chore: fix snowflake license (#2093) 2023-02-09 19:18:47 +08:00
vaughn eed6103359
fix: some reference url and 3rd-party file license (#2100) 2023-02-07 23:44:05 +08:00
imbajin fc6e3702da
refact: update with release branch (#2091)
* fix: add style file back for building

* fix: script no permission

* chore: add NOTICE and LICENSE to binary package and add DISCLAIMER file

Co-authored-by: Simon Cheung <ming@apache.org>
Co-authored-by: vaughn <vaughn@apache.org>
Co-authored-by: 青年 <1043706593@qq.com>
2023-01-17 01:51:26 +08:00
青年 91a616bb38
fix: support null value for gremlin test (#2061)
* fix(core): adapt HugeVertex.property() with null values

Co-authored-by: imbajin <jin@apache.org>
2023-01-16 22:53:24 +08:00
青年 b385c45c35
chore:remove copyright in license header (#2090)
Co-authored-by: imbajin <jin@apache.org>
2023-01-13 23:26:52 +08:00
Jermy Li 62d52a20ba
fix: shutdown exception overrides the original exception (#2072)
Change-Id: I8398ae50197cab7ffe06fa17781300303e385dc9
2023-01-11 22:52:31 +08:00
Jermy Li 7efcf879c1
fix: check uncommit due gremlin partition test silently fails (#2065) 2023-01-04 23:18:55 +08:00
seagle fb48e831f7
fix: empty label exception should be labelCanNotBeNull() (#2063) 2022-12-30 11:57:37 +08:00
Jermy Li eb7a65c440
refact: fallback queryNumber() if there are uncommitted records (#2060) 2022-12-29 15:26:53 +08:00
vaughn 6c3170c496
chore: fix TinkerPop unit test (#2055)
* chore: don't support persistence for memory backend
* chore: setup graph by first step graph when graph is null
* chore: apply relations optimize logic
* chore: don't support null properties
* fix: g.V().has(empty).count() and g.V().count().as('a').select('a')
* fix: specify the code generation directory for raft.proto (#2057)
* fix: tinkerpop unit schema no define
* fix the style & clean some outdated code

Co-authored-by: Simon Cheung <ming@apache.org>
Co-authored-by: imbajin <jin@apache.org>
2022-12-26 22:41:46 +08:00
Simon Cheung fc27f2c200
fix: specify the code generation directory for raft.proto (#2057) 2022-12-21 16:23:42 +08:00
imbajin 9cbb61862c
chore: prepare for apache v1.0.0 release (#2048)
* chore: apache release

* chore: update release script & remove redundant pom config
2022-12-14 17:52:01 +08:00
zyxxoo ea888d11d8
FIX: rat ignore protobuf generate file check (#2045) 2022-12-05 23:23:20 +08:00
imbajin 2251adf073
refact(dist): fix "restart" script not work & clean for script (#2041)
- fix "restart" script not work
- clean shell script to avoid error in high-version bash/sh
2022-12-01 23:38:45 +08:00
青年 3b44568e8b
fix outdated manifest version & use project.version instead (#2033)
Co-authored-by: imbajin <jin@apache.org>
2022-11-26 22:40:33 +08:00
Cong Zhao 6c9fe3a874
Fix tx leak in tests (#2031) 2022-11-25 18:57:56 +08:00
imbajin d340420341 refact(cassandra): update pom & ApiVersion & fix style
TODO: and we need also check the 0.69 in pom
2022-11-23 21:16:14 +08:00
青年 67a689c86c refact: adapt all to apache package and dependencies (Breaking Changes) 2022-11-23 21:16:14 +08:00
青年 57462b057e
Feat/fix codeql (#2022)
* fix ConfigUtil.java CodeQL

* fix code checkstyle

Co-authored-by: Jermy Li <jermy@apache.org>
2022-11-20 18:39:43 +08:00
Jermy Li 109495e9be
mac m1: fix JNA UnsatisfiedLinkError by upgrade to v5.12.1 (#2013) 2022-11-18 23:47:32 +08:00
Jade Peng 020b7dc00a
refactor(core): improve code by flow idea suggests (#2000)
Co-authored-by: jadepeng <jqpeng@iflytek.com>
2022-11-11 23:34:00 +08:00
imbajin b1b12098fe adapt the latest version & clean code
also fix the sec alert
2022-11-09 18:24:54 +08:00
Jermy Li 75e004a4e3 fix lpa not exist c_label property when a request pass source_label (#78)
Change-Id: Ib2a9766e29708fa4fcbaec152f5c9e571c96a0a6
2022-11-09 18:24:54 +08:00
zhoney c3e9f8ec06 fix fusiform and kcore min_groups args default value (#79)
Change-Id: I843c595172d7b45b894d764bf859dec61a35c8b5
2022-11-09 18:24:54 +08:00
zhoney b4fa2a16ac fix ap compile error for edition 0.11 (#72)
Change-Id: Ibf0f415ee6bd9cf0ff8b598e2166cc70667c49b7
2022-11-09 18:24:54 +08:00
houzhizhen f63f056034 performance improvement: the meetNode is invoked only when node.distance is parent.distance() + 1 (#69) 2022-11-09 18:24:54 +08:00