Purushottam Sinha created FLINK-41781:
-----------------------------------------
Summary: flink-sql-connector-hbase-* jars don't ship the licences
of code embedded in Netty
Key: FLINK-41781
URL: https://issues.apache.org/jira/browse/FLINK-41781
Project: Flink
Issue Type: Bug
Components: Connectors / HBase
Affects Versions: hbase-4.0.0, hbase-3.0.0
Reporter: Purushottam Sinha
*Problem*
The flink-sql-connector-hbase-* jars bundle relocated Netty but ship neither
the licences and NOTICE entries for the third-party code embedded in Netty nor
the Netty copyright line. This is the gap FLINK-41739 fixed for the AWS
connector and FLINK-41538 for apache/flink.
*Evidence*
* main: flink-sql-connector-hbase-2.6 bundles hbase-shaded-netty 4.1.13 (Netty
4.1.131.Final) with 7 native libraries. Its NOTICE has no Netty section and
META-INF/licenses has no Netty licence files.
* The released flink-sql-connector-hbase-1.4 3.0.0-1.17 and
flink-sql-connector-hbase-2.2 4.0.0-1.19 jars have the same gap.
* 3 of the 7 natives (META-INF/native/libnetty_*) lack the relocation prefix,
so the bundled Netty can't load them.
*Proposed fix*
* Add the Netty NOTICE section and licence files in the format of
flink-connector-aws#263, plus dnsinfo.h (APSL-2.0, LEGAL-613) for the macOS DNS
natives.
* Exclude the 3 unloadable natives in the shade filter, as FLINK-41540 did for
flink-s3-fs-presto.
*Acceptance*
* Every licenses/ file the NOTICE names is in the jar, and the jar passes the
Netty rules of the embedded-code check from FLINK-41545.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)