HADOOP-8713. TestRPCCompatibility fails intermittently with JDK7 Trevor Robinson via tgraves)
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1402660 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
286c171987
commit
a577f757f7
@ -383,6 +383,9 @@ Release 2.0.3-alpha - Unreleased
|
|||||||
HADOOP-8951. RunJar to fail with user-comprehensible error
|
HADOOP-8951. RunJar to fail with user-comprehensible error
|
||||||
message if jar missing. (stevel via suresh)
|
message if jar missing. (stevel via suresh)
|
||||||
|
|
||||||
|
HADOOP-8713. TestRPCCompatibility fails intermittently with JDK7
|
||||||
|
(Trevor Robinson via tgraves)
|
||||||
|
|
||||||
Release 2.0.2-alpha - 2012-09-07
|
Release 2.0.2-alpha - 2012-09-07
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
import org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto;
|
import org.apache.hadoop.ipc.protobuf.ProtocolInfoProtos.ProtocolSignatureProto;
|
||||||
import org.apache.hadoop.net.NetUtils;
|
import org.apache.hadoop.net.NetUtils;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
/** Unit test for supporting method-name based compatible RPCs. */
|
/** Unit test for supporting method-name based compatible RPCs. */
|
||||||
@ -115,6 +116,11 @@ public long getProtocolVersion(String protocol,
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Before
|
||||||
|
public void setUp() {
|
||||||
|
ProtocolSignature.resetCache();
|
||||||
|
}
|
||||||
|
|
||||||
@After
|
@After
|
||||||
public void tearDown() throws IOException {
|
public void tearDown() throws IOException {
|
||||||
if (proxy != null) {
|
if (proxy != null) {
|
||||||
@ -219,7 +225,6 @@ public void testVersion2ClientVersion1Server() throws Exception {
|
|||||||
|
|
||||||
@Test // equal version client and server
|
@Test // equal version client and server
|
||||||
public void testVersion2ClientVersion2Server() throws Exception {
|
public void testVersion2ClientVersion2Server() throws Exception {
|
||||||
ProtocolSignature.resetCache();
|
|
||||||
// create a server with two handlers
|
// create a server with two handlers
|
||||||
TestImpl2 impl = new TestImpl2();
|
TestImpl2 impl = new TestImpl2();
|
||||||
server = new RPC.Builder(conf).setProtocol(TestProtocol2.class)
|
server = new RPC.Builder(conf).setProtocol(TestProtocol2.class)
|
||||||
|
Loading…
Reference in New Issue
Block a user