Skip to content

Commit ee0f478

Browse files
ODP-1103: HADOOP-15327. Upgrade MR ShuffleHandler to use Netty4 apache#3259. Contributed by Szilard Nemeth.
netty - part2
1 parent d94759b commit ee0f478

File tree

20 files changed

+2149
-641
lines changed

20 files changed

+2149
-641
lines changed

hadoop-client-modules/hadoop-client-minicluster/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
<!-- exclude things that came in via transitive in shaded runtime and api -->
113113
<exclusion>
114114
<groupId>io.netty</groupId>
115-
<artifactId>netty</artifactId>
115+
<artifactId>netty-all</artifactId>
116116
</exclusion>
117117
<exclusion>
118118
<groupId>javax.servlet</groupId>

hadoop-client-modules/hadoop-client-runtime/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@
157157
<!-- Leave javax APIs that are stable -->
158158
<!-- the jdk ships part of the javax.annotation namespace, so if we want to relocate this we'll have to care it out by class :( -->
159159
<exclude>com.google.code.findbugs:jsr305</exclude>
160+
<exclude>io.netty:*</exclude>
160161
<exclude>io.dropwizard.metrics:metrics-core</exclude>
161162
<!-- Leave bouncycastle unshaded because it's signed with a special Oracle certificate so it can be a custom JCE security provider -->
162163
<exclude>org.bouncycastle:*</exclude>

hadoop-client-modules/hadoop-client/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
</exclusion>
181181
<exclusion>
182182
<groupId>io.netty</groupId>
183-
<artifactId>netty</artifactId>
183+
<artifactId>netty-all</artifactId>
184184
</exclusion>
185185
</exclusions>
186186
</dependency>
@@ -239,7 +239,7 @@
239239
</exclusion>
240240
<exclusion>
241241
<groupId>io.netty</groupId>
242-
<artifactId>netty</artifactId>
242+
<artifactId>netty-all</artifactId>
243243
</exclusion>
244244
<exclusion>
245245
<groupId>com.google.inject.extensions</groupId>
@@ -296,7 +296,7 @@
296296
</exclusion>
297297
<exclusion>
298298
<groupId>io.netty</groupId>
299-
<artifactId>netty</artifactId>
299+
<artifactId>netty-all</artifactId>
300300
</exclusion>
301301
</exclusions>
302302
</dependency>
@@ -324,7 +324,7 @@
324324
</exclusion>
325325
<exclusion>
326326
<groupId>io.netty</groupId>
327-
<artifactId>netty</artifactId>
327+
<artifactId>netty-all</artifactId>
328328
</exclusion>
329329
</exclusions>
330330
</dependency>
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
package org.apache.hadoop.classification;
20+
21+
import java.lang.annotation.Documented;
22+
import java.lang.annotation.ElementType;
23+
import java.lang.annotation.Retention;
24+
import java.lang.annotation.RetentionPolicy;
25+
import java.lang.annotation.Target;
26+
27+
/**
28+
* Annotates a program element that exists, or is more widely visible than
29+
* otherwise necessary, specifically for use in test code.
30+
* More precisely <i>test code within the hadoop-* modules</i>.
31+
* Moreover, this gives the implicit scope and stability of:
32+
* <pre>
33+
* {@link InterfaceAudience.Private}
34+
* {@link InterfaceStability.Unstable}
35+
* </pre>
36+
* If external modules need to access/override these methods, then
37+
* they MUST be re-scoped as public/limited private.
38+
*/
39+
@Retention(RetentionPolicy.CLASS)
40+
@Target({ ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR })
41+
@Documented
42+
public @interface VisibleForTesting {
43+
}

hadoop-common-project/hadoop-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
<exclusions>
308308
<exclusion>
309309
<groupId>org.jboss.netty</groupId>
310-
<artifactId>netty</artifactId>
310+
<artifactId>netty-all</artifactId>
311311
</exclusion>
312312
<exclusion>
313313
<!-- otherwise seems to drag in junit 3.8.1 via jline -->

0 commit comments

Comments
 (0)