Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHOENIX-5215 opentelemetry changes replacing htrace #1282

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

kiran-maturi
Copy link
Contributor

No description provided.

@stoty
Copy link
Contributor

stoty commented Aug 5, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 5m 30s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+0 🆗 mvndep 4m 59s Maven dependency ordering for branch
+1 💚 mvninstall 19m 38s master passed
+0 hbaserecompile 31m 43s HBase recompiled.
+1 💚 compile 1m 48s master passed
+1 💚 checkstyle 1m 47s master passed
+1 💚 javadoc 2m 25s master passed
+0 🆗 spotbugs 5m 2s root in master has 1032 extant spotbugs warnings.
+0 🆗 spotbugs 3m 17s phoenix-core in master has 973 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 21s Maven dependency ordering for patch
-1 ❌ mvninstall 1m 18s root in the patch failed.
+0 hbaserecompile 8m 39s HBase recompiled.
+1 💚 compile 1m 49s the patch passed
+1 💚 javac 1m 49s the patch passed
-1 ❌ checkstyle 1m 49s root: The patch generated 106 new + 2243 unchanged - 140 fixed = 2349 total (was 2383)
-1 ❌ whitespace 0m 0s The patch 1 line(s) with tabs.
+1 💚 xml 0m 5s The patch has no ill-formed XML file.
+1 💚 javadoc 2m 18s the patch passed
-1 ❌ spotbugs 3m 36s phoenix-core generated 5 new + 968 unchanged - 5 fixed = 973 total (was 973)
-1 ❌ spotbugs 5m 14s root generated 5 new + 1027 unchanged - 5 fixed = 1032 total (was 1032)
_ Other Tests _
-1 ❌ unit 2m 0s root in the patch failed.
-1 ❌ asflicense 0m 49s The patch generated 614 ASF License warnings.
80m 27s
Reason Tests
FindBugs module: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]
FindBugs module: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 tests phoenix.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
Subsystem Report/Notes
Docker ClientAPI=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 Tests dupname asflicense javac javadoc unit xml compile spotbugs hbaserebuild hbaseanti checkstyle
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision master / 025a4af
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
mvninstall https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/artifact/yetus-general-check/output/patch-mvninstall-root.txt
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/artifact/yetus-general-check/output/diff-checkstyle-root.txt
whitespace https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/artifact/yetus-general-check/output/whitespace-tabs.txt
spotbugs https://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
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/artifact/yetus-general-check/output/new-spotbugs-root.html
unit https://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 Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/testReport/
asflicense https://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 count 493 (vs. ulimit of 30000)
modules C: phoenix-core phoenix-assembly . U: .
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/1/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented Aug 5, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 49s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+0 🆗 mvndep 4m 59s Maven dependency ordering for branch
+1 💚 mvninstall 20m 48s master passed
+0 hbaserecompile 35m 5s HBase recompiled.
+1 💚 compile 2m 2s master passed
+1 💚 checkstyle 2m 3s master passed
+1 💚 javadoc 2m 46s master passed
+0 🆗 spotbugs 5m 57s root in master has 1032 extant spotbugs warnings.
+0 🆗 spotbugs 4m 0s phoenix-core in master has 973 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 24s Maven dependency ordering for patch
-1 ❌ mvninstall 1m 21s root in the patch failed.
+0 hbaserecompile 8m 19s HBase recompiled.
+1 💚 compile 1m 38s the patch passed
+1 💚 javac 1m 38s the patch passed
-1 ❌ checkstyle 2m 2s root: The patch generated 123 new + 2228 unchanged - 157 fixed = 2351 total (was 2385)
-1 ❌ whitespace 0m 0s The patch 1 line(s) with tabs.
+1 💚 xml 0m 4s The patch has no ill-formed XML file.
+1 💚 javadoc 2m 20s the patch passed
-1 ❌ spotbugs 3m 17s phoenix-core generated 5 new + 968 unchanged - 5 fixed = 973 total (was 973)
-1 ❌ spotbugs 4m 45s root generated 5 new + 1027 unchanged - 5 fixed = 1032 total (was 1032)
_ Other Tests _
-1 ❌ unit 120m 44s root in the patch failed.
-1 ❌ asflicense 2m 21s The patch generated 614 ASF License warnings.
203m 35s
Reason Tests
FindBugs module: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]
FindBugs module: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 tests phoenix.monitoring.PhoenixMetricsIT
phoenix.trace.PhoenixTableMetricsWriterIT
phoenix.monitoring.PhoenixLoggingMetricsIT
Subsystem Report/Notes
Docker ClientAPI=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 Tests dupname asflicense javac javadoc unit xml compile spotbugs hbaserebuild hbaseanti checkstyle
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision master / 025a4af
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
mvninstall https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/artifact/yetus-general-check/output/patch-mvninstall-root.txt
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/artifact/yetus-general-check/output/diff-checkstyle-root.txt
whitespace https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/artifact/yetus-general-check/output/whitespace-tabs.txt
spotbugs https://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
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/artifact/yetus-general-check/output/new-spotbugs-root.html
unit https://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 Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/testReport/
asflicense https://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 count 7820 (vs. ulimit of 30000)
modules C: phoenix-core phoenix-assembly . U: .
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/2/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented Aug 16, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 5m 31s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 1 new or modified test files.
_ master Compile Tests _
+0 🆗 mvndep 5m 21s Maven dependency ordering for branch
+1 💚 mvninstall 16m 37s master passed
+0 hbaserecompile 28m 21s HBase recompiled.
+1 💚 compile 1m 39s master passed
+1 💚 checkstyle 2m 4s master passed
+1 💚 javadoc 2m 20s master passed
+0 🆗 spotbugs 4m 32s root in master has 1032 extant spotbugs warnings.
+0 🆗 spotbugs 3m 1s phoenix-core in master has 973 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 22s Maven dependency ordering for patch
+1 💚 mvninstall 13m 29s the patch passed
+0 hbaserecompile 20m 4s HBase recompiled.
+1 💚 compile 1m 38s the patch passed
+1 💚 javac 1m 38s the patch passed
-1 ❌ checkstyle 2m 2s root: The patch generated 138 new + 2287 unchanged - 170 fixed = 2425 total (was 2457)
-1 ❌ whitespace 0m 0s The patch 1 line(s) with tabs.
+1 💚 xml 0m 4s The patch has no ill-formed XML file.
+1 💚 javadoc 2m 22s the patch passed
-1 ❌ spotbugs 3m 20s phoenix-core generated 4 new + 968 unchanged - 5 fixed = 972 total (was 973)
-1 ❌ spotbugs 4m 50s root generated 4 new + 1027 unchanged - 5 fixed = 1031 total (was 1032)
_ Other Tests _
-1 ❌ unit 115m 56s root in the patch failed.
-1 ❌ asflicense 2m 27s The patch generated 614 ASF License warnings.
204m 20s
Reason Tests
FindBugs module: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]
FindBugs module: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 tests phoenix.trace.PhoenixTableMetricsWriterIT
Subsystem Report/Notes
Docker ClientAPI=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 Tests dupname asflicense javac javadoc unit xml compile spotbugs hbaserebuild hbaseanti checkstyle
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision master / c4d297d
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/artifact/yetus-general-check/output/diff-checkstyle-root.txt
whitespace https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/artifact/yetus-general-check/output/whitespace-tabs.txt
spotbugs https://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
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/artifact/yetus-general-check/output/new-spotbugs-root.html
unit https://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 Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/testReport/
asflicense https://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 count 16258 (vs. ulimit of 30000)
modules C: phoenix-core phoenix-assembly . U: .
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1282/4/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@richardantal richardantal left a comment

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.

<groupId>org.apache.htrace</groupId>
<artifactId>htrace-core</artifactId>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-api</artifactId>
Copy link
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

<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-context</artifactId>
<version>${opentelemetry.version}</version>
Copy link
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

@@ -84,8 +83,8 @@ public void writeMetrics() throws Exception {
Span span = createNewSpan(traceid, parentid, spanid, description, startTime, endTime,
processid, annotation);

Tracer.getInstance().deliver(span);
assertTrue("Span never committed to table", latch.await(30, TimeUnit.SECONDS));
//Tracer.getInstance().deliver(span);
Copy link
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
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
Contributor Author

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

@@ -60,7 +60,7 @@
*
* @since 0.1
*/
public final class PhoenixDriver extends PhoenixEmbeddedDriver {
public final class PhoenixDriver extends PhoenixEmbeddedDriver {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: extra space

@@ -201,6 +201,7 @@
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
Contributor

Choose a reason for hiding this comment

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

nit: not used

@@ -264,7 +256,7 @@ protected Connection getConnection(String tableName) {
try {
// 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
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
Contributor Author

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.DelegateResultIterator;
import org.apache.phoenix.iterate.ResultIterator;
import org.apache.phoenix.schema.tuple.Tuple;
import org.apache.htrace.TraceScope;

Copy link
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
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.call.CallRunner;
import org.apache.phoenix.call.CallWrapper;
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
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
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
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
Contributor Author

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
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
Contributor Author

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
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
Contributor Author

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

@@ -108,6 +108,7 @@ protected void submitWork(final List<List<Scan>> nestedScans, List<List<Pair<Sca
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
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
Contributor Author

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
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
Contributor Author

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

@@ -47,6 +46,7 @@
public class TraceReader {

private static final Logger LOGGER = LoggerFactory.getLogger(TraceReader.class);
public static final long ROOT_SPAN_ID = 0x74ace;
Copy link
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
Contributor Author

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
Contributor Author

@virajjasani @richardantal can you please review

@kiran-maturi kiran-maturi marked this pull request as ready for review July 28, 2022 10:41
@kiran-maturi kiran-maturi changed the title PHOENIX-5215 opentelemetry changes replacing htrace - WIP PHOENIX-5215 opentelemetry changes replacing htrace Jul 28, 2022
@gjacoby126
Copy link
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
Contributor Author

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

Sign up for free to 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