-
Notifications
You must be signed in to change notification settings - Fork 521
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(server): reinitialize the progress to set up graph auth friendly #2411
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #2411 +/- ##
============================================
- Coverage 66.23% 66.22% -0.01%
+ Complexity 830 828 -2
============================================
Files 511 511
Lines 42595 42596 +1
Branches 5942 5942
============================================
- Hits 28211 28210 -1
- Misses 11568 11572 +4
+ Partials 2816 2814 -2 ☔ View full report in Codecov by Sentry. |
hugegraph-server/hugegraph-dist/src/main/java/org/apache/hugegraph/cmd/InitStore.java
Outdated
Show resolved
Hide resolved
…raph/cmd/InitStore.java Co-authored-by: imbajin <[email protected]>
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.
LGTM
@@ -101,6 +101,8 @@ private static HugeGraph initGraph(String configPath) throws Exception { | |||
LOG.info("Skip init-store due to the backend store of '{}' " + | |||
"had been initialized", graph.name()); | |||
backendStoreInfo.checkVersion(); | |||
// Init the required information for creating the admin account (when switch from non-auth mode to auth mode) |
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.
please wrap line if exceed 80~100 chars
LOG.info("Skip init-store due to the backend store of '{}' " + | ||
"had been initialized", graph.name()); |
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.
@Z-HUANT seems we could move this log after L108? (due to the code logic)
could enhance it in another reviewed PR
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.
I'll put it in this PR later: #2408.
Purpose of the PR
修复需要重新初始化数据库才能设置 auth 的问题
fixed #125 (comment)
Main Changes
Switch to auth-mode without removing graph data (不需要重新初始化数据库就可以设置 auth)
Verifying these changes
自己测试流程如下
Does this PR potentially affect the following parts?
影响 init-store
Documentation Status
Doc - TODO
Doc - Done
Doc - No Need
Doc:apache/incubator-hugegraph-doc#320