-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Improve][Standalone] Standalone Add param of --metadata-url for runing with metadata #17077
Conversation
@liangyuanpeng Any reason to support using separate metadata for standalone? The standalone is designed for development, not for production. |
I think @liangyuanpeng wants to use other metadata. |
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 update the description according to the placeholder.
private void startBookieWithMetadataStore() throws Exception { | ||
if(StringUtils.isBlank(metadataStoreUrl)){ | ||
log.info("Starting BK with RocksDb metadata store"); | ||
metadataStoreUrl = "rocksdb://" + Paths.get(metadataDir).toAbsolutePath(); | ||
}else{ | ||
log.info("Starting BK with metadata store:",metadataStoreUrl); | ||
} |
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 format this code block according to our code style settings. Briefly, add necessary blanks.
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.
Thanks for your review and i'm busy for otherthing, pick it up in the next week maybe.
Thanks for your reply, Yes, Standalone is more used to development and we can use other metadata to development for check the metadata after support running other metadata. Actually, i'm really do it, Base on etcd metadata store for write the dev code and not zookeeper. |
@codelipenghui @tisonkun PTAL. |
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. Minor comments inline.
@@ -52,6 +52,7 @@ | |||
import org.apache.pulsar.packages.management.storage.filesystem.FileSystemPackagesStorageProvider; | |||
import org.apache.pulsar.zookeeper.LocalBookkeeperEnsemble; | |||
|
|||
|
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.
Revert
a687b36
to
c3f1ca0
Compare
@liangyuanpeng Pulsar CI has been refactored a lot. You can merge the latest master to run CI tasks. |
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
@codelipenghui PTAL,Thanks. |
Ping @codelipenghui, could you review this 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.
LGTM
Motivation
Standalone support running with metadata, like etcd, And rocksdb still by default.
Modifications
Describe the modifications you've done.
Verifying this change
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation
Need to update docs?
[]
doc-required
doc-not-needed
doc
doc-complete