Skip to content

Commit

Permalink
adjust test config from 3.5 option - dont ignore 3.5 test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbean authored and nemith committed Jul 27, 2019
1 parent 368011f commit a851669
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ script:
matrix:
allow_failures:
- go: tip
- env: zk_version=3.5.4-beta
fast_finish: true

env:
Expand Down
3 changes: 2 additions & 1 deletion server_java.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,14 @@ func (sc ServerConfig) Marshall(w io.Writer) error {
// TODO: allow setting this
fmt.Fprintln(w, "reconfigEnabled=true")
fmt.Fprintln(w, "4lw.commands.whitelist=*")
fmt.Fprintln(w, "standaloneEnabled=false")

if len(sc.Servers) < 2 {
// if we dont have more than 2 servers we just dont specify server list to start in standalone mode
// see https://zookeeper.apache.org/doc/current/zookeeperStarted.html#sc_InstallingSingleMode for more details.
return nil
}
// if we then have more than one server force it to be distributed
fmt.Fprintln(w, "standaloneEnabled=false")

for _, srv := range sc.Servers {
if srv.PeerPort <= 0 {
Expand Down

0 comments on commit a851669

Please sign in to comment.