Skip to content

PHOENIX-5215 opentelemetry changes replacing htrace - #1282

Open
kiran-maturi wants to merge 14 commits into
apache:masterfrom
kiran-maturi:PHOENIX-5215
Open

PHOENIX-5215 opentelemetry changes replacing htrace#1282
kiran-maturi wants to merge 14 commits into
apache:masterfrom
kiran-maturi:PHOENIX-5215

Conversation

@kiran-maturi

Copy link
Copy Markdown
Contributor

No description provided.

@stoty

stoty commented Aug 5, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec5m 30sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+0 🆗mvndep4m 59sMaven dependency ordering for branch
+1 💚mvninstall19m 38smaster passed
+0hbaserecompile31m 43sHBase recompiled.
+1 💚compile1m 48smaster passed
+1 💚checkstyle1m 47smaster passed
+1 💚javadoc2m 25smaster passed
+0 🆗spotbugs5m 2sroot in master has 1032 extant spotbugs warnings.
+0 🆗spotbugs3m 17sphoenix-core in master has 973 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 21sMaven dependency ordering for patch
-1 ❌mvninstall1m 18sroot in the patch failed.
+0hbaserecompile8m 39sHBase recompiled.
+1 💚compile1m 49sthe patch passed
+1 💚javac1m 49sthe patch passed
-1 ❌checkstyle1m 49sroot: The patch generated 106 new + 2243 unchanged - 140 fixed = 2349 total (was 2383)
-1 ❌whitespace0m 0sThe patch 1 line(s) with tabs.
+1 💚xml0m 5sThe patch has no ill-formed XML file.
+1 💚javadoc2m 18sthe patch passed
-1 ❌spotbugs3m 36sphoenix-core generated 5 new + 968 unchanged - 5 fixed = 973 total (was 973)
-1 ❌spotbugs5m 14sroot generated 5 new + 1027 unchanged - 5 fixed = 1032 total (was 1032)
_ Other Tests _
-1 ❌unit2m 0sroot in the patch failed.
-1 ❌asflicense0m 49sThe patch generated 614 ASF License warnings.
80m 27s
ReasonTests
FindBugsmodule:phoenix-core
Dead store to connSpan in org.apache.phoenix.compile.TraceQueryPlan$TraceQueryResultIterator.next() At TraceQueryPlan.java:org.apache.phoenix.compile.TraceQueryPlan$TraceQueryResultIterator.next() At TraceQueryPlan.java:[line 262]
Exception is caught when Exception is not thrown in org.apache.phoenix.execute.MutationState.sendMutations(Iterator, Span, ImmutableBytesWritable, boolean) At MutationState.java:is not thrown in org.apache.phoenix.execute.MutationState.sendMutations(Iterator, Span, ImmutableBytesWritable, boolean) At MutationState.java:[line 1403]
Invocation of toString on org.apache.hadoop.hbase.util.Bytes.toBytes(int) in org.apache.phoenix.hbase.index.Indexer.preBatchMutateWithExceptions(ObserverContext, MiniBatchOperationInProgress) At Indexer.java:in org.apache.phoenix.hbase.index.Indexer.preBatchMutateWithExceptions(ObserverContext, MiniBatchOperationInProgress) At Indexer.java:[line 510]
Dead store to stmt in org.apache.phoenix.trace.TraceWriter$FlushMetrics.addToBatch(Span) At TraceWriter.java:org.apache.phoenix.trace.TraceWriter$FlushMetrics.addToBatch(Span) At TraceWriter.java:[line 147]
Unread field:TraceWriter.java:[line 118]
FindBugsmodule:root
Dead store to connSpan in org.apache.phoenix.compile.TraceQueryPlan$TraceQueryResultIterator.next() At TraceQueryPlan.java:org.apache.phoenix.compile.TraceQueryPlan$TraceQueryResultIterator.next() At TraceQueryPlan.java:[line 262]
Exception is caught when Exception is not thrown in org.apache.phoenix.execute.MutationState.sendMutations(Iterator, Span, ImmutableBytesWritable, boolean) At MutationState.java:is not thrown in org.apache.phoenix.execute.MutationState.sendMutations(Iterator, Span, ImmutableBytesWritable, boolean) At MutationState.java:[line 1403]
Invocation of toString on org.apache.hadoop.hbase.util.Bytes.toBytes(int) in org.apache.phoenix.hbase.index.Indexer.preBatchMutateWithExceptions(ObserverContext, MiniBatchOperationInProgress) At Indexer.java:in org.apache.phoenix.hbase.index.Indexer.preBatchMutateWithExceptions(ObserverContext, MiniBatchOperationInProgress) At Indexer.java:[line 510]
Dead store to stmt in org.apache.phoenix.trace.TraceWriter$FlushMetrics.addToBatch(Span) At TraceWriter.java:org.apache.phoenix.trace.TraceWriter$FlushMetrics.addToBatch(Span) At TraceWriter.java:[line 147]
Unread field:TraceWriter.java:[line 118]
Failed junit testsphoenix.schema.MetaDataClientTest
phoenix.compile.CursorCompilerTest
phoenix.compile.HavingCompilerTest
phoenix.compile.CreateTableCompilerTest
phoenix.compile.TenantSpecificViewIndexCompileTest
phoenix.index.PrepareIndexMutationsForRebuildTest
phoenix.util.csv.CsvUpsertExecutorTest
phoenix.index.IndexMaintainerTest
phoenix.execute.LiteralResultIteratorPlanTest
phoenix.compile.PostIndexDDLCompilerTest
phoenix.iterate.RowKeyOrderedAggregateResultIteratorTest
phoenix.index.IndexScrutinyMapperTest
phoenix.util.PhoenixRuntimeTest
phoenix.execute.MutationStateTest
phoenix.jdbc.PhoenixDriverTest
phoenix.util.ScanUtilTest
phoenix.iterate.AggregateResultScannerTest
phoenix.query.KeyRangeClipTest
phoenix.compile.QueryOptimizerTest
phoenix.compile.QueryCompilerTest
phoenix.util.json.JsonUpsertExecutorTest
phoenix.compile.LimitCompilerTest
phoenix.compile.StatementHintsCompilationTest
phoenix.index.IndexUpgradeToolTest
phoenix.compile.ViewCompilerTest
phoenix.compile.WhereCompilerTest
phoenix.compile.QueryMetaDataTest
phoenix.mapreduce.util.IndexColumnNamesTest
phoenix.jdbc.PhoenixResultSetMetadataTest
phoenix.hbase.index.covered.NonTxIndexBuilderTest
phoenix.mapreduce.util.PhoenixConfigurationUtilTest
phoenix.query.ConnectionlessTest
phoenix.index.VerifySingleIndexRowTest
phoenix.mapreduce.index.IndexScrutinyTableOutputTest
phoenix.query.QueryPlanTest
phoenix.expression.RoundFloorCeilExpressionsTest
phoenix.expression.NullValueTest
phoenix.jdbc.PhoenixPreparedStatementTest
phoenix.compile.WhereOptimizerTest
phoenix.filter.SkipScanBigFilterTest
phoenix.compile.SelectStatementRewriterTest
phoenix.util.PhoenixEncodeDecodeTest
phoenix.schema.MutationTest
phoenix.query.ParallelIteratorsSplitTest
phoenix.compile.JoinQueryCompilerTest
phoenix.schema.RowKeyValueAccessorTest
phoenix.query.OrderByTest
phoenix.schema.RowKeySchemaTest
phoenix.execute.UnnestArrayPlanTest
phoenix.query.ExplainPlanTextTest
phoenix.query.ScannerLeaseRenewalTest
phoenix.query.PropertyPolicyProviderTest
phoenix.util.csv.StringToArrayConverterTest
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1282
Optional Testsdupname asflicense javac javadoc unit xml compile spotbugs hbaserebuild hbaseanti checkstyle
unameLinux daca070caeae 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / 025a4af
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
mvninstallhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/artifact/yetus-general-check/output/patch-mvninstall-root.txt
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/artifact/yetus-general-check/output/diff-checkstyle-root.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/artifact/yetus-general-check/output/whitespace-tabs.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/testReport/
asflicensehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count493 (vs. ulimit of 30000)
modulesC: phoenix-core phoenix-assembly . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

