You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by jg...@apache.org on 2010/07/26 19:54:01 UTC
svn commit: r979387 - in /hadoop/common/trunk: CHANGES.txt
src/java/org/apache/hadoop/ipc/RemoteException.java
Author: jghoman
Date: Mon Jul 26 17:54:01 2010
New Revision: 979387
URL: http://svn.apache.org/viewvc?rev=979387&view=rev
Log:
HADOOP-6877. Common part of HDFS-1178. Contributed by Kan Zhang.
Modified:
hadoop/common/trunk/CHANGES.txt
hadoop/common/trunk/src/java/org/apache/hadoop/ipc/RemoteException.java
Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=979387&r1=979386&r2=979387&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Mon Jul 26 17:54:01 2010
@@ -83,6 +83,9 @@ Trunk (unreleased changes)
HADOOP-6861. Adds new non-static methods in Credentials to read and
write token storage file. (Jitendra Pandey & Owen O'Malley via ddas)
+ HADOOP-6877. Common part of HDFS-1178 (NameNode servlets should communicate
+ with NameNode directrly). (Kan Zhang via jghoman)
+
OPTIMIZATIONS
BUG FIXES
Modified: hadoop/common/trunk/src/java/org/apache/hadoop/ipc/RemoteException.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/ipc/RemoteException.java?rev=979387&r1=979386&r2=979387&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/ipc/RemoteException.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/ipc/RemoteException.java Mon Jul 26 17:54:01 2010
@@ -22,7 +22,6 @@ import java.io.IOException;
import java.lang.reflect.Constructor;
import org.xml.sax.Attributes;
-import org.znerd.xmlenc.XMLOutputter;
public class RemoteException extends IOException {
/** For java.io.Serializable */
@@ -93,20 +92,6 @@ public class RemoteException extends IOE
return ex;
}
- /** Write the object to XML format */
- public void writeXml(String path, XMLOutputter doc) throws IOException {
- doc.startTag(RemoteException.class.getSimpleName());
- doc.attribute("path", path);
- doc.attribute("class", getClassName());
- String msg = getLocalizedMessage();
- int i = msg.indexOf("\n");
- if (i >= 0) {
- msg = msg.substring(0, i);
- }
- doc.attribute("message", msg.substring(msg.indexOf(":") + 1).trim());
- doc.endTag();
- }
-
/** Create RemoteException from attributes */
public static RemoteException valueOf(Attributes attrs) {
return new RemoteException(attrs.getValue("class"),