Commit Graph

407 Commits

Author SHA1 Message Date
SunnyBoy-WYH 869fc81811
feat(api): support embedded arthas agent in hugegraph-server (#2278) 2023-10-20 10:15:51 +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
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
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
vaughn 267ff6d3a8
chore: async remove left index shouldn't effect query (#2199) 2023-04-19 21:19:01 +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
vaughn 31c6c6df13
feat: support task auto manage by server role state machine (#2130) 2023-03-08 23:20:36 +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
vaughn eed6103359
fix: some reference url and 3rd-party file license (#2100) 2023-02-07 23:44:05 +08:00
vaughn f49b2b808d
chore: remove hugegraph-server.store & jacoco jar & LicenseVerify (#2092) 2023-01-16 14:10:59 +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
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
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
青年 df05b2b1b0
let sub-modules use revision (#2039) 2022-11-30 00:32:17 +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
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
vamossagar12 b79a690cd4
Adding try-with-resources block around PredictionTraverser (#2016)
Co-authored-by: Sagar Rao <sagarrao@Sagars-MacBook-Pro.local>
2022-11-15 21:07:51 +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 9e4e33f41a implement 8 olap algorithms (#4)
* add olap algo api
* improve source filter
* fix louvain shaking with limit degree
* catch exception for lpa and louvain
* add 3 params for lpa: label,source_label,percision
* improve louvain node store
* remove vertices from class Community
* move showCommunity to AbstractCommAlgorithm
* add some parameters to AbstractAlgorithm
* improve louvain log
* improve clearPass and communities check
* split louvain cache
* fix degreeCentrality bug: degree is always < 500

Change-Id: I2341b981dab44f43ac50ae0f8fa5e51b7acc1b5a
2022-11-09 18:24:54 +08:00
zyxxoo 66b167422f
fix: User-controlled data in numeric cast [#1987] (#1996)
* fix: User-controlled data in numeric cast [#1987]
2022-10-30 23:29:50 +08:00
seagle cc80d27745
fix redundant Checkstyle (#1896)
* add redundant

* add redundant check

* merge line

* update alignment

* delete duplicates check MissingSwitchDefault

* update wrap line

* update code style

* merge dev

* merge master
2022-10-30 16:16:21 +08:00
Jermy Li 1fbd5ffcb5
fix TraversalStrategyProxy() compile error on java 11 (#1982)
compile error on java 11:
  Cannot infer type arguments for new TraversalStrategyProxy<>(strategy)

Change-Id: I6a31cb24d4f37cc6af9ae9769a986593301ea1ff
2022-10-28 00:00:22 +08:00
青年 8abf3d5524
chore: support check license header with RAT & fill the gaps (#1988) 2022-10-26 19:43:41 +08:00
Jade Peng 9b5950e4be
fix(api): fix remoting rpc server not started (#1975)
Co-authored-by: jadepeng <jqpeng@iflytek.com>
2022-10-21 21:40:28 +08:00
xiaoleizi2016 b699c5cd62
refact: modify abnormal logs (#1948) 2022-10-08 19:27:38 +08:00
YangJiaqi 2f11ea530f
Fix start RpcServer NPE (#1921) 2022-07-09 17:32:45 +08:00
Jermy Li 6861f12662
support updateIfPresent/updateIfAbsent operation (#1897)
* support updateIfPresent/updateIfAbsent operation

Change-Id: I63f179e0b6c2e2f86e6ae185ce3a7115a4da7657

* implement for other backends

Change-Id: Iab9ab42ba0504664ce3320c8905b2d92d01d849a

* fix mysql/pgsql

Change-Id: I397fd5d300c563cd9298b76ab336bff78f2564ea

* call updateIfAbsent() for schema insert

Change-Id: I02989962791fa369600f8dedbfd56e2b40c79077

* add updateSchema() api for schema tx

Change-Id: I760db3c964f913d3c552c1d85193d9f3e0d401a4

* Do schema update in the lock block

Change-Id: I2daad8825939b04ff9b1374fff930ac9c4173f72

* fix '~task_status' not indexed in label '~task'

Change-Id: I6383df825a003ff0e3f619398ee7c2873194eb56
2022-07-06 19:50:30 +08:00
Jermy Li 1d4b834c59
fix: can't shutdown when starting with exception (#1902)
Change-Id: If312aa4368bfd7af540818bc299ed219f4e9f335
2022-07-04 17:43:59 +08:00
Jermy Li a1055fe866
fix: Traversal.graph is empty in StepStrategy.apply() with `count().is(0)` (#1903) 2022-07-01 14:48:01 +08:00
seagle 98dc91efef
fix protobuf Checkstyle (#1881) 2022-06-08 19:17:07 +08:00
zyxxoo 2af01bc92d
Add system schema store (#1891)
* Add meta table into system store
* Add system schema store
* Add test case for read version
* Let AbstractBackendStore impl default storedVersion()
* fix small bug og HugeProject
* add test for SystemSchemaStore
* fix initStore schema missed

Change-Id: I5c9d65c4ae022cb84592e8f2aa57bd7485cd12e4
Co-authored-by: liningrui <liningrui@baidu.com>
2022-06-02 16:42:46 +08:00
ShouJing 1118418585
fix: fix ProfileApi url check (#1893) 2022-05-28 13:52:31 +08:00
Simon Cheung 88d71e75b1
chore: replace `APPLICATION_JSON` with `TEXT_PLAIN` in dynamic create graph api (#1888) 2022-05-18 17:39:55 +08:00
wangyao 335f0ea4f0
feat: support swagger UI to viewing API (#1880)
implement #1879
Co-authored-by: Yao Wang <wangyao_yewu@cmss.chinamobile.com>
2022-05-16 20:19:00 +08:00
Linary 8609968e66
Improve some action for install snapshot and add peer (#1527)
1. Fix bug that relative path need normalize when load snapshot
2. Use zip decompresser since decompress tar file may lead dead loop
3. Move raft.group_peers from graph-config into rest-server-config
4. Pass raft.endpoint and raft.group_peers from server to core
5. Let RestServer start before GremlinServer
6. Use read-index to ensure the raft log caught up for new node
7. Let add_peer and remove_peer API work in async job
8. Use shared rpc server and delete raft.endpoint

Change-Id: I7de3d98cb51c3b7c32a4f19a0d99ed622f78d331
Co-authored-by: Zhangmei Li <lizhangmei@baidu.com>
2022-05-16 19:34:25 +08:00
wangyao 239b06e8b0
improve allow role for drop graph (#1878)
Co-authored-by: Yao Wang <wangyao_yewu@cmss.chinamobile.com>
2022-05-13 16:59:43 +08:00
Jade Peng cd09304f39
feat: support query data by use cypher language (#1866)
implement #1748

Co-authored-by: jadepeng <jqpeng@iflytek.com>
2022-05-12 14:38:56 +08:00
Fizell be7c0838a5
fix hugegraph-api code checkstyle (#1851) 2022-04-26 16:19:13 +08:00
zyxxoo 85b01b2333
chore: java 11 version support (#1653) 2022-04-25 19:13:30 +08:00
Jermy Li 8d52abb2a0
HugeGraph-622: Bump up to version 0.13.0 (#1740) 2022-04-21 14:15:46 +08:00
zyxxoo d778eb1383
Fix close exception and server-info EXPIRED_INTERVAL (#1804) 2022-04-07 12:57:50 +08:00
Simon 7acd4fc0e4
Add `graphs.enable_dynamic_create_drop` option (#1809) 2022-04-06 17:46:42 +08:00
Josh Soref 5368f3205e
Spelling corrections (#1798)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
Co-authored-by: Josh Soref <jsoref@users.noreply.github.com>
2022-03-30 17:12:18 +08:00
imbajin b591f7d8b3
refact: fix some bugs & clean code (#1741)
* feat(api): Support adamic-adar & resource-allocation algorithms

* split into 2 class

* enhance a string of code logic

* keep NO_LIMIT now

* Update EdgeStep.java

Co-authored-by: imbajin <imbajin@users.noreply.github.com>
2022-03-21 17:26:38 +08:00
imbajin 0ca54c4097
feat(api): support adamic-adar & resource-allocation algorithms (#1763) 2022-03-18 12:07:31 +08:00