Skip to content

Commit

Permalink
Merge remote-tracking branch 'apache/master' into ZOOKEEPER-3482-master
Browse files Browse the repository at this point in the history
  • Loading branch information
Mate Szalay-Beko committed Jan 13, 2020
2 parents 28da105 + 27b92ca commit 576ac0b
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 1,092 deletions.
19 changes: 16 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
language: java
sudo: false
jdk:
- openjdk8
- openjdk11

matrix:
include:
- os: linux
jdk: openjdk8
- os: linux
jdk: openjdk11
- os: linux
arch: s390x
jdk: openjdk11
addons:
apt:
update: true
packages:
- maven
- libcppunit-dev

cache:
directories:
Expand Down
11 changes: 6 additions & 5 deletions zookeeper-docs/src/main/resources/markdown/zookeeperAdmin.md
Original file line number Diff line number Diff line change
Expand Up @@ -1146,12 +1146,13 @@ of servers -- that is, when deploying clusters of servers.
non-authenticated UDP-based version of fast leader election, "2"
corresponds to the authenticated UDP-based version of fast
leader election, and "3" corresponds to TCP-based version of
fast leader election. Currently, algorithm 3 is the default.
fast leader election. Algorithm 3 was made default in 3.2.0 and
prior versions (3.0.0 and 3.1.0) were using algorithm 1 and 2 as well.
###### Note
>The implementations of leader election 1, and 2 are now
**deprecated**. We have the intention
of removing them in the next release, at which point only the
FastLeaderElection will be available.
>The implementations of leader election 1, and 2 were
**deprecated** in 3.4.0. Since 3.6.0 only FastLeaderElection is available,
in case of upgrade you have to shutdown all of your servers and
restart them with electionAlg=3 (or by removing the line from the configuration file). >

* *maxTimeToWaitForEpoch* :
(Java system property: **zookeeper.leader.maxTimeToWaitForEpoch**)
Expand Down
19 changes: 0 additions & 19 deletions zookeeper-docs/src/main/resources/markdown/zookeeperCLI.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,11 @@ ZooKeeper -server host:port cmd args
history
listquota path
ls [-s] [-w] [-R] path
ls2 path [watch]
printwatches on|off
quit
reconfig [-s] [-v version] [[-file path] | [-members serverID=host:port1:port2;port3[,...]*]] | [-add serverId=host:port1:port2;port3[,...]]* [-remove serverId[,...]*]
redo cmdno
removewatches path [-c|-d|-a] [-l]
rmr path
set [-s] [-v version] path data
setAcl [-s] [-v version] [-R] path acl
setquota -n|-b val path
Expand Down Expand Up @@ -324,15 +322,6 @@ Listing the child nodes of one path
WatchedEvent state:SyncConnected type:NodeChildrenChanged path:/brokers
```

## ls2

'ls2' has been deprecated. Please use 'ls [-s] path' instead.

```bash
[zkshell: 7] ls2 /
'ls2' has been deprecated. Please use 'ls [-s] path' instead.
```

## printwatches
A switch to turn on/off whether printing watches or not.

Expand Down Expand Up @@ -422,14 +411,6 @@ Remove the watches under a node.

```

## rmr
The command 'rmr' has been deprecated. Please use 'deleteall' instead.

```bash
[zkshell: 4] rmr /zk-latencies4
The command 'rmr' has been deprecated. Please use 'deleteall' instead
```

## set
Set/update the data on a path.

Expand Down
1 change: 0 additions & 1 deletion zookeeper-jute/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<executions>
<execution>
<id>pre-compile-jute</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
import org.apache.zookeeper.cli.GetConfigCommand;
import org.apache.zookeeper.cli.GetEphemeralsCommand;
import org.apache.zookeeper.cli.ListQuotaCommand;
import org.apache.zookeeper.cli.Ls2Command;
import org.apache.zookeeper.cli.LsCommand;
import org.apache.zookeeper.cli.MalformedCommandException;
import org.apache.zookeeper.cli.ReconfigCommand;
Expand Down Expand Up @@ -105,12 +104,9 @@ public boolean getPrintWatches() {
new CreateCommand().addToMap(commandMapCli);
new DeleteCommand().addToMap(commandMapCli);
new DeleteAllCommand().addToMap(commandMapCli);
// Depricated: rmr
new DeleteAllCommand("rmr").addToMap(commandMapCli);
new SetCommand().addToMap(commandMapCli);
new GetCommand().addToMap(commandMapCli);
new LsCommand().addToMap(commandMapCli);
new Ls2Command().addToMap(commandMapCli);
new GetAclCommand().addToMap(commandMapCli);
new SetAclCommand().addToMap(commandMapCli);
new StatCommand().addToMap(commandMapCli);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ public CliCommand parse(String[] cmdArgs) throws CliParseException {

@Override
public boolean exec() throws CliException {
printDeprecatedWarning();
int batchSize;
try {
batchSize = cl.hasOption("b") ? Integer.parseInt(cl.getOptionValue("b")) : 1000;
Expand All @@ -88,10 +87,4 @@ public boolean exec() throws CliException {
return false;
}

private void printDeprecatedWarning() {
if ("rmr".equals(args[0])) {
err.println("The command 'rmr' has been deprecated. " + "Please use 'deleteall' instead.");
}
}

}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,10 @@ private void printChildren(List<String> children, Stat stat) {
}
out.append(child);
}
out.append("]");
out.append("]\n");
if (stat != null) {
new StatPrinter(out).print(stat);
}
out.append("\n");
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ private void flush() throws IOException, RequestProcessorException {
if (this.nextProcessor instanceof Flushable) {
((Flushable) this.nextProcessor).flush();
}
lastFlushTime = Time.currentElapsedTime();
}
lastFlushTime = Time.currentElapsedTime();
}

public void shutdown() {
Expand Down
Loading

0 comments on commit 576ac0b

Please sign in to comment.