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

Xavier Fernandis edited comment on HBASE-30569 at 11/25/26, 7:11 AM:
---------------------------------------------------------------------

*Testing*

1. OpenTelemetry 1.68.0 / javaagent 2.34.0
{*}Build{*}: built master with this PR on JDK 17 (mvn clean install -DskipTests 
-Prelease, then
assembly:single for the tarball). Both Shaded Packaging Invariants modules 
pass, so the new
opentelemetry-common jar is not bundled into the shaded jars. The bin tarball 
has
lib/client-facing-thirdparty/opentelemetry-\{api,context,common}-1.68.0.jar and
lib/trace/opentelemetry-javaagent-2.34.0.jar; this tarball was used for all 
runs below.

*Tracing:* repeated the HBASE-29293 manual check on JDK 17 and 21. Span names 
are identical
between 1.49.0/2.30.0 and 1.68.0/2.34.0, with no errors. The small difference 
in span totals
(395 vs 391 on JDK 17) is all getProcedureResult, the shell's 
procedure-completion polling,
which varies with timing.

*Attachments:*
[^telemetry-hbase-4.0.0-alpha-1-SNAPSHOT-jdk17-otel-1.49.0-agent-2.30.0.txt]: 
traced shell session with the current versions.
[^telemetry-hbase-4.0.0-alpha-1-SNAPSHOT-jdk17-otel-1.68.0-agent-2.34.0.txt]: 
same session with this PR.
[^telemetry-check-master.txt]: per run on JDK 17 and 21, the OTel jars and 
agent version used, span counts and the comparison result.

*2. opentelemetry-common in addHBaseDependencyJars*
Since 1.52.0 opentelemetry-context needs opentelemetry-common, which 
addHBaseDependencyJars
did not ship. RowCounter with only the shipped jars
(HADOOP_CLASSPATH=$(hbase --internal-classpath mapredcp)):

without the ComponentLoader line: NoClassDefFoundError: 
io/opentelemetry/common/ComponentLoader
with this PR: ROWS=1000, job succeeds
Attachments:

[^rowcounter-without-opentelemetry-common.txt]: RowCounter output with the 
ComponentLoader line removed (fails).
[^rowcounter-with-opentelemetry-common.txt]: same job with this PR (succeeds).


was (Author: JIRAUSER311168):
+*Testing*
+
1. OpenTelemetry 1.68.0 / javaagent 2.34.0
{*}Build{*}: built master with this PR on JDK 17 (mvn clean install -DskipTests 
-Prelease, then
assembly:single for the tarball). Both Shaded Packaging Invariants modules 
pass, so the new
opentelemetry-common jar is not bundled into the shaded jars. The bin tarball 
has
lib/client-facing-thirdparty/opentelemetry-\{api,context,common}-1.68.0.jar and
lib/trace/opentelemetry-javaagent-2.34.0.jar; this tarball was used for all 
runs below.

*Tracing:* repeated the HBASE-29293 manual check on JDK 17 and 21. Span names 
are identical
between 1.49.0/2.30.0 and 1.68.0/2.34.0, with no errors. The small difference 
in span totals
(395 vs 391 on JDK 17) is all getProcedureResult, the shell's 
procedure-completion polling,
which varies with timing.

*Attachments:*
[^telemetry-hbase-4.0.0-alpha-1-SNAPSHOT-jdk17-otel-1.49.0-agent-2.30.0.txt]: 
traced shell session with the current versions.
[^telemetry-hbase-4.0.0-alpha-1-SNAPSHOT-jdk17-otel-1.68.0-agent-2.34.0.txt]: 
same session with this PR.
[^telemetry-check-master.txt]: per run on JDK 17 and 21, the OTel jars and 
agent version used, span counts and the comparison result.

*2. opentelemetry-common in addHBaseDependencyJars*
Since 1.52.0 opentelemetry-context needs opentelemetry-common, which 
addHBaseDependencyJars
did not ship. RowCounter with only the shipped jars
(HADOOP_CLASSPATH=$(hbase --internal-classpath mapredcp)):

without the ComponentLoader line: NoClassDefFoundError: 
io/opentelemetry/common/ComponentLoader
with this PR: ROWS=1000, job succeeds
Attachments:

[^rowcounter-without-opentelemetry-common.txt]: RowCounter output with the 
ComponentLoader line removed (fails).
[^rowcounter-with-opentelemetry-common.txt]: same job with this PR (succeeds).

> Bump OpenTelemetry to 1.68.0 and opentelemetry-javaagent to 2.34.0
> ------------------------------------------------------------------
>
>                 Key: HBASE-30569
>                 URL: https://issues.apache.org/jira/browse/HBASE-30569
>             Project: HBase
>          Issue Type: Task
>          Components: dependencies, tracing
>            Reporter: Xavier Fernandis
>            Assignee: Xavier Fernandis
>            Priority: Major
>              Labels: pull-request-available
>         Attachments: rowcounter-with-opentelemetry-common.txt, 
> rowcounter-without-opentelemetry-common.txt, telemetry-check-master.txt, 
> telemetry-hbase-4.0.0-alpha-1-SNAPSHOT-jdk17-otel-1.49.0-agent-2.30.0.txt, 
> telemetry-hbase-4.0.0-alpha-1-SNAPSHOT-jdk17-otel-1.68.0-agent-2.34.0.txt
>
>
> currently master, branch-3, branch-2 and branch-2.6 currently use 
> opentelemetry 1.49.0 (opentelemetry-api,-context) and opentelemetry-javaagent 
> 2.30.0. 
> +*which  contains the following CVE's*+
>  * CVE-2026-45292 / GHSA-rcgg-9c38-7xpx (CVSS 5.3, CWE-770): the baggage 
> propagators put no limit on the size or number of entries in the baggage 
> header. Affects <= 1.61.0, fixed in 1.62.0. 
> [https://github.com/advisories/GHSA-rcgg-9c38-7xpx]
>  * CVE-2026-118259 / GHSA-ccrj-gw8r-854m (CVSS 5.3, CWE-1333): tracestate is 
> split with a regex that backtracks quadratically on long runs of spaces/tabs. 
> Affects < 1.67.0, fixed in 1.67.0. 
> [https://github.com/advisories/GHSA-ccrj-gw8r-854m]
> +*Proposed change:*+
>  * opentelemetry.version 1.49.0 -> 1.68.0
>  * opentelemetry-javaagent.version 2.30.0 -> 2.34.0
>  * Add opentelemetry-common to TableMapReduceUtil#addHBaseDependencyJars (see 
> below).
> opentelemetry-common: since 1.52.0, opentelemetry-context depends on a new 
> artifact,
> opentelemetry-common, and Context.current() loads 
> io.opentelemetry.common.ComponentLoader from it. Maven pulls it in 
> transitively, so the build, the tests and the bin/client assemblies 
> (io.opentelemetry:* wildcards) all have it. The jars shipped to MapReduce 
> tasks by TableMapReduceUtil#addHBaseDependencyJars are a hand-maintained 
> list, though, and only contain opentelemetry-api, -context and -semconv. 
> MapReduce tasks that rely on the shipped jars would fail on the first traced 
> client call. This is the same problem as HBASE-27353 for 
> opentelemetry-context.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to