hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbau...@apache.org
Subject svn commit: r1336312 - /hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java
Date Wed, 09 May 2012 17:40:47 GMT
Author: mbautin
Date: Wed May  9 17:40:47 2012
New Revision: 1336312

URL: http://svn.apache.org/viewvc?rev=1336312&view=rev
Log:
[jira] [89-fb] [HBASE-5962] interop issue: RowMutations should be added at the end in HbaseObjectWriteable
class

Author: kannan

Summary:
In HbaseObjectWriteable.java new classes should be added to the end; else, old clients will
not be able to talk to new HBase servers. This is causing issues in test cluster with the
following stack trace:

2012-05-08 11:24:32,416 ERROR org.apache.hadoop.hbase.io.HbaseObjectWritable: Can't find class
java.lang.ClassNotFoundException:
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:247)
        at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:792)
        at org.apache.hadoop.hbase.io.HbaseObjectWritable.getClassByName(HbaseObjectWritable.java:552)
        at org.apache.hadoop.hbase.io.HbaseObjectWritable.readObject(HbaseObjectWritable.java:520)
        at org.apache.hadoop.hbase.ipc.HBaseRPC$Invocation.readFields(HBaseRPC.java:136)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Connection.processData(HBaseServer.java:953)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Connection.readAndProcess(HBaseServer.java:895)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.doRead(HBaseServer.java:471)
        at org.apache.hadoop.hbase.ipc.HBaseServer$Listener.run(HBaseServer.java:371)
2012-05-08 11:24:33,766 ERROR org.apache.hadoop.hbase.io.HbaseObjectWritable: Can't find class

Test Plan: will run unit tests and test interop from saturn to dev cluster running new rev.

Reviewers: aaiyer

Reviewed By: aaiyer

CC: hbase-eng@

Differential Revision: https://phabricator.fb.com/D467092

Modified:
    hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java

Modified: hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java?rev=1336312&r1=1336311&r2=1336312&view=diff
==============================================================================
--- hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java
(original)
+++ hbase/branches/0.89-fb/src/main/java/org/apache/hadoop/hbase/io/HbaseObjectWritable.java
Wed May  9 17:40:47 2012
@@ -161,8 +161,6 @@ public class HbaseObjectWritable impleme
     addToMap(Result[].class, code++);
     addToMap(Scan.class, code++);
 
-    addToMap(RowMutations.class, code++);
-
     addToMap(WhileMatchFilter.class, code++);
     addToMap(PrefixFilter.class, code++);
     addToMap(PageFilter.class, code++);
@@ -202,6 +200,8 @@ public class HbaseObjectWritable impleme
 
     // Favored Assignment
     addToMap(AssignmentPlan.class, code++);
+
+    addToMap(RowMutations.class, code++);
   }
 
   private Class<?> declaredClass;



Mime
View raw message