bookkeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From zhai...@apache.org
Subject [bookkeeper] branch master updated: BOOKKEEPER-980: BookKeeper Tools doesn't process the argument correctly
Date Tue, 18 Jul 2017 08:47:57 GMT
This is an automated email from the ASF dual-hosted git repository.

zhaijia pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git


The following commit(s) were added to refs/heads/master by this push:
     new f47dd42  BOOKKEEPER-980: BookKeeper Tools doesn't process the argument correctly
f47dd42 is described below

commit f47dd4272f54bb95fd38abdd6c492dbe199dd7a4
Author: Sijie Guo <sijie@apache.org>
AuthorDate: Tue Jul 18 16:47:43 2017 +0800

    BOOKKEEPER-980: BookKeeper Tools doesn't process the argument correctly
    
    Descriptions of the changes in this PR:
    
    Fix the issue described in [BOOKKEEPER-980](https://issues.apache.org/jira/browse/BOOKKEEPER-980).
    
    Author: Sijie Guo <sijie@apache.org>
    
    Reviewers: Matteo Merli <None>, Venkateswararao Jujjuri (JV) <None>
    
    This closes #255 from sijie/BOOKKEEPER-980
---
 .../src/main/java/org/apache/bookkeeper/tools/BookKeeperTools.java      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bookkeeper-server/src/main/java/org/apache/bookkeeper/tools/BookKeeperTools.java
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/tools/BookKeeperTools.java
index 54e07c3..41a9c00 100644
--- a/bookkeeper-server/src/main/java/org/apache/bookkeeper/tools/BookKeeperTools.java
+++ b/bookkeeper-server/src/main/java/org/apache/bookkeeper/tools/BookKeeperTools.java
@@ -66,7 +66,7 @@ public class BookKeeperTools {
         final BookieSocketAddress bookieSrc = new BookieSocketAddress(bookieSrcString[0],
Integer
                 .parseInt(bookieSrcString[1]));
         BookieSocketAddress bookieDest = null;
-        if (args.length < 3) {
+        if (args.length > 2) {
             String bookieDestString[] = args[2].split(":");
             if (bookieDestString.length < 2) {
                 System.err.println("BookieDest inputted has invalid name format (host:port
expected): "

-- 
To stop receiving notification emails like this one, please contact
['"commits@bookkeeper.apache.org" <commits@bookkeeper.apache.org>'].

Mime
View raw message