cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r1138692 - /cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
Date Wed, 22 Jun 2011 23:39:50 GMT
Author: jbellis
Date: Wed Jun 22 23:39:50 2011
New Revision: 1138692

URL: http://svn.apache.org/viewvc?rev=1138692&view=rev
Log:
add path for sstable version failure message
patch by Jackson Chung; reviewed by jbellis for CASSANDRA-2813

Modified:
    cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java

Modified: cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
URL: http://svn.apache.org/viewvc/cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java?rev=1138692&r1=1138691&r2=1138692&view=diff
==============================================================================
--- cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
(original)
+++ cassandra/branches/cassandra-0.8/src/java/org/apache/cassandra/io/sstable/SSTableWriter.java
Wed Jun 22 23:39:50 2011
@@ -237,8 +237,8 @@ public class SSTableWriter extends SSTab
         if (!desc.isLatestVersion)
             // TODO: streaming between different versions will fail: need support for
             // recovering other versions to provide a stable streaming api
-            throw new RuntimeException(String.format("Cannot recover SSTable with version
%s (current version %s).",
-                                                     desc.version, Descriptor.CURRENT_VERSION));
+            throw new RuntimeException(String.format("Cannot recover SSTable %s due to version
mismatch. (current version is %s).", desc.toString()
+                                                     , Descriptor.CURRENT_VERSION));
 
         return new Builder(desc, type);
     }



Mime
View raw message