Set default value of ZK_VERSION in docker compose file#11127
Set default value of ZK_VERSION in docker compose file#11127FrankChen021 wants to merge 1 commit intoapache:masterfrom
Conversation
| <docker.build.skip>false</docker.build.skip> | ||
| <docker.build.hadoop>false</docker.build.hadoop> | ||
| <it.indexer>middleManager</it.indexer> | ||
| <zk.version>3.5</zk.version> |
There was a problem hiding this comment.
it should be removed from .travis.yml too?
There was a problem hiding this comment.
Good question. I think it should be, but I'm unable to validate this change on my local so I leave it there. Will Any change to .travis.yml be reflected on the CI in this PR ? If it's, I can push a commit to delete the default version in that file.
There was a problem hiding this comment.
Will Any change to .travis.yml be reflected on the CI in this PR ?
Yes. It will.
|
thanks @FrankChen021 I'm actually planning to remove the need for this environment variable in #11073. Since we want to keep the maven ZK version in sync with what we run integration tests against, we may need to adjust things a little. |
Thanks for you information. I checked the PR you mentioned, and found that there's no change made to |
|
@FrankChen021 I see your point, I updated #11073 to completely remove the need to specify ZK_VERSION at runtime when spinning up docker-compose. The variable is still required at build time to build the docker image, but that's no different than other docker build arguments such as MYSQL_VERSION that we already have to specify. Hope this satisfies your concerns. |
|
Thanks @xvrl , I close this PR and wait for your PR to be merged. |
Description
#10786 Introduced an environment variable
ZK_VERSIONindocker-compose.base.ymland this env variable is set to3.5in pom.xml of integration-test module and the travis file.travis.yml.In the README of integration-test module, there's a section describing how to manually bring up Druid cluster by docker-compose. And because of lacking of description that
ZK_VERSIONmust be set, following the steps in that section leads to failure of starting updruid-zookeeper-kafkaservice.Of course one way to solve that problem is by updating the README to add a step to tell users to set ZK_VERSION before manually bringing up Druid cluster. But I think it's not friendly for users to do this because ZK_VERSION is an interval environment variable mainly for backward compatibility and not a variable exposed to users.
So, I make a slight change to the compose file to set the default value of ZK_VERSION to 3.5, so that users don't care about setting this value.
Such behaviors are compatible with current ways.
Since the default value of ZK_VERSION is set in compose file, I also remove zk.version property from pom.xml in integration-test module to simply the management of default version.
This PR has: