cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1068906 - /cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
Date Wed, 09 Feb 2011 14:34:48 GMT
Author: jbellis
Date: Wed Feb  9 14:34:47 2011
New Revision: 1068906

URL: http://svn.apache.org/viewvc?rev=1068906&view=rev
Log:
improve can't open sstables from the future message
patch by stuhood; reviewed by jbellis for CASSANDRA-2133

Modified:
    cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ColumnFamilyStore.java

Modified: cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ColumnFamilyStore.java?rev=1068906&r1=1068905&r2=1068906&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
(original)
+++ cassandra/branches/cassandra-0.7/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
Wed Feb  9 14:34:47 2011
@@ -429,7 +429,8 @@ public class ColumnFamilyStore implement
             generations.add(desc.generation);
             if (desc.isFromTheFuture())
             {
-                throw new RuntimeException("you can't open sstables from the future!");
+                throw new RuntimeException(String.format("Can't open sstables from the future!
Current version %s, found file: %s",
+                                                         Descriptor.CURRENT_VERSION, desc));
             }
         }
         Collections.sort(generations);



Mime
View raw message