MAPREDUCE-3217. Reenabled and fixed bugs in the failing ant test TestAuditLogger. Contributed by Devaraj K.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1197438 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vinod Kumar Vavilapalli 2011-11-04 09:01:51 +00:00
parent 08cb4cf334
commit 0b5a4823a9
2 changed files with 6 additions and 4 deletions

View File

@ -75,6 +75,9 @@ Release 0.23.1 - Unreleased
MAPREDUCE-3219. Reenabled and fixed bugs in the failing test MAPREDUCE-3219. Reenabled and fixed bugs in the failing test
TestDelegationToken. (Hitesh Shah via vinodkv) TestDelegationToken. (Hitesh Shah via vinodkv)
MAPREDUCE-3217. Reenabled and fixed bugs in the failing ant test
TestAuditLogger. (Devaraj K via vinodkv)
Release 0.23.0 - 2011-11-01 Release 0.23.0 - 2011-11-01
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -21,6 +21,7 @@
import java.net.InetSocketAddress; import java.net.InetSocketAddress;
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.ipc.ProtocolInfo;
import org.apache.hadoop.ipc.RPC; import org.apache.hadoop.ipc.RPC;
import org.apache.hadoop.ipc.Server; import org.apache.hadoop.ipc.Server;
import org.apache.hadoop.ipc.TestRPC.TestImpl; import org.apache.hadoop.ipc.TestRPC.TestImpl;
@ -123,6 +124,7 @@ public void testAuditLoggerWithoutIP() throws Exception {
* A special extension of {@link TestImpl} RPC server with * A special extension of {@link TestImpl} RPC server with
* {@link TestImpl#ping()} testing the audit logs. * {@link TestImpl#ping()} testing the audit logs.
*/ */
@ProtocolInfo(protocolName = "org.apache.hadoop.ipc.TestRPC$TestProtocol")
private class MyTestRPCServer extends TestImpl { private class MyTestRPCServer extends TestImpl {
@Override @Override
public void ping() { public void ping() {
@ -135,10 +137,8 @@ public void ping() {
/** /**
* Test {@link AuditLogger} with IP set. * Test {@link AuditLogger} with IP set.
*/ */
@SuppressWarnings("deprecation")
public void testAuditLoggerWithIP() throws Exception { public void testAuditLoggerWithIP() throws Exception {
/*
// TODO
// Disable test to address build failures.
Configuration conf = new Configuration(); Configuration conf = new Configuration();
// start the IPC server // start the IPC server
Server server = RPC.getServer(new MyTestRPCServer(), "0.0.0.0", 0, conf); Server server = RPC.getServer(new MyTestRPCServer(), "0.0.0.0", 0, conf);
@ -153,6 +153,5 @@ public void testAuditLoggerWithIP() throws Exception {
proxy.ping(); proxy.ping();
server.stop(); server.stop();
*/
} }
} }