-
Notifications
You must be signed in to change notification settings - Fork 525
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
Conversation
e14b293
to
9cb3b41
Compare
There was a problem hiding this 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
hugegraph-api/src/main/java/com/baidu/hugegraph/auth/HugeFactoryAuthProxy.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/util/ReflectionProxy.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/util/ReflectionProxy.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/util/ReflectionProxy.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/util/ReflectionProxy.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
7125736
to
66676cf
Compare
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 |
697e0de
to
77b47b8
Compare
hugegraph-core/src/main/java/com/baidu/hugegraph/util/ConfigUtil.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/util/Reflection.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/util/Reflection.java
Outdated
Show resolved
Hide resolved
hugegraph-core/src/main/java/com/baidu/hugegraph/util/Reflection.java
Outdated
Show resolved
Hide resolved
hugegraph-dist/src/assembly/static/conf/graphs/hugegraph.properties
Outdated
Show resolved
Hide resolved
632f425
to
fae550e
Compare
d7917e6
to
c85880e
Compare
Method registerFieldsToFilterMethodTemp = null; | ||
Method registerMethodsToFilterMethodTemp = null; | ||
Class reflectionClazzTemp = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get it
hugegraph-core/src/main/java/com/baidu/hugegraph/util/Reflection.java
Outdated
Show resolved
Hide resolved
bf593cb
to
8e483ba
Compare
0f59476
to
158c754
Compare
we can ignore cassandra error #1843 in this commit |
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. |
...assandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraSessionPool.java
Show resolved
Hide resolved
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
...assandra/src/main/java/com/baidu/hugegraph/backend/store/cassandra/CassandraSessionPool.java
Outdated
Show resolved
Hide resolved
import com.baidu.hugegraph.HugeFactory; | ||
import org.apache.commons.configuration2.Configuration; |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the order?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make sense
And could we use JDK11 grammar and build a JDK8-compatible package? |
No description provided.