Skip to content

Backport "HBASE-26472 Adhere to semantic conventions regarding table data operations" to branch-2 - #3907

Merged
ndimiduk merged 6 commits into
apache:branch-2from
ndimiduk:26472-semantic-conventions-for-table-data-ops-branch-2
Dec 14, 2021
Merged

Backport "HBASE-26472 Adhere to semantic conventions regarding table data operations" to branch-2#3907
ndimiduk merged 6 commits into
apache:branch-2from
ndimiduk:26472-semantic-conventions-for-table-data-ops-branch-2

Conversation

@ndimiduk

Copy link
Copy Markdown
Member

Follows the guidance outlined in https://github.com/open-telemetry/opentelemetry-specification/blob/3e380e2/specification/trace/semantic_conventions/database.dm

  • all table data operations are assumed to be of type CLIENT
  • populate db.name and db.operation attributes
  • name table data operation spans as db.operationdb.name:db.hbase.table
    note: this implementation deviates from the recommended db.name.db.sql.table and instead
    uses HBase's native String representation of namespace:tablename.

Backport of #3906

@ndimidukndimiduk added the backport This PR is a back port of some issue or issues already committed to master label Dec 1, 2021
@ndimiduk

Copy link
Copy Markdown
MemberAuthor

The big difference between this and the master patch is this one adds tracing to HTable.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

@Apache-HBase

This comment has been minimized.

…tions
Follows the guidance outlined in https://github.com/open-telemetry/opentelemetry-specification/blob/3e380e2/specification/trace/semantic_conventions/database.dm
* all table data operations are assumed to be of type CLIENT
* populate `db.name` and `db.operation` attributes
* name table data operation spans as `db.operation` `db.name`:`db.hbase.table`
note: this implementation deviates from the recommended `db.name`.`db.sql.table` and instead
uses HBase's native String representation of namespace:tablename.
* correct places where CheckAndPut span names are emitted as "BATCH"
* extend TestAsyncTableTracing to include coverage for both
`AsyncTable.{CheckAndMutateBuilder,CheckAndMutateWithFilterBuilder}`
* add another method to TableOperationSpanBuilder that accepts `Collection<? extends Row>`
@ndimiduk
ndimidukforce-pushed the 26472-semantic-conventions-for-table-data-ops-branch-2 branch from f5d3aad to da5ef57CompareDecember 14, 2021 22:53
@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 30sDocker mode activated.
-0 ⚠️yetus0m 8sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ branch-2 Compile Tests _
+0 🆗mvndep0m 10sMaven dependency ordering for branch
+1 💚mvninstall3m 34sbranch-2 passed
+1 💚compile0m 52sbranch-2 passed
+1 💚shadedjars6m 32sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 48sbranch-2 passed
_ Patch Compile Tests _
+0 🆗mvndep0m 19sMaven dependency ordering for patch
+1 💚mvninstall3m 35sthe patch passed
+1 💚compile0m 54sthe patch passed
+1 💚javac0m 54sthe patch passed
+1 💚shadedjars6m 30spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 48sthe patch passed
_ Other Tests _
+1 💚unit1m 34shbase-common in the patch passed.
+1 💚unit2m 21shbase-client in the patch passed.
30m 17s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3907/2/artifact/yetus-jdk8-hadoop2-check/output/Dockerfile
GITHUB PR#3907
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 2a03d1a9d867 4.15.0-58-generic #64-Ubuntu SMP Tue Aug 6 11:12:41 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionbranch-2 / 5defd8c
Default JavaAdoptOpenJDK-1.8.0_282-b08
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3907/2/testReport/
Max. process+thread count433 (vs. ulimit of 12500)
modulesC: hbase-common hbase-client U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3907/2/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 59sDocker mode activated.
-0 ⚠️yetus0m 8sUnprocessed flag(s): --brief-report-file --spotbugs-strict-precheck --whitespace-eol-ignore-list --whitespace-tabs-ignore-list --quick-hadoopcheck
_ Prechecks _
_ branch-2 Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for branch
+1 💚mvninstall5m 0sbranch-2 passed
+1 💚compile0m 59sbranch-2 passed
+1 💚shadedjars8m 2sbranch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 55sbranch-2 passed
_ Patch Compile Tests _
+0 🆗mvndep0m 19sMaven dependency ordering for patch
+1 💚mvninstall4m 52sthe patch passed
+1 💚compile1m 0sthe patch passed
+1 💚javac1m 0sthe patch passed
+1 💚shadedjars8m 8spatch has no errors when building our shaded downstream artifacts.
+1 💚javadoc0m 51sthe patch passed
_ Other Tests _
+1 💚unit1m 57shbase-common in the patch passed.
+1 💚unit2m 48shbase-client in the patch passed.
37m 51s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3907/2/artifact/yetus-jdk11-hadoop3-check/output/Dockerfile
GITHUB PR#3907
Optional Testsjavac javadoc unit shadedjars compile
unameLinux 4602e8d5e47f 4.15.0-162-generic #170-Ubuntu SMP Mon Oct 18 11:38:05 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionbranch-2 / 5defd8c
Default JavaAdoptOpenJDK-11.0.10+9
Test Resultshttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3907/2/testReport/
Max. process+thread count283 (vs. ulimit of 12500)
modulesC: hbase-common hbase-client U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3907/2/console
versionsgit=2.17.1 maven=3.6.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@Apache-HBase

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec4m 11sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
_ branch-2 Compile Tests _
+0 🆗mvndep0m 18sMaven dependency ordering for branch
+1 💚mvninstall4m 53sbranch-2 passed
+1 💚compile2m 3sbranch-2 passed
+1 💚checkstyle1m 6sbranch-2 passed
+1 💚spotbugs2m 9sbranch-2 passed
_ Patch Compile Tests _
+0 🆗mvndep0m 15sMaven dependency ordering for patch
+1 💚mvninstall4m 31sthe patch passed
+1 💚compile1m 59sthe patch passed
-0 ⚠️javac1m 8shbase-client generated 1 new + 158 unchanged - 0 fixed = 159 total (was 158)
+1 💚checkstyle0m 26sThe patch passed checkstyle in hbase-common
+1 💚checkstyle0m 36shbase-client: The patch generated 0 new + 24 unchanged - 1 fixed = 24 total (was 25)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 1sThe patch has no ill-formed XML file.
+1 💚hadoopcheck17m 10sPatch does not cause any errors with Hadoop 3.1.2 3.2.1.
+1 💚spotbugs2m 39sthe patch passed
_ Other Tests _
+1 💚asflicense0m 26sThe patch does not generate ASF License warnings.
53m 38s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3907/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#3907
Optional Testsdupname asflicense javac hadoopcheck xml compile spotbugs hbaseanti checkstyle
unameLinux f1bf49876c46 4.15.0-142-generic #146-Ubuntu SMP Tue Apr 13 01:11:19 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev-support/hbase-personality.sh
git revisionbranch-2 / 5defd8c
Default JavaAdoptOpenJDK-1.8.0_282-b08
javachttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3907/2/artifact/yetus-general-check/output/diff-compile-javac-hbase-client.txt
Max. process+thread count86 (vs. ulimit of 12500)
modulesC: hbase-common hbase-client U: .
Console outputhttps://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-3907/2/console
versionsgit=2.17.1 maven=3.6.3 spotbugs=4.2.2
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@ndimiduk
ndimiduk merged commit c7a8e42 into apache:branch-2Dec 14, 2021
@ndimiduk
ndimiduk deleted the 26472-semantic-conventions-for-table-data-ops-branch-2 branch December 14, 2021 23:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backportThis PR is a back port of some issue or issues already committed to master

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@ndimiduk@Apache-HBase