Repository: cassandra
Updated Branches:
  refs/heads/trunk 73fa27cc6 -> 2dbbbc57d


Comma at the end of the seed list is interpretated as localhost

patch by Nicolas Guyomar; reviewed by Jordan West for (CASSANDRA-14285)


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/2dbbbc57
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/2dbbbc57
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/2dbbbc57

Branch: refs/heads/trunk
Commit: 2dbbbc57dbb70886417c888e2bf8e01da78ff6ee
Parents: 73fa27c
Author: Nicolas GUYOMAR <nguyo...@ippon.fr>
Authored: Fri Mar 2 12:03:26 2018 +0100
Committer: Jason Brown <jasedbr...@gmail.com>
Committed: Fri Mar 2 14:31:42 2018 -0800

----------------------------------------------------------------------
 CHANGES.txt                                                   | 1 +
 src/java/org/apache/cassandra/locator/SimpleSeedProvider.java | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/2dbbbc57/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index ae0c7b2..f52aceb 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 4.0
+ * Comma at the end of the seed list is interpretated as localhost 
(CASSANDRA-14285)
  * Refactor read executor and response resolver, abstract read repair 
(CASSANDRA-14058)
  * Add optional startup delay to wait until peers are ready (CASSANDRA-13993)
  * Add a few options to nodetool verify (CASSANDRA-14201)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/2dbbbc57/src/java/org/apache/cassandra/locator/SimpleSeedProvider.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/locator/SimpleSeedProvider.java 
b/src/java/org/apache/cassandra/locator/SimpleSeedProvider.java
index 47401a0..fe500b4 100644
--- a/src/java/org/apache/cassandra/locator/SimpleSeedProvider.java
+++ b/src/java/org/apache/cassandra/locator/SimpleSeedProvider.java
@@ -52,7 +52,9 @@ public class SimpleSeedProvider implements SeedProvider
         {
             try
             {
-                seeds.add(InetAddressAndPort.getByName(host.trim()));
+                if(!host.trim().isEmpty()) {
+                    seeds.add(InetAddressAndPort.getByName(host.trim()));
+                }
             }
             catch (UnknownHostException ex)
             {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to