[ 
https://issues.apache.org/jira/browse/HADOOP-18487?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17774901#comment-17774901
 ] 

ASF GitHub Bot commented on HADOOP-18487:
-----------------------------------------

steveloughran opened a new pull request, #6184:
URL: https://github.com/apache/hadoop/pull/6184

   
   this is #4996 on branch-3.3
   
   ------
   Protobuf 2.5 JAR is no longer needed at runtime.
   
   The option common.protobuf.scope defines whether the protobuf 2.5.0 
dependency is marked as provided or not.
   
   * New package org.apache.hadoop.ipc.internal for internal only protobuf 
classes ...with a ShadedProtobufHelper in there which has shaded protobuf refs 
only, so guaranteed not to need protobuf-2.5 on the CP
   * All uses of org.apache.hadoop.ipc.ProtobufHelper have been replaced by 
uses of org.apache.hadoop.ipc.internal.ShadedProtobufHelper
   * The scope of protobuf-2.5 is set by the option common.protobuf2.scope In 
this patch is it is still "compile"
   * There is explicit reference to it in modules where it may be needed.
   *  The maven scope of the dependency can be set with the 
common.protobuf2.scope option. It can be set to "provided" in a build: 
-Dcommon.protobuf2.scope=provided
   * Add new ipc(callable) method to catch and convert shaded protobuf 
exceptions raised during invocation of the supplied lambda expression
   * This is adopted in the code where the migration is not traumatically 
over-complex. RouterAdminProtocolTranslatorPB is left alone for this reason.
   
   Contributed by Steve Loughran
   
   
   
   <!--
     Thanks for sending a pull request!
       1. If this is your first time, please read our contributor guidelines: 
https://cwiki.apache.org/confluence/display/HADOOP/How+To+Contribute
       2. Make sure your PR title starts with JIRA issue id, e.g., 
'HADOOP-17799. Your PR title ...'.
   -->
   
   ### Description of PR
   
   
   ### How was this patch tested?
   
   
   ### For code changes:
   
   - [ ] Does the title or this PR starts with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: have the integration tests been executed and the 
endpoint declared according to the connector-specific documentation?
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files?
   
   




> protobuf-2.5.0 dependencies => provided
> ---------------------------------------
>
>                 Key: HADOOP-18487
>                 URL: https://issues.apache.org/jira/browse/HADOOP-18487
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: build, ipc
>    Affects Versions: 3.3.4
>            Reporter: Steve Loughran
>            Priority: Major
>              Labels: pull-request-available
>
> uses of protobuf 2.5 and RpcEnginej have been deprecated since 3.3.0 in 
> HADOOP-17046
> while still keeping those files around (for a long time...), how about we 
> make the protobuf 2.5.0 export off hadoop common and hadoop-hdfs *provided*, 
> rather than *compile*
> that way, if apps want it for their own apis, they have to explicitly ask for 
> it, but at least our own scans don't break.
> i have no idea what will happen to the rest of the stack at this point, it 
> will be "interesting" to see



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-issues-h...@hadoop.apache.org

Reply via email to