-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Add ZOOKEEPER_HOSTS as an optional property #5435
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5435 +/- ##
===========================================
+ Coverage 58.52% 76.60% +18.08%
===========================================
Files 241 241
Lines 14632 14634 +2
Branches 616 607 -9
===========================================
+ Hits 8563 11211 +2648
+ Misses 6069 3423 -2646
... and 135 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
caf6e8c
to
a066119
Compare
@@ -186,7 +188,8 @@ object Invoker { | |||
|
|||
// --uniqueName is defined with a valid value, id is empty, assign an id via zookeeper | |||
case CmdLineArgs(Some(unique), None, _, overwriteId) => | |||
if (config.zookeeperHosts.startsWith(":") || config.zookeeperHosts.endsWith(":")) { | |||
if (config.zookeeperHosts.startsWith(":") || config.zookeeperHosts.endsWith(":") || | |||
config.zookeeperHosts.equals("")) { |
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.
It will make sure zookeeper hosts are configured when the ID assignor is used.
Without this change, invokers with the ID assignor can not be deployed. |
LGTM 👍 |
* Add ZOOKEEPER_HOSTS as an optional property * Check if zookeeper hosts are empty * Apply scalaFmt (cherry picked from commit 6375c96)
Description
As
ZOOKEEPER_HOSTS
is removed from the required properties, it is no longer transformed into the whisk config from the environment variables.But when the instance id assigned is used, the zookeeper host becomes a required property.
This change is to make it an optional property.
Related issue and scope
My changes affect the following components
Types of changes
Checklist: