Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZOOKEEPER-2694: sync CLI command does not wait for result from server
- Thanks the original work from [arshad.mohammad ](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=arshad.mohammad) - more details in [ZOOKEEPER-2694](https://issues.apache.org/jira/browse/ZOOKEEPER-2694) Author: maoling <maoling199210191@sina.com> Reviewers: eolivelli@apache.org, andor@apache.org Closes #823 from maoling/ZOOKEEPER-2694 and squashes the following commits: 41723cd [maoling] print the resultCode when sync has failed 95123c0 [maoling] make the Sync more user-friendly a3ce170 [maoling] SYNC_TIMEOUT & use the TimeUnit.SECONDS.toMillis & a responsible way of handling the InterruptedException df0bf73 [maoling] CliWrapperException 52c3ad0 [maoling] change CountDownLatch to CompletableFuture 0cc1edd [maoling] add the wait_timeout: 30s cf01294 [maoling] ZOOKEEPER-2694:sync CLI command does not wait for result from server (cherry picked from commit e2bb6e8) Signed-off-by: Andor Molnar <andor@apache.org>
- Loading branch information