Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: java 11 version support #1653

Merged
merged 13 commits into from
Apr 25, 2022
Merged

chore: java 11 version support #1653

merged 13 commits into from
Apr 25, 2022

Conversation

zyxxoo
Copy link
Contributor

@zyxxoo zyxxoo commented Nov 13, 2021

No description provided.

@zyxxoo zyxxoo force-pushed the zy_dev branch 2 times, most recently from e14b293 to 9cb3b41 Compare November 13, 2021 11:20
Copy link
Contributor

@javeme javeme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice improvement, can also add java 11 env test to travis matrix

@codecov
Copy link

codecov bot commented Nov 14, 2021

Codecov Report

Merging #1653 (29d169e) into master (e6a24fc) will increase coverage by 4.46%.
The diff coverage is 48.92%.

@@             Coverage Diff              @@
##             master    #1653      +/-   ##
============================================
+ Coverage     66.29%   70.75%   +4.46%     
  Complexity      980      980              
============================================
  Files           446      447       +1     
  Lines         37970    38040      +70     
  Branches       5411     5389      -22     
============================================
+ Hits          25172    26916    +1744     
+ Misses        10097     8492    -1605     
+ Partials       2701     2632      -69     
Impacted Files Coverage Δ
...api/src/main/java/com/baidu/hugegraph/api/API.java 75.00% <ø> (ø)
...n/java/com/baidu/hugegraph/api/auth/AccessAPI.java 0.00% <ø> (ø)
...n/java/com/baidu/hugegraph/api/auth/BelongAPI.java 0.00% <ø> (ø)
...in/java/com/baidu/hugegraph/api/auth/GroupAPI.java 0.00% <ø> (ø)
...in/java/com/baidu/hugegraph/api/auth/LoginAPI.java 74.28% <ø> (ø)
.../java/com/baidu/hugegraph/api/auth/ProjectAPI.java 82.05% <ø> (ø)
...n/java/com/baidu/hugegraph/api/auth/TargetAPI.java 0.00% <ø> (ø)
...ain/java/com/baidu/hugegraph/api/auth/UserAPI.java 75.80% <ø> (ø)
...idu/hugegraph/api/filter/AuthenticationFilter.java 55.44% <ø> (+0.99%) ⬆️
...aidu/hugegraph/api/filter/CompressInterceptor.java 73.07% <ø> (ø)
... and 272 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e6a24fc...29d169e. Read the comment docs.

@zyxxoo zyxxoo changed the title chore: improve java 11 version support chore: improve java 17 version support Nov 14, 2021
@zyxxoo zyxxoo changed the title chore: improve java 17 version support chore: java 17 version support Nov 14, 2021
@zyxxoo zyxxoo force-pushed the zy_dev branch 3 times, most recently from 7125736 to 66676cf Compare November 15, 2021 02:22
@github-actions
Copy link

Due to the lack of activity, the current pr is marked as stale and will be closed after 180 days, any update will remove the stale label

@javeme javeme added java17 Upgrade to java 17+ java11 Upgrade to java 11+ and removed inactive labels Dec 24, 2021
@zyxxoo zyxxoo force-pushed the zy_dev branch 2 times, most recently from 697e0de to 77b47b8 Compare January 11, 2022 13:19
@zyxxoo zyxxoo changed the title chore: java 17 version support chore: java 11 version support Jan 11, 2022
@zyxxoo zyxxoo force-pushed the zy_dev branch 3 times, most recently from 632f425 to fae550e Compare January 18, 2022 10:07
@zyxxoo zyxxoo force-pushed the zy_dev branch 5 times, most recently from d7917e6 to c85880e Compare January 24, 2022 07:37
Comment on lines 44 to 46
Method registerFieldsToFilterMethodTemp = null;
Method registerMethodsToFilterMethodTemp = null;
Class reflectionClazzTemp = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get it

@zyxxoo zyxxoo force-pushed the zy_dev branch 3 times, most recently from bf593cb to 8e483ba Compare April 12, 2022 10:43
@zyxxoo zyxxoo force-pushed the zy_dev branch 2 times, most recently from 0f59476 to 158c754 Compare April 24, 2022 14:51
@javeme
Copy link
Contributor

javeme commented Apr 24, 2022

we can ignore cassandra error #1843 in this commit

@javeme
Copy link
Contributor

javeme commented Apr 25, 2022

ci errors:

Error: Exception in thread "main" com.baidu.hugegraph.exception.ConnectionException: Failed to connect to Cassandra
	at com.baidu.hugegraph.backend.store.cassandra.CassandraStore.open(CassandraStore.java:189)
	at com.baidu.hugegraph.backend.tx.AbstractTransaction.<init>(AbstractTransaction.java:82)
	at com.baidu.hugegraph.backend.tx.IndexableTransaction.<init>(IndexableTransaction.java:30)
	at com.baidu.hugegraph.backend.tx.SchemaTransaction.<init>(SchemaTransaction.java:75)
	at com.baidu.hugegraph.backend.cache.CachedSchemaTransaction.<init>(CachedSchemaTransaction.java:54)
	at com.baidu.hugegraph.StandardHugeGraph.openSchemaTransaction(StandardHugeGraph.java:413)
	at com.baidu.hugegraph.StandardHugeGraph.access$2600(StandardHugeGraph.java:112)
	at com.baidu.hugegraph.StandardHugeGraph$TinkerPopTransaction.getOrNewTransaction(StandardHugeGraph.java:1388)
	at com.baidu.hugegraph.StandardHugeGraph$TinkerPopTransaction.schemaTransaction(StandardHugeGraph.java:1364)
	at com.baidu.hugegraph.StandardHugeGraph$TinkerPopTransaction.access$100(StandardHugeGraph.java:1234)
	at com.baidu.hugegraph.StandardHugeGraph.schemaTransaction(StandardHugeGraph.java:470)
	at com.baidu.hugegraph.StandardHugeGraph.backendStoreSystemInfo(StandardHugeGraph.java:249)
	at com.baidu.hugegraph.auth.HugeGraphAuthProxy.backendStoreSystemInfo(HugeGraphAuthProxy.java:615)
	at com.baidu.hugegraph.cmd.InitStore.initGraph(InitStore.java:94)
	at com.baidu.hugegraph.cmd.InitStore.main(InitStore.java:79)
Caused by: java.lang.NoClassDefFoundError: com/codahale/metrics/JmxReporter
	at com.datastax.driver.core.Metrics.<init>(Metrics.java:146)
	at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1501)
	at com.datastax.driver.core.Cluster.init(Cluster.java:208)
	at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:376)
	at com.datastax.driver.core.Cluster.connect(Cluster.java:332)
	at com.baidu.hugegraph.backend.store.cassandra.CassandraSessionPool$Session.open(CassandraSessionPool.java:216)
	at com.baidu.hugegraph.backend.store.cassandra.CassandraStore.open(CassandraStore.java:171)
	... 14 more
Caused by: java.lang.ClassNotFoundException: com.codahale.metrics.JmxReporter
	at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
	at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
	... 21 more
Error: The operation was canceled.

zyxxoo added 11 commits April 25, 2022 14:32
chore: improve code

chore: improve glassfish version

chore: upgrade 3th lib

fix: some api unit test

fix: core test

fix: resolve confict and improve common version

fix: startup error by script

chore: fix conflict

chore: resolve backend test

default dont use auth, and fix raft unit startup error

default dont use auth, and fix raft unit startup error

add permission verify

add some comments

improve cassandra version

improve code

remove empty file

fix: drop graph

fix: drop graph
import com.baidu.hugegraph.HugeFactory;
import org.apache.commons.configuration2.Configuration;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the order right? (the original keep them divide?)

@@ -21,8 +21,9 @@

import java.util.Map;

import org.apache.commons.configuration.Configuration;
import org.apache.commons.configuration.PropertiesConfiguration;
import com.baidu.hugegraph.config.OptionSpace;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the order?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after renaming to apache package and enable style-check, then fix the import style uniformly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense

@imbajin
Copy link
Member

imbajin commented Apr 25, 2022

And could we use JDK11 grammar and build a JDK8-compatible package?

@imbajin imbajin merged commit 85b01b2 into master Apr 25, 2022
@imbajin imbajin deleted the zy_dev branch April 25, 2022 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement General improvement java11 Upgrade to java 11+ java17 Upgrade to java 17+
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants