spuru9 opened a new pull request, #66:
URL: https://github.com/apache/flink-connector-hbase/pull/66

   ## Purpose of the change
   
   [FLINK-41781](https://issues.apache.org/jira/browse/FLINK-41781): 
`flink-sql-connector-hbase-2.6` bundles `hbase-shaded-netty` 4.1.13 (Netty 
4.1.131.Final), but ships neither the NOTICE entries nor the licence files of 
the third-party code inside Netty. FLINK-41739 fixed the same gap in the AWS 
connector (apache/flink-connector-aws#263), and FLINK-41538 fixed it in 
apache/flink.
   
   ## Brief change log
   
   - `NOTICE`: add the Netty section, worded as in 
apache/flink-connector-aws#263. Also add an entry for `dnsinfo.h` (Apple Public 
Source License 2.0, allowed by LEGAL-613), which is in the bundled macOS DNS 
natives.
   - `META-INF/licenses`: add the 12 licence files that the NOTICE references, 
copied from apache/flink-connector-aws#263 and apache/flink-shaded. 
`LICENSE.protobuf.txt` covers the protobuf code inside Netty. The existing 
`LICENSE.protobuf` covers the bundled protobuf-java 2.5.0 and stays.
   - `pom.xml`: drop `META-INF/native/libnetty_*` from `hbase-shaded-netty`. 
These 3 natives don't carry the relocation prefix, so the bundled Netty can't 
load them. FLINK-41540 dropped natives like these from `flink-s3-fs-presto` in 
the same way.
   
   ## Verifying this change
   
   Ran `mvn clean package -DskipTests -pl flink-sql-connector-hbase-2.6` on JDK 
17, then checked the shaded jar:
   
   - The jar contains the NOTICE section and all 12 licence files, so every 
`licenses/` file the NOTICE names is present.
   - The 4 natives left in the jar all carry the 
`liborg_apache_hbase_thirdparty_netty_` prefix.
   - The jar passes the Netty rules in `embedded-code.rules` from 
apache/flink#30049 (FLINK-41545). I checked this with a script that reads that 
rules file; I didn't run the checker from that PR.
   
   ## Impact and documentation
   
   The only changes to the `flink-sql-connector-hbase-2.6` jar are its legal 
files and the removal of 3 natives that could not be loaded. Documentation: not 
applicable.
   
   ---
   
   ##### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: Claude Code (claude-opus-5-5)
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
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]

Reply via email to