Repository navigation
PIP-117: Change Pulsar standalone defaults - #15478
Conversation
|
/pulsarbot run-failure-checks |
eolivelli
left a comment
There was a problem hiding this comment.
Some thought (I voted the PIP but now that we are close to committing the patch some doibts camento my mind)
Disabling zookeeper by default may have some nasty impact of integration tests of many applications and that run the same test against many versions of Pulsar.
I wonder if there is some easy way, especially for docker users, like passing a single ENV entry of telling Pulsar standalone to run with zookeeper.
It will be quite difficult to support probably but I am now imagining the pain for making integration tests of many applications work with different versions of Pulsar
| @Parameter(names = { "-h", "--help" }, description = "Show this help message") | ||
| private boolean help = false; | ||
|
|
||
| private boolean usingNew211Defaults; |
There was a problem hiding this comment.
Using version smells a little from my point ofbview.
What about using PIP117 as reference?
usingPIP117Defaults
or we can invert the flag and name it 'useLegscyDefaults' and cite this PIP with a link
| private boolean usingNew211Defaults; | ||
|
|
||
| public void start() throws Exception { | ||
| usingNew211Defaults = !Paths.get(zkDir).toFile().exists(); |
There was a problem hiding this comment.
Os this is true maybe we could log a line explaining that we found the directory and we are switching to the old defaults
There was a problem hiding this comment.
A warning log would be great when both --metadata-dir is provided and zkDir exists.
Jason918
left a comment
There was a problem hiding this comment.
LGTM. Left a minor suggestion.
| private boolean usingNew211Defaults; | ||
|
|
||
| public void start() throws Exception { | ||
| usingNew211Defaults = !Paths.get(zkDir).toFile().exists(); |
There was a problem hiding this comment.
A warning log would be great when both --metadata-dir is provided and zkDir exists.
I'm not sure I'm following here. The external interface of Pulsar does not change whether its metadata is stored in ZK or RocksDb. I agree though that it's probably a good idea to leave a CLI flag to force the ZK mode, to leave the option open, but that wouldn't be the default. |
| } | ||
|
|
||
| public static boolean isBasedOnZookeeper(String metadataURL) { | ||
| if (!metadataURL.contains("://")) { |
There was a problem hiding this comment.
@merlimat it seems that metadata url doesn't contains // part?
From the codebase a metadata url to zk is zk:127.0.0.1:2181 and a metadata url to memory is memory:local.
This reverts commit bf194b5.
Master Issue: #13302
Motivation
Change standalone metadata impl from ZooKeeper to RocksDB
Pulsar functions package backend --> Change from using DistributedLog to using local filesystem, storing the
jars directly in the data folder instead of uploading them into BK.
Pulsar functions state store implementation --> Change the state store to be backed by a MetadataStore based backed,
with the RocksDB implementation.
Table Service --> Do not start BK table service by default