Skip to content

Commit

Permalink
ODP-1103: HADOOP-15327. Upgrade MR ShuffleHandler to use Netty4 apach…
Browse files Browse the repository at this point in the history
…e#3259. Contributed by Szilard Nemeth.

netty - part2
  • Loading branch information
prabhjyotsingh committed Feb 15, 2024
1 parent d94759b commit ee0f478
Show file tree
Hide file tree
Showing 20 changed files with 2,149 additions and 641 deletions.
2 changes: 1 addition & 1 deletion hadoop-client-modules/hadoop-client-minicluster/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
<!-- exclude things that came in via transitive in shaded runtime and api -->
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty</artifactId>
<artifactId>netty-all</artifactId>
</exclusion>
<exclusion>
<groupId>javax.servlet</groupId>
Expand Down
1 change: 1 addition & 0 deletions hadoop-client-modules/hadoop-client-runtime/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@
<!-- Leave javax APIs that are stable -->
<!-- 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 :( -->
<exclude>com.google.code.findbugs:jsr305</exclude>
<exclude>io.netty:*</exclude>
<exclude>io.dropwizard.metrics:metrics-core</exclude>
<!-- Leave bouncycastle unshaded because it's signed with a special Oracle certificate so it can be a custom JCE security provider -->
<exclude>org.bouncycastle:*</exclude>
Expand Down
8 changes: 4 additions & 4 deletions hadoop-client-modules/hadoop-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
</exclusion>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty</artifactId>
<artifactId>netty-all</artifactId>
</exclusion>
</exclusions>
</dependency>
Expand Down Expand Up @@ -239,7 +239,7 @@
</exclusion>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty</artifactId>
<artifactId>netty-all</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.inject.extensions</groupId>
Expand Down Expand Up @@ -296,7 +296,7 @@
</exclusion>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty</artifactId>
<artifactId>netty-all</artifactId>
</exclusion>
</exclusions>
</dependency>
Expand Down Expand Up @@ -324,7 +324,7 @@
</exclusion>
<exclusion>
<groupId>io.netty</groupId>
<artifactId>netty</artifactId>
<artifactId>netty-all</artifactId>
</exclusion>
</exclusions>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.apache.hadoop.classification;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* Annotates a program element that exists, or is more widely visible than
* otherwise necessary, specifically for use in test code.
* More precisely <i>test code within the hadoop-* modules</i>.
* Moreover, this gives the implicit scope and stability of:
* <pre>
* {@link InterfaceAudience.Private}
* {@link InterfaceStability.Unstable}
* </pre>
* If external modules need to access/override these methods, then
* they MUST be re-scoped as public/limited private.
*/
@Retention(RetentionPolicy.CLASS)
@Target({ ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.CONSTRUCTOR })
@Documented
public @interface VisibleForTesting {
}
2 changes: 1 addition & 1 deletion hadoop-common-project/hadoop-common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@
<exclusions>
<exclusion>
<groupId>org.jboss.netty</groupId>
<artifactId>netty</artifactId>
<artifactId>netty-all</artifactId>
</exclusion>
<exclusion>
<!-- otherwise seems to drag in junit 3.8.1 via jline -->
Expand Down
Loading

0 comments on commit ee0f478

Please sign in to comment.