cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject cassandra git commit: fix String.format to match markers and parameters
Date Thu, 16 Jun 2016 00:50:50 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk f2251aa41 -> 589528096


fix String.format to match markers and parameters


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

Branch: refs/heads/trunk
Commit: 5895280968d4476330806e571fca06080dce858b
Parents: f2251aa
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Wed Jun 15 20:49:18 2016 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Wed Jun 15 20:49:18 2016 -0400

----------------------------------------------------------------------
 .../db/compaction/TimeWindowCompactionStrategyOptions.java       | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/58952809/src/java/org/apache/cassandra/db/compaction/TimeWindowCompactionStrategyOptions.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/compaction/TimeWindowCompactionStrategyOptions.java
b/src/java/org/apache/cassandra/db/compaction/TimeWindowCompactionStrategyOptions.java
index bcbdab6..07df606 100644
--- a/src/java/org/apache/cassandra/db/compaction/TimeWindowCompactionStrategyOptions.java
+++ b/src/java/org/apache/cassandra/db/compaction/TimeWindowCompactionStrategyOptions.java
@@ -114,12 +114,12 @@ public final class TimeWindowCompactionStrategyOptions
             int sstableWindowSize = optionValue == null ? DEFAULT_COMPACTION_WINDOW_SIZE
: Integer.parseInt(optionValue);
             if (sstableWindowSize < 1)
             {
-                throw new ConfigurationException(String.format("%s must be greater than 1",
DEFAULT_COMPACTION_WINDOW_SIZE, sstableWindowSize));
+                throw new ConfigurationException(String.format("%d must be greater than 1
for %s", sstableWindowSize, COMPACTION_WINDOW_SIZE_KEY));
             }
         }
         catch (NumberFormatException e)
         {
-            throw new ConfigurationException(String.format("%s is not a parsable int (base10)
for %s", optionValue, DEFAULT_COMPACTION_WINDOW_SIZE), e);
+            throw new ConfigurationException(String.format("%s is not a parsable int (base10)
for %s", optionValue, COMPACTION_WINDOW_SIZE_KEY), e);
         }
 
         optionValue = options.get(EXPIRED_SSTABLE_CHECK_FREQUENCY_SECONDS_KEY);


Mime
View raw message