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

Fix close exception and server-info EXPIRED_INTERVAL #1804

Merged
merged 5 commits into from
Apr 7, 2022

Conversation

zyxxoo
Copy link
Contributor

@zyxxoo zyxxoo commented Mar 31, 2022

also fix "The server with name xx already in cluster"

@zyxxoo zyxxoo force-pushed the fix_close_exception branch from 2eb6c9b to f141447 Compare March 31, 2022 02:10
@codecov
Copy link

codecov bot commented Mar 31, 2022

Codecov Report

Merging #1804 (5209065) into master (0cc02e4) will increase coverage by 3.96%.
The diff coverage is 88.88%.

@@             Coverage Diff              @@
##             master    #1804      +/-   ##
============================================
+ Coverage     66.93%   70.90%   +3.96%     
- Complexity      980      982       +2     
============================================
  Files           446      446              
  Lines         37781    37902     +121     
  Branches       5380     5398      +18     
============================================
+ Hits          25289    26873    +1584     
+ Misses         9768     8299    -1469     
- Partials       2724     2730       +6     
Impacted Files Coverage Δ
.../java/com/baidu/hugegraph/task/HugeServerInfo.java 73.91% <ø> (ø)
...java/com/baidu/hugegraph/dist/HugeGraphServer.java 36.06% <50.00%> (-0.78%) ⬇️
...com/baidu/hugegraph/auth/ContextGremlinServer.java 31.88% <100.00%> (+2.47%) ⬆️
...src/main/java/com/baidu/hugegraph/HugeFactory.java 75.40% <100.00%> (+3.71%) ⬆️
...hugegraph/backend/store/hbase/HbaseSerializer.java 92.30% <0.00%> (-7.70%) ⬇️
...u/hugegraph/backend/store/hbase/HbaseFeatures.java 83.33% <0.00%> (-7.58%) ⬇️
...aidu/hugegraph/backend/store/hbase/HbaseTable.java 75.46% <0.00%> (-3.29%) ⬇️
...idu/hugegraph/backend/store/hbase/HbaseTables.java 88.42% <0.00%> (-1.49%) ⬇️
...om/baidu/hugegraph/backend/store/ram/RamTable.java 66.44% <0.00%> (-0.11%) ⬇️
... and 135 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 0cc02e4...5209065. Read the comment docs.

* eventHub execute notify event on a shutdown executor, so here
* remove the HugeFactory shutdown hook.
*/
HugeFactory.removeShutdownHook();
Copy link
Contributor

Choose a reason for hiding this comment

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

also add graph.tx().close() to checkVersionOrExit()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

now, threadpool wait graph close, but close check tx all close(need threadpool shutdown), so here is a conflict, so we resolve this problem must close before notify thread close tx(AOP threadpool), maybe i can do it after java11 code be merged

@zyxxoo zyxxoo force-pushed the fix_close_exception branch from 7c90f05 to 31fb13f Compare March 31, 2022 08:26
@zyxxoo zyxxoo force-pushed the fix_close_exception branch from 31fb13f to 5a851d7 Compare March 31, 2022 09:10
@javeme javeme changed the title Fix close exception Fix close exception and server-info EXPIRED_INTERVAL Apr 7, 2022
@imbajin imbajin merged commit d778eb1 into master Apr 7, 2022
@imbajin imbajin deleted the fix_close_exception branch April 7, 2022 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants