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?
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to