stoty commented Aug 5, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 49sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+0 🆗mvndep4m 59sMaven dependency ordering for branch
+1 💚mvninstall20m 48smaster passed
+0hbaserecompile35m 5sHBase recompiled.
+1 💚compile2m 2smaster passed
+1 💚checkstyle2m 3smaster passed
+1 💚javadoc2m 46smaster passed
+0 🆗spotbugs5m 57sroot in master has 1032 extant spotbugs warnings.
+0 🆗spotbugs4m 0sphoenix-core in master has 973 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 24sMaven dependency ordering for patch
-1 ❌mvninstall1m 21sroot in the patch failed.
+0hbaserecompile8m 19sHBase recompiled.
+1 💚compile1m 38sthe patch passed
+1 💚javac1m 38sthe patch passed
-1 ❌checkstyle2m 2sroot: The patch generated 123 new + 2228 unchanged - 157 fixed = 2351 total (was 2385)
-1 ❌whitespace0m 0sThe patch 1 line(s) with tabs.
+1 💚xml0m 4sThe patch has no ill-formed XML file.
+1 💚javadoc2m 20sthe patch passed
-1 ❌spotbugs3m 17sphoenix-core generated 5 new + 968 unchanged - 5 fixed = 973 total (was 973)
-1 ❌spotbugs4m 45sroot generated 5 new + 1027 unchanged - 5 fixed = 1032 total (was 1032)
_ Other Tests _
-1 ❌unit120m 44sroot in the patch failed.
-1 ❌asflicense2m 21sThe patch generated 614 ASF License warnings.
203m 35s
ReasonTests
FindBugsmodule:phoenix-core
Dead store to connSpan in org.apache.phoenix.compile.TraceQueryPlan$TraceQueryResultIterator.next() At TraceQueryPlan.java:org.apache.phoenix.compile.TraceQueryPlan$TraceQueryResultIterator.next() At TraceQueryPlan.java:[line 262]
Exception is caught when Exception is not thrown in org.apache.phoenix.execute.MutationState.sendMutations(Iterator, Span, ImmutableBytesWritable, boolean) At MutationState.java:is not thrown in org.apache.phoenix.execute.MutationState.sendMutations(Iterator, Span, ImmutableBytesWritable, boolean) At MutationState.java:[line 1403]
Invocation of toString on org.apache.hadoop.hbase.util.Bytes.toBytes(int) in org.apache.phoenix.hbase.index.Indexer.preBatchMutateWithExceptions(ObserverContext, MiniBatchOperationInProgress) At Indexer.java:in org.apache.phoenix.hbase.index.Indexer.preBatchMutateWithExceptions(ObserverContext, MiniBatchOperationInProgress) At Indexer.java:[line 510]
Dead store to stmt in org.apache.phoenix.trace.TraceWriter$FlushMetrics.addToBatch(Span) At TraceWriter.java:org.apache.phoenix.trace.TraceWriter$FlushMetrics.addToBatch(Span) At TraceWriter.java:[line 147]
Unread field:TraceWriter.java:[line 118]
FindBugsmodule:root
Dead store to connSpan in org.apache.phoenix.compile.TraceQueryPlan$TraceQueryResultIterator.next() At TraceQueryPlan.java:org.apache.phoenix.compile.TraceQueryPlan$TraceQueryResultIterator.next() At TraceQueryPlan.java:[line 262]
Exception is caught when Exception is not thrown in org.apache.phoenix.execute.MutationState.sendMutations(Iterator, Span, ImmutableBytesWritable, boolean) At MutationState.java:is not thrown in org.apache.phoenix.execute.MutationState.sendMutations(Iterator, Span, ImmutableBytesWritable, boolean) At MutationState.java:[line 1403]
Invocation of toString on org.apache.hadoop.hbase.util.Bytes.toBytes(int) in org.apache.phoenix.hbase.index.Indexer.preBatchMutateWithExceptions(ObserverContext, MiniBatchOperationInProgress) At Indexer.java:in org.apache.phoenix.hbase.index.Indexer.preBatchMutateWithExceptions(ObserverContext, MiniBatchOperationInProgress) At Indexer.java:[line 510]
Dead store to stmt in org.apache.phoenix.trace.TraceWriter$FlushMetrics.addToBatch(Span) At TraceWriter.java:org.apache.phoenix.trace.TraceWriter$FlushMetrics.addToBatch(Span) At TraceWriter.java:[line 147]
Unread field:TraceWriter.java:[line 118]
Failed junit testsphoenix.monitoring.PhoenixMetricsIT
phoenix.trace.PhoenixTableMetricsWriterIT
phoenix.monitoring.PhoenixLoggingMetricsIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1282
Optional Testsdupname asflicense javac javadoc unit xml compile spotbugs hbaserebuild hbaseanti checkstyle
unameLinux b330bf87fc90 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revisionmaster / 025a4af
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
mvninstallhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/artifact/yetus-general-check/output/patch-mvninstall-root.txt
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/artifact/yetus-general-check/output/diff-checkstyle-root.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/artifact/yetus-general-check/output/whitespace-tabs.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/testReport/
asflicensehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count7820 (vs. ulimit of 30000)
modulesC: phoenix-core phoenix-assembly . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec5m 31sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+0 🆗mvndep5m 21sMaven dependency ordering for branch
+1 💚mvninstall16m 37smaster passed
+0hbaserecompile28m 21sHBase recompiled.
+1 💚compile1m 39smaster passed
+1 💚checkstyle2m 4smaster passed
+1 💚javadoc2m 20smaster passed
+0 🆗spotbugs4m 32sroot in master has 1032 extant spotbugs warnings.
+0 🆗spotbugs3m 1sphoenix-core in master has 973 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 22sMaven dependency ordering for patch
+1 💚mvninstall13m 29sthe patch passed
+0hbaserecompile20m 4sHBase recompiled.
+1 💚compile1m 38sthe patch passed
+1 💚javac1m 38sthe patch passed
-1 ❌checkstyle2m 2sroot: The patch generated 138 new + 2287 unchanged - 170 fixed = 2425 total (was 2457)
-1 ❌whitespace0m 0sThe patch 1 line(s) with tabs.
+1 💚xml0m 4sThe patch has no ill-formed XML file.
+1 💚javadoc2m 22sthe patch passed
-1 ❌spotbugs3m 20sphoenix-core generated 4 new + 968 unchanged - 5 fixed = 972 total (was 973)
-1 ❌spotbugs4m 50sroot generated 4 new + 1027 unchanged - 5 fixed = 1031 total (was 1032)
_ Other Tests _
-1 ❌unit115m 56sroot in the patch failed.
-1 ❌asflicense2m 27sThe patch generated 614 ASF License warnings.
204m 20s
ReasonTests
FindBugsmodule:phoenix-core
Dead store to connSpan in org.apache.phoenix.compile.TraceQueryPlan$TraceQueryResultIterator.next() At TraceQueryPlan.java:org.apache.phoenix.compile.TraceQueryPlan$TraceQueryResultIterator.next() At TraceQueryPlan.java:[line 262]
Invocation of toString on org.apache.hadoop.hbase.util.Bytes.toBytes(int) in org.apache.phoenix.hbase.index.Indexer.preBatchMutateWithExceptions(ObserverContext, MiniBatchOperationInProgress) At Indexer.java:in org.apache.phoenix.hbase.index.Indexer.preBatchMutateWithExceptions(ObserverContext, MiniBatchOperationInProgress) At Indexer.java:[line 510]
Dead store to stmt in org.apache.phoenix.trace.TraceWriter$FlushMetrics.addToBatch(Span) At TraceWriter.java:org.apache.phoenix.trace.TraceWriter$FlushMetrics.addToBatch(Span) At TraceWriter.java:[line 147]
Unread field:TraceWriter.java:[line 118]
FindBugsmodule:root
Dead store to connSpan in org.apache.phoenix.compile.TraceQueryPlan$TraceQueryResultIterator.next() At TraceQueryPlan.java:org.apache.phoenix.compile.TraceQueryPlan$TraceQueryResultIterator.next() At TraceQueryPlan.java:[line 262]
Invocation of toString on org.apache.hadoop.hbase.util.Bytes.toBytes(int) in org.apache.phoenix.hbase.index.Indexer.preBatchMutateWithExceptions(ObserverContext, MiniBatchOperationInProgress) At Indexer.java:in org.apache.phoenix.hbase.index.Indexer.preBatchMutateWithExceptions(ObserverContext, MiniBatchOperationInProgress) At Indexer.java:[line 510]
Dead store to stmt in org.apache.phoenix.trace.TraceWriter$FlushMetrics.addToBatch(Span) At TraceWriter.java:org.apache.phoenix.trace.TraceWriter$FlushMetrics.addToBatch(Span) At TraceWriter.java:[line 147]
Unread field:TraceWriter.java:[line 118]
Failed junit testsphoenix.trace.PhoenixTableMetricsWriterIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1282
Optional Testsdupname asflicense javac javadoc unit xml compile spotbugs hbaserebuild hbaseanti checkstyle
unameLinux de1af7ff6e0d 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/phoenix-personality.sh
git revisionmaster / c4d297d
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/artifact/yetus-general-check/output/diff-checkstyle-root.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/artifact/yetus-general-check/output/whitespace-tabs.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/testReport/
asflicensehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count16258 (vs. ulimit of 30000)
modulesC: phoenix-core phoenix-assembly . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@richardantalrichardantal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice Progress!
I left some comments to fix in the next commit.

Comment threadphoenix-core/pom.xml Outdated
<groupId>org.apache.htrace</groupId>
<artifactId>htrace-core</artifactId>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-api</artifactId>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Already defined in line 404

Comment threadphoenix-core/pom.xml Outdated
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-context</artifactId>
<version>${opentelemetry.version}</version>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

version should be in the dependencyManagement


Tracer.getInstance().deliver(span);
assertTrue("Span never committed to table", latch.await(30, TimeUnit.SECONDS));
//Tracer.getInstance().deliver(span);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These lines should be deleted


Span span = TraceUtil.getGlobalTracer().spanBuilder("Creating basic query for " + getPlanSteps(iterator)).startSpan();

if (span.isRecording()) return new TracingIterator(span, iterator);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it going to be true anytime?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@richardantal default implementation shows it as false. I will take a look at it in depth and see how we can enable TracingIterator

* @since 0.1
*/
public final class PhoenixDriver extends PhoenixEmbeddedDriver {
public final class PhoenixDriver extends PhoenixEmbeddedDriver {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: extra space

import org.apache.phoenix.schema.types.PDataType;
import org.apache.phoenix.schema.types.PLong;
import org.apache.phoenix.schema.types.PVarchar;
import org.apache.phoenix.trace.TraceUtil;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: not used

// create the phoenix connection
Properties props = new Properties();
props.setProperty(QueryServices.TRACING_FREQ_ATTRIB, Tracing.Frequency.NEVER.getKey());
//props.setProperty(QueryServices.TRACING_FREQ_ATTRIB, Tracing.Frequency.NEVER.getKey());

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete this line

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@richardantal I will remove this once I have made changes to handle tracing at connection

import org.apache.phoenix.iterate.ResultIterator;
import org.apache.phoenix.schema.tuple.Tuple;
import org.apache.htrace.TraceScope;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: extra line

import org.apache.htrace.HTraceConfiguration;
import io.opentelemetry.api.trace.Span;
import io.opentelemetry.api.trace.Tracer;
import io.opentelemetry.context.Scope;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it can be deleted, as it is not used.

import org.apache.phoenix.jdbc.PhoenixConnection;
import org.apache.phoenix.parse.TraceStatement;
import org.apache.phoenix.query.QueryServices;
import org.apache.phoenix.job.JobManager;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not used

import io.opentelemetry.context.Scope;
import org.apache.phoenix.trace.TraceUtil;

import java.sql.*;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Phoenix style guidelines does not want to use import *


import java.sql.*;

public class LocalConnectionTest {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this class assuming a local instance is running? Can this be made an actual IT?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbwong this test was written for local testing i have removed it.

import java.nio.file.Paths;
import java.util.List;

public class TestFSShellCluster {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same with this class on testing and IT

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbwong this was also written as part of local testing. have removed it

if (child != null) {
child.stop();
}
child.end();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What did we change here that insure child is non-null?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbwong In general opentelemetry default implementation would return an invalid span (when telemetry is not enabled) or a valid span same goes for startSpan as well. some other implementation might return null. I will add the check again

context.getOverallQueryMetrics().updateNumParallelScans(numScans);
GLOBAL_NUM_PARALLEL_SCANS.update(numScans);
final long renewLeaseThreshold = context.getConnection().getQueryServices().getRenewLeaseThresholdMilliSeconds();
//TODO: Parent Span creation using Span.current() and create children with description "Parallel scanner for table: " + tableRef.getTable().getPhysicalName().getString()

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this being handled in this JIRA or a followup?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbwong I am planning to handle this in this JIRA.


@Override
public PeekingResultIterator call() throws Exception {
//TODO: create child span for each call using parent

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one we use to handle with Tracing.wrap right?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbwong yes i had updated the implementation. was seeing issues so had to disable it. Will take a look at it again

public class TraceReader {

private static final Logger LOGGER = LoggerFactory.getLogger(TraceReader.class);
public static final long ROOT_SPAN_ID = 0x74ace;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the recommended approach for a top level span?

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dbwong I am not sure if we need TraceReader anymore, considering we can view the traces on exporter ui (like zipking or jaeger). I wanted to discuss about TracingWebApplication as well in the JIRA will comment there

@kiran-maturi

Copy link
Copy Markdown
ContributorAuthor

@virajjasani@richardantal can you please review

@kiran-maturi
kiran-maturi marked this pull request as ready for review July 28, 2022 10:41
@kiran-maturikiran-maturi changed the title PHOENIX-5215 opentelemetry changes replacing htrace - WIPPHOENIX-5215 opentelemetry changes replacing htraceJul 28, 2022
@gjacoby126

Copy link
Copy Markdown
Contributor

@kiran-maturi - I'm curious what the status of this PR is (needs a rebase at the least), and if we're trying to get it into the upcoming Phoenix 5.2 release?

@kiran-maturi

Copy link
Copy Markdown
ContributorAuthor

@gjacoby126 sorry for the late response. I have rebased it working on fixing other issues as well. Will keep you posted

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@kiran-maturi@stoty@gjacoby126@dbwong@richardantal