Skip to content

PHOENIX-5435 - Annotate HBase WALs with Phoenix Metadata - #913

Merged
gjacoby126 merged 1 commit into
apache:4.xfrom
gjacoby126:PHOENIX-5435
Dec 15, 2020
Merged

PHOENIX-5435 - Annotate HBase WALs with Phoenix Metadata#913
gjacoby126 merged 1 commit into
apache:4.xfrom
gjacoby126:PHOENIX-5435

Conversation

@gjacoby126

Copy link
Copy Markdown
Contributor

No description provided.

@stoty

stoty commented Oct 7, 2020

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec6m 59sDocker 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.
+1 💚test4tests0m 0sThe patch appears to include 2 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 43sMaven dependency ordering for branch
+1 💚mvninstall9m 16s4.x passed
+1 💚compile1m 53s4.x passed
+1 💚checkstyle3m 23s4.x passed
+1 💚javadoc3m 7s4.x passed
+0 🆗spotbugs0m 35sphoenix-hbase-compat-1.5.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 30sphoenix-hbase-compat-1.4.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 28sphoenix-hbase-compat-1.3.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs5m 46sroot in 4.x has 1011 extant spotbugs warnings.
+0 🆗spotbugs3m 29sphoenix-core in 4.x has 957 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 28sMaven dependency ordering for patch
+1 💚mvninstall5m 56sthe patch passed
+1 💚compile1m 48sthe patch passed
+1 💚cc1m 48sthe patch passed
+1 💚javac1m 48sthe patch passed
-1 ❌checkstyle3m 35sroot: The patch generated 272 new + 6145 unchanged - 41 fixed = 6417 total (was 6186)
+1 💚prototool0m 2sThere were no new prototool issues.
-1 ❌whitespace0m 0sThe patch has 1 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚xml0m 2sThe patch has no ill-formed XML file.
+1 💚javadoc3m 5sthe patch passed
-1 ❌spotbugs4m 0sphoenix-core generated 4 new + 956 unchanged - 1 fixed = 960 total (was 957)
-1 ❌spotbugs5m 29sroot generated 4 new + 1010 unchanged - 1 fixed = 1014 total (was 1011)
_ Other Tests _
-1 ❌unit143m 30sroot in the patch failed.
+1 💚asflicense2m 56sThe patch does not generate ASF License warnings.
214m 11s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.hbase.index.IndexRegionObserver.DEFAULT_PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 125]
org.apache.phoenix.hbase.index.IndexRegionObserver.PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 124]
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 719]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
FindBugsmodule:root
org.apache.phoenix.hbase.index.IndexRegionObserver.DEFAULT_PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 125]
org.apache.phoenix.hbase.index.IndexRegionObserver.PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 124]
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 719]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
Failed junit testsphoenix.end2end.ViewMetadataIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#913
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux 989c2b3fb99f 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 revision4.x / 3008ca9
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-913/1/artifact/yetus-general-check/output/diff-checkstyle-root.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/1/artifact/yetus-general-check/output/whitespace-eol.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/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-913/1/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/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-913/1/testReport/
Max. process+thread count5708 (vs. ulimit of 30000)
modulesC: phoenix-hbase-compat-1.5.0 phoenix-hbase-compat-1.4.0 phoenix-hbase-compat-1.3.0 phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/1/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
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 🆗reexec0m 0sDocker mode activated.
-1 ❌docker2m 30sDocker failed to build yetus/phoenix:955047a0b.
SubsystemReport/Notes
GITHUB PR#913
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/2/console
versionsgit=2.17.1
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 🆗reexec4m 18sDocker 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 2 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 31sMaven dependency ordering for branch
+1 💚mvninstall26m 3s4.x passed
+1 💚compile1m 22s4.x passed
+1 💚checkstyle4m 2s4.x passed
+1 💚javadoc2m 22s4.x passed
+0 🆗spotbugs0m 26sphoenix-hbase-compat-1.5.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 23sphoenix-hbase-compat-1.4.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 21sphoenix-hbase-compat-1.3.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs3m 54sroot in 4.x has 1011 extant spotbugs warnings.
+0 🆗spotbugs2m 40sphoenix-core in 4.x has 957 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 23sMaven dependency ordering for patch
+1 💚mvninstall23m 43sthe patch passed
+1 💚compile1m 27sthe patch passed
+1 💚cc1m 27sthe patch passed
+1 💚javac1m 27sthe patch passed
-1 ❌checkstyle4m 14sroot: The patch generated 308 new + 8142 unchanged - 61 fixed = 8450 total (was 8203)
+1 💚prototool0m 2sThere were no new prototool issues.
-1 ❌whitespace0m 0sThe patch has 1 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚xml0m 2sThe patch has no ill-formed XML file.
+1 💚javadoc2m 23sthe patch passed
-1 ❌spotbugs3m 8sphoenix-core generated 4 new + 956 unchanged - 1 fixed = 960 total (was 957)
-1 ❌spotbugs4m 10sroot generated 4 new + 1010 unchanged - 1 fixed = 1014 total (was 1011)
_ Other Tests _
-1 ❌unit114m 35sroot in the patch failed.
+1 💚asflicense2m 51sThe patch does not generate ASF License warnings.
209m 17s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.hbase.index.IndexRegionObserver.DEFAULT_PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 125]
org.apache.phoenix.hbase.index.IndexRegionObserver.PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 124]
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 719]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
FindBugsmodule:root
org.apache.phoenix.hbase.index.IndexRegionObserver.DEFAULT_PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 125]
org.apache.phoenix.hbase.index.IndexRegionObserver.PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 124]
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 719]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
Failed junit testsphoenix.end2end.UpgradeIT
phoenix.end2end.OrphanViewToolIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#913
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux 2fb3ebe1bc30 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 revision4.x / acb2123
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-913/3/artifact/yetus-general-check/output/diff-checkstyle-root.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/3/artifact/yetus-general-check/output/whitespace-eol.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/3/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/3/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/3/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/3/testReport/
Max. process+thread count5826 (vs. ulimit of 30000)
modulesC: phoenix-hbase-compat-1.5.0 phoenix-hbase-compat-1.4.0 phoenix-hbase-compat-1.3.0 phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/3/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@ChinmaySKulkarniChinmaySKulkarni 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.

Did a quick glance and this seems like a really cool feature! Overall lgtm and nice tests.
Will try to do a more in-depth review later.

Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/ImmutableTableIT.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/WALAnnotationIT.java Outdated
Comment threadpom.xml
<!-- See BUILDING.md for profile selection -->
<profile>
<id>phoenix-hbase-compat-1.3.0-default</id>
<id>phoenix-hbase-compat-1.5.0-default</id>

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.

Why did we change this?

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.

With 1.3 as the default, it's difficult to run the 1.5-specific tests like WALAnnotationIT in IntelliJ, and it means they won't get exercised in the automated test runs. FYI, @stoty .

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.

Since 4.x multibranch keep running all tests with all supported versions including 1.5, pom.xml changes will be reverted before merging this PR?

@ChinmaySKulkarni

Copy link
Copy Markdown
Contributor

@gjacoby126 Some high-level questions:

  1. For interactions with old clients, do we still get these WAL annotations (for ex: 4.16 server + 4.14 client) or do we only get this after clients are upgraded?

  2. Is it worth-while to maintain a whitelist for tables/views/indices where we may not want to enable this?

@gjacoby126

Copy link
Copy Markdown
ContributorAuthor
  1. This feature requires a 4.16 client and a 4.16 server. The server code is intended to gracefully no-op and not annotate if the client hasn't provided anything.
  2. The question would be how to store the list of tables to annotate, since so much of the logic is client-side where we don't have the server-side hbase-site.xml. It could be Yet Another PTable Attribute, but I'm unsure if it's worth the complexity -- wdyt? The conceptually cleanest way would be to annotate replicated tables and not annotate unreplicated ones, but replication scope is on the TableDescriptor, which we don't usually have access to client-side.

A critique I received offline to this PR from @priyankporwal suggested that annotating indexes might not be worth the storage cost, so we could also consider exempting indexes in the next draft (which is waiting on PHOENIX-6186 to populate the DDL timestamps)

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec3m 27sDocker 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 3 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 42sMaven dependency ordering for branch
+1 💚mvninstall12m 54s4.x passed
+1 💚compile1m 32s4.x passed
+1 💚checkstyle2m 53s4.x passed
+1 💚javadoc2m 23s4.x passed
+0 🆗spotbugs0m 26sphoenix-hbase-compat-1.5.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 23sphoenix-hbase-compat-1.4.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 23sphoenix-hbase-compat-1.3.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs4m 25sroot in 4.x has 1004 extant spotbugs warnings.
+0 🆗spotbugs2m 57sphoenix-core in 4.x has 950 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 27sMaven dependency ordering for patch
+1 💚mvninstall6m 57sthe patch passed
+1 💚compile1m 36sthe patch passed
+1 💚cc1m 36sthe patch passed
+1 💚javac1m 36sthe patch passed
-1 ❌checkstyle3m 0sroot: The patch generated 330 new + 8319 unchanged - 76 fixed = 8649 total (was 8395)
+1 💚prototool0m 2sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 1sThe patch has no ill-formed XML file.
+1 💚javadoc2m 28sthe patch passed
-1 ❌spotbugs3m 29sphoenix-core generated 4 new + 950 unchanged - 0 fixed = 954 total (was 950)
-1 ❌spotbugs4m 36sroot generated 4 new + 1004 unchanged - 0 fixed = 1008 total (was 1004)
_ Other Tests _
-1 ❌unit195m 56sroot in the patch failed.
+1 💚asflicense2m 22sThe patch does not generate ASF License warnings.
259m 36s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.hbase.index.IndexRegionObserver.DEFAULT_PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 126]
org.apache.phoenix.hbase.index.IndexRegionObserver.PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 125]
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 800]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
FindBugsmodule:root
org.apache.phoenix.hbase.index.IndexRegionObserver.DEFAULT_PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 126]
org.apache.phoenix.hbase.index.IndexRegionObserver.PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 125]
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 800]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
Failed junit testsphoenix.end2end.index.ViewIndexIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#913
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux 88e7da627350 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 revision4.x / e57fcc8
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-913/4/artifact/yetus-general-check/output/diff-checkstyle-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/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-913/4/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/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-913/4/testReport/
Max. process+thread count6080 (vs. ulimit of 30000)
modulesC: phoenix-hbase-compat-1.5.0 phoenix-hbase-compat-1.4.0 phoenix-hbase-compat-1.3.0 phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/4/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.4 prototool=1.10.0-dev
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 🆗reexec4m 11sDocker 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 3 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 32sMaven dependency ordering for branch
+1 💚mvninstall10m 44s4.x passed
+1 💚compile1m 25s4.x passed
+1 💚checkstyle10m 32s4.x passed
+1 💚javadoc2m 22s4.x passed
+0 🆗spotbugs0m 27sphoenix-hbase-compat-1.5.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 22sphoenix-hbase-compat-1.4.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 24sphoenix-hbase-compat-1.3.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs3m 59sroot in 4.x has 1004 extant spotbugs warnings.
+0 🆗spotbugs2m 38sphoenix-core in 4.x has 950 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 24sMaven dependency ordering for patch
+1 💚mvninstall5m 59sthe patch passed
+1 💚compile1m 28sthe patch passed
+1 💚cc1m 28sthe patch passed
+1 💚javac1m 28sthe patch passed
-1 ❌checkstyle10m 46sroot: The patch generated 541 new + 23086 unchanged - 193 fixed = 23627 total (was 23279)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 2sThe patch has no ill-formed XML file.
+1 💚javadoc2m 26sthe patch passed
-1 ❌spotbugs3m 11sphoenix-core generated 5 new + 950 unchanged - 0 fixed = 955 total (was 950)
-1 ❌spotbugs4m 12sroot generated 5 new + 1004 unchanged - 0 fixed = 1009 total (was 1004)
_ Other Tests _
-1 ❌unit143m 37sroot in the patch failed.
+1 💚asflicense0m 45sThe patch does not generate ASF License warnings.
214m 46s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.hbase.index.IndexRegionObserver.DEFAULT_PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 126]
org.apache.phoenix.hbase.index.IndexRegionObserver.PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 125]
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 800]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
FindBugsmodule:root
org.apache.phoenix.hbase.index.IndexRegionObserver.DEFAULT_PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 126]
org.apache.phoenix.hbase.index.IndexRegionObserver.PHOENIX_APPEND_METADATA_TO_WAL isn't final but should be At IndexRegionObserver.java:be At IndexRegionObserver.java:[line 125]
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 800]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/5/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#913
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux c23295b9be68 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 revision4.x / 7ac4dff
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-913/5/artifact/yetus-general-check/output/diff-checkstyle-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/5/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/5/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/5/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/5/testReport/
Max. process+thread count5945 (vs. ulimit of 30000)
modulesC: phoenix-hbase-compat-1.5.0 phoenix-hbase-compat-1.4.0 phoenix-hbase-compat-1.3.0 phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/5/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.4 prototool=1.10.0-dev
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 🆗reexec0m 33sDocker 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 3 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 32sMaven dependency ordering for branch
+1 💚mvninstall10m 53s4.x passed
+1 💚compile1m 23s4.x passed
+1 💚checkstyle9m 38s4.x passed
+1 💚javadoc2m 26s4.x passed
+0 🆗spotbugs0m 27sphoenix-hbase-compat-1.5.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 23sphoenix-hbase-compat-1.4.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 22sphoenix-hbase-compat-1.3.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs4m 9sroot in 4.x has 1004 extant spotbugs warnings.
+0 🆗spotbugs2m 59sphoenix-core in 4.x has 950 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 25sMaven dependency ordering for patch
+1 💚mvninstall5m 59sthe patch passed
+1 💚compile1m 26sthe patch passed
+1 💚cc1m 26sthe patch passed
+1 💚javac1m 26sthe patch passed
-1 ❌checkstyle9m 5sroot: The patch generated 496 new + 23127 unchanged - 152 fixed = 23623 total (was 23279)
+1 💚prototool0m 2sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 2sThe patch has no ill-formed XML file.
+1 💚javadoc2m 27sthe patch passed
-1 ❌spotbugs3m 44sphoenix-core generated 3 new + 950 unchanged - 0 fixed = 953 total (was 950)
-1 ❌spotbugs5m 25sroot generated 3 new + 1004 unchanged - 0 fixed = 1007 total (was 1004)
_ Other Tests _
-1 ❌unit132m 36sroot in the patch failed.
+1 💚asflicense2m 37sThe patch does not generate ASF License warnings.
204m 21s
ReasonTests
FindBugsmodule:phoenix-core
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 800]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
FindBugsmodule:root
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 800]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
Failed junit testsphoenix.end2end.ViewTTLIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/6/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#913
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux febe6ca7d32a 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 revision4.x / 6195621
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-913/6/artifact/yetus-general-check/output/diff-checkstyle-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/6/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/6/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/6/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/6/testReport/
Max. process+thread count6043 (vs. ulimit of 30000)
modulesC: phoenix-hbase-compat-1.5.0 phoenix-hbase-compat-1.4.0 phoenix-hbase-compat-1.3.0 phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/6/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.4 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@gjacoby126

Copy link
Copy Markdown
ContributorAuthor

In this latest revision:

  1. I added a new boolean flag, CHANGE_DETECTION_ENABLED to System.Catalog which is configured via property on table or view creation. It can be changed via ALTER. Adding it to an index will fail. Only tables and views with this flag set to true (it defaults false) will have their changes annotated into the WAL. Future JIRAs (such as PHOENIX-6227, and the main CDC code which will go in phoenix-connectors) will also use this flag.
  2. Indexes are no longer annotated.
  3. Shifted WALAnnotationIT to use the SchemaBuilder API introduced with Phoenix TTL

I believe the one remaining request left to do is @kadirozde 's suggestion to do a perf test. I will do this over the next couple of days.

@ChinmaySKulkarni , @kadirozde , fyi.

@stoty

stoty commented Dec 2, 2020

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 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 4 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 32sMaven dependency ordering for branch
+1 💚mvninstall10m 57s4.x passed
+1 💚compile1m 27s4.x passed
+1 💚checkstyle10m 21s4.x passed
+1 💚javadoc2m 23s4.x passed
+0 🆗spotbugs0m 27sphoenix-hbase-compat-1.5.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 24sphoenix-hbase-compat-1.4.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 21sphoenix-hbase-compat-1.3.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs3m 58sroot in 4.x has 1004 extant spotbugs warnings.
+0 🆗spotbugs2m 42sphoenix-core in 4.x has 950 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 24sMaven dependency ordering for patch
+1 💚mvninstall6m 17sthe patch passed
+1 💚compile1m 34sthe patch passed
+1 💚cc1m 34sthe patch passed
+1 💚javac1m 34sthe patch passed
-1 ❌checkstyle10m 40sroot: The patch generated 537 new + 23086 unchanged - 193 fixed = 23623 total (was 23279)
+1 💚prototool0m 2sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 1sThe patch has no ill-formed XML file.
+1 💚javadoc2m 21sthe patch passed
-1 ❌spotbugs3m 13sphoenix-core generated 3 new + 950 unchanged - 0 fixed = 953 total (was 950)
-1 ❌spotbugs4m 14sroot generated 3 new + 1004 unchanged - 0 fixed = 1007 total (was 1004)
_ Other Tests _
-1 ❌unit140m 47sroot in the patch failed.
+1 💚asflicense0m 43sThe patch does not generate ASF License warnings.
208m 41s
ReasonTests
FindBugsmodule:phoenix-core
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 800]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
FindBugsmodule:root
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 800]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/7/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#913
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux de63ff85ea36 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 revision4.x / 18b9f76
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-913/7/artifact/yetus-general-check/output/diff-checkstyle-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/7/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/7/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/7/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/7/testReport/
Max. process+thread count6126 (vs. ulimit of 30000)
modulesC: phoenix-hbase-compat-1.5.0 phoenix-hbase-compat-1.4.0 phoenix-hbase-compat-1.3.0 phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/7/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.4 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@gjacoby126

Copy link
Copy Markdown
ContributorAuthor

The test run is odd -- looks like phoenix-core passed but then there was an error in building or shading phoenix-client? I can't reproduce locally -- mvn clean install -DskipTests passes for me.

@stoty

stoty commented Dec 4, 2020

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 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 4 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 32sMaven dependency ordering for branch
+1 💚mvninstall10m 40s4.x passed
+1 💚compile1m 22s4.x passed
+1 💚checkstyle10m 33s4.x passed
+1 💚javadoc2m 24s4.x passed
+0 🆗spotbugs0m 26sphoenix-hbase-compat-1.5.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 24sphoenix-hbase-compat-1.4.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 21sphoenix-hbase-compat-1.3.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs3m 59sroot in 4.x has 1004 extant spotbugs warnings.
+0 🆗spotbugs2m 39sphoenix-core in 4.x has 950 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 24sMaven dependency ordering for patch
+1 💚mvninstall6m 4sthe patch passed
+1 💚compile1m 28sthe patch passed
+1 💚cc1m 28sthe patch passed
+1 💚javac1m 28sthe patch passed
-1 ❌checkstyle10m 51sroot: The patch generated 496 new + 23126 unchanged - 152 fixed = 23622 total (was 23278)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 1sThe patch has no ill-formed XML file.
+1 💚javadoc2m 23sthe patch passed
-1 ❌spotbugs3m 11sphoenix-core generated 3 new + 950 unchanged - 0 fixed = 953 total (was 950)
-1 ❌spotbugs4m 13sroot generated 3 new + 1004 unchanged - 0 fixed = 1007 total (was 1004)
_ Other Tests _
-1 ❌unit294m 10sroot in the patch failed.
+1 💚asflicense2m 31sThe patch does not generate ASF License warnings.
365m 36s
ReasonTests
FindBugsmodule:phoenix-core
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 800]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
FindBugsmodule:root
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 800]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
Failed junit testsphoenix.end2end.PermissionNSEnabledWithCustomAccessControllerIT
phoenix.end2end.ViewMetadataIT
phoenix.end2end.join.SubqueryIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/8/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#913
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux 505cd6e9f51a 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 revision4.x / 5e70f76
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-913/8/artifact/yetus-general-check/output/diff-checkstyle-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/8/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/8/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/8/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/8/testReport/
Max. process+thread count6034 (vs. ulimit of 30000)
modulesC: phoenix-hbase-compat-1.5.0 phoenix-hbase-compat-1.4.0 phoenix-hbase-compat-1.3.0 phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/8/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.4 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

stoty commented Dec 8, 2020

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 30sDocker 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.
+1 💚test4tests0m 0sThe patch appears to include 4 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 33sMaven dependency ordering for branch
+1 💚mvninstall11m 14s4.x passed
+1 💚compile1m 22s4.x passed
+1 💚checkstyle8m 47s4.x passed
+1 💚javadoc2m 20s4.x passed
+0 🆗spotbugs0m 29sphoenix-hbase-compat-1.5.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 24sphoenix-hbase-compat-1.4.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 21sphoenix-hbase-compat-1.3.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs4m 4sroot in 4.x has 1004 extant spotbugs warnings.
+0 🆗spotbugs2m 43sphoenix-core in 4.x has 950 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 27sMaven dependency ordering for patch
+1 💚mvninstall5m 59sthe patch passed
+1 💚compile1m 28sthe patch passed
+1 💚cc1m 28sthe patch passed
+1 💚javac1m 28sthe patch passed
-1 ❌checkstyle9m 1sroot: The patch generated 536 new + 23080 unchanged - 192 fixed = 23616 total (was 23272)
+1 💚prototool0m 2sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 1sThe patch has no ill-formed XML file.
+1 💚javadoc2m 24sthe patch passed
-1 ❌spotbugs3m 14sphoenix-core generated 3 new + 950 unchanged - 0 fixed = 953 total (was 950)
-1 ❌spotbugs4m 17sroot generated 3 new + 1004 unchanged - 0 fixed = 1007 total (was 1004)
_ Other Tests _
-1 ❌unit148m 12sroot in the patch failed.
+1 💚asflicense0m 47sThe patch does not generate ASF License warnings.
212m 54s
ReasonTests
FindBugsmodule:phoenix-core
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 800]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
FindBugsmodule:root
Load of known null value in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:in org.apache.phoenix.hbase.index.IndexRegionObserver.prepareIndexMutations(IndexRegionObserver$BatchMutateContext, List, long) At IndexRegionObserver.java:[line 800]
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/9/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#913
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux f4f92db0025f 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 revision4.x / 1261c3f
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-913/9/artifact/yetus-general-check/output/diff-checkstyle-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/9/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/9/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/9/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/9/testReport/
Max. process+thread count5776 (vs. ulimit of 30000)
modulesC: phoenix-hbase-compat-1.5.0 phoenix-hbase-compat-1.4.0 phoenix-hbase-compat-1.3.0 phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/9/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.4 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@virajjasanivirajjasani 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.

Left few comments while trying to get familiarity with this nice feature


private void annotateDataMutations(UngroupedAggregateRegionObserver.MutationList mutationsList,
Scan scan) {
byte[] tenantId = null;

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: we are assigning these variables representing MutationMetadataType twice (null and scan.getAttribute()), should we assign all of them just once by removing null assignments?

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.

Done

lastDDLTimestampKv.getValueOffset(), SortOrder.getDefault());

Cell changeDetectionEnabledKv = tableKeyValues[CHANGE_DETECTION_ENABLED_INDEX];
boolean isChangeDetectionEnabled = changeDetectionEnabledKv != null

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.

In case of old client - new server case, changeDetectionEnabledKv will be null 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.

So long as some other client hasn't set CHANGE_DETECTION_ENABLED=true on the table via an ALTER statement.

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.

If a new client modifies some table's CDE field, there won't be a problem for old clients interacting with the table 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.

Since it's an optional field in the protobuf and the old client won't even know to deserialize it I don't think it would cause a problem.


}

public static void annotateMutationWithMetadata(PTable table, Mutation mutation) {

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: we can keep both util methods private?

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.

Switched to private

Comment on lines +31 to +32
public static String PHOENIX_APPEND_METADATA_TO_WAL = "phoenix.append.metadata.to.wal";
public static boolean DEFAULT_PHOENIX_APPEND_METADATA_TO_WAL = false;

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: should we avoid defining constants in Compat classes?

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.

These aren't used, will remove.

MutationState.MutationMetadataType.values()) {
String metadataTypeKey = metadataType.toString();
if (attrMap.containsKey(metadataTypeKey)) {
CompatIndexRegionObserver.appendToWALKey(key, metadataTypeKey,

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.

appendToWALKey() is public only in 1.5 compact class but not in 1.3/1.4 compact classes, without which this could cause compilation issue while running against 1.3/1.4.

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.

Moreover, 1.3/1.4 compact classes don't have it as static

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.

Oops, thanks for the catch.

if (isChangeDetectionEnabledProp != null) {
if (tableType != TABLE && tableType != VIEW) {
throw new SQLExceptionInfo.Builder(
SQLExceptionCode.CHANGE_DETECTION_SUPPORTED_FOR_TABLES_AND_VIEWS_ONLY)

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.

If possible, we can refactor this validation in a small util method and it can be used by both workflows: createTable/createIndex and addColumn/alterIndex?

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.

Done

Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/ImmutableTableIT.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/index/ViewIndexIT.java Outdated
* Used for an aggregate query in which the key order does not necessarily match the group by
* key order. In this case, we must collect all distinct groups within a region into a map,
* aggregating as we go.
* @param limit TODO

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.

TODO seems to be dropped but not implemented?

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.

Removed the params from the Javadoc as they were Javadoc errors.

/**
* <code>optional string logicalIndexName = 25;</code>
*/
java.lang.String getLogicalIndexName();

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.

Would this be populated for both view indexes and regular indexes and local indexes?

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.

@gjacoby126 thanks for addressing my comments. There is just this question remaining.

@gjacoby126gjacoby126Dec 14, 2020

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.

@gokceni Correct, should be populated for all indexes.

Comment threadphoenix-core/src/main/java/org/apache/phoenix/execute/MutationState.java Outdated
Comment threadphoenix-core/src/main/java/org/apache/phoenix/execute/MutationState.java Outdated

@ChinmaySKulkarniChinmaySKulkarni 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.

Really cool feature! Thanks @gjacoby126. I've added some comments and questions.

Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/ImmutableTableIT.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/WALAnnotationIT.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/WALAnnotationIT.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/WALAnnotationIT.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/WALAnnotationIT.java Outdated
Comment threadphoenix-core/src/test/java/org/apache/phoenix/query/PhoenixTestBuilder.java Outdated
Comment threadphoenix-core/src/test/java/org/apache/phoenix/query/PhoenixTestBuilder.java Outdated
@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 10sDocker 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 4 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 31sMaven dependency ordering for branch
+1 💚mvninstall12m 3s4.x passed
+1 💚compile1m 36s4.x passed
+1 💚checkstyle6m 24s4.x passed
+1 💚javadoc2m 47s4.x passed
+0 🆗spotbugs0m 29sphoenix-hbase-compat-1.5.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 25sphoenix-hbase-compat-1.4.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 23sphoenix-hbase-compat-1.3.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs4m 43sroot in 4.x has 1005 extant spotbugs warnings.
+0 🆗spotbugs3m 11sphoenix-core in 4.x has 951 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 25sMaven dependency ordering for patch
+1 💚mvninstall7m 22sthe patch passed
+1 💚compile2m 4sthe patch passed
+1 💚cc2m 4sthe patch passed
+1 💚javac2m 4sthe patch passed
-1 ❌checkstyle8m 10sroot: The patch generated 506 new + 23134 unchanged - 191 fixed = 23640 total (was 23325)
+1 💚prototool0m 2sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 2sThe patch has no ill-formed XML file.
+1 💚javadoc3m 5sthe patch passed
-1 ❌spotbugs3m 59sphoenix-core generated 2 new + 951 unchanged - 0 fixed = 953 total (was 951)
-1 ❌spotbugs5m 32sroot generated 2 new + 1005 unchanged - 0 fixed = 1007 total (was 1005)
_ Other Tests _
-1 ❌unit198m 10sroot in the patch failed.
+1 💚asflicense2m 8sThe patch does not generate ASF License warnings.
271m 24s
ReasonTests
FindBugsmodule:phoenix-core
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
FindBugsmodule:root
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
Failed junit testsphoenix.end2end.IndexExtendedIT
phoenix.util.IndexScrutinyIT
phoenix.end2end.IndexScrutinyToolIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/11/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#913
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux b75c8bf09267 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 revision4.x / 432474e
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-913/11/artifact/yetus-general-check/output/diff-checkstyle-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/11/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/11/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/11/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/11/testReport/
Max. process+thread count5876 (vs. ulimit of 30000)
modulesC: phoenix-hbase-compat-1.5.0 phoenix-hbase-compat-1.4.0 phoenix-hbase-compat-1.3.0 phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/11/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.4 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Comment threadphoenix-core/src/main/java/org/apache/phoenix/index/GlobalIndexChecker.java Outdated
@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 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 4 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 31sMaven dependency ordering for branch
+1 💚mvninstall10m 58s4.x passed
+1 💚compile1m 21s4.x passed
+1 💚checkstyle9m 47s4.x passed
+1 💚javadoc2m 24s4.x passed
+0 🆗spotbugs0m 27sphoenix-hbase-compat-1.5.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 24sphoenix-hbase-compat-1.4.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 23sphoenix-hbase-compat-1.3.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs4m 9sroot in 4.x has 1005 extant spotbugs warnings.
+0 🆗spotbugs2m 44sphoenix-core in 4.x has 951 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 25sMaven dependency ordering for patch
+1 💚mvninstall6m 13sthe patch passed
+1 💚compile1m 30sthe patch passed
+1 💚cc1m 30sthe patch passed
+1 💚javac1m 30sthe patch passed
-1 ❌checkstyle9m 15sroot: The patch generated 474 new + 23163 unchanged - 157 fixed = 23637 total (was 23320)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 1sThe patch has no ill-formed XML file.
+1 💚javadoc2m 35sthe patch passed
-1 ❌spotbugs3m 19sphoenix-core generated 2 new + 951 unchanged - 0 fixed = 953 total (was 951)
-1 ❌spotbugs4m 30sroot generated 2 new + 1005 unchanged - 0 fixed = 1007 total (was 1005)
_ Other Tests _
-1 ❌unit128m 30sroot in the patch failed.
+1 💚asflicense2m 30sThe patch does not generate ASF License warnings.
198m 43s
ReasonTests
FindBugsmodule:phoenix-core
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
FindBugsmodule:root
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
Failed junit testsphoenix.end2end.index.ViewIndexIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/12/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#913
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux fbce87f802cf 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 revision4.x / d43c362
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-913/12/artifact/yetus-general-check/output/diff-checkstyle-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/12/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/12/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/12/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/12/testReport/
Max. process+thread count6087 (vs. ulimit of 30000)
modulesC: phoenix-hbase-compat-1.5.0 phoenix-hbase-compat-1.4.0 phoenix-hbase-compat-1.3.0 phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/12/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.4 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@gjacoby126

Copy link
Copy Markdown
ContributorAuthor

@gokceni , @ChinmaySKulkarni , @virajjasani , I believe I have addressed all outstanding comments (and also pushed up a fix for an NPE in ViewIndexIT the last test run found.) Could you please give it another look? Thanks!

@virajjasani

virajjasani commented Dec 14, 2020

Copy link
Copy Markdown
Contributor

@gjacoby126 btw for the past couple of days, all precommit PR builds for 4.x (that I came across) are timing out and precommit Jira builds for 4.x patch are passing by ~1/4 probability (that I am aware of) so you might also want to upload 4.x patch to Jira to trigger 4.x precommit Jira build.

@ChinmaySKulkarniChinmaySKulkarni 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.

+1 thanks @gjacoby126

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 41sDocker 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 3 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 38sMaven dependency ordering for branch
+1 💚mvninstall11m 7s4.x passed
+1 💚compile1m 28s4.x passed
+1 💚checkstyle7m 31s4.x passed
+1 💚javadoc2m 25s4.x passed
+0 🆗spotbugs0m 28sphoenix-hbase-compat-1.5.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 23sphoenix-hbase-compat-1.4.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs0m 24sphoenix-hbase-compat-1.3.0 in 4.x has 3 extant spotbugs warnings.
+0 🆗spotbugs4m 18sroot in 4.x has 1005 extant spotbugs warnings.
+0 🆗spotbugs2m 55sphoenix-core in 4.x has 951 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 25sMaven dependency ordering for patch
+1 💚mvninstall6m 35sthe patch passed
+1 💚compile1m 37sthe patch passed
+1 💚cc1m 37sthe patch passed
+1 💚javac1m 37sthe patch passed
-1 ❌checkstyle7m 36sroot: The patch generated 459 new + 23220 unchanged - 157 fixed = 23679 total (was 23377)
+1 💚prototool0m 2sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚xml0m 2sThe patch has no ill-formed XML file.
+1 💚javadoc2m 31sthe patch passed
-1 ❌spotbugs3m 29sphoenix-core generated 2 new + 951 unchanged - 0 fixed = 953 total (was 951)
-1 ❌spotbugs4m 36sroot generated 2 new + 1005 unchanged - 0 fixed = 1007 total (was 1005)
_ Other Tests _
-1 ❌unit127m 59sroot in the patch failed.
+1 💚asflicense2m 33sThe patch does not generate ASF License warnings.
195m 44s
ReasonTests
FindBugsmodule:phoenix-core
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
FindBugsmodule:root
Switch statement found in org.apache.phoenix.hbase.index.scanner.FilteredKeyValueScanner.seekToNextUnfilteredKeyValue() where default case is missing At FilteredKeyValueScanner.java:where default case is missing At FilteredKeyValueScanner.java:[lines 84-101]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.CHANGE_DETECTION_ENABLED_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 336]
Failed junit testsphoenix.end2end.ViewMetadataIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/13/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#913
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux ea827aee166e 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 revision4.x / 4b272b1
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-913/13/artifact/yetus-general-check/output/diff-checkstyle-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/13/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/13/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/13/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/13/testReport/
Max. process+thread count6255 (vs. ulimit of 30000)
modulesC: phoenix-hbase-compat-1.5.0 phoenix-hbase-compat-1.4.0 phoenix-hbase-compat-1.3.0 phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-913/13/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.4 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@virajjasanivirajjasani 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.

+1 (non-binding)

Comment threadpom.xml
<!-- See BUILDING.md for profile selection -->
<profile>
<id>phoenix-hbase-compat-1.3.0-default</id>
<id>phoenix-hbase-compat-1.5.0-default</id>

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.

Since 4.x multibranch keep running all tests with all supported versions including 1.5, pom.xml changes will be reverted before merging this PR?

@gokceni

Copy link
Copy Markdown
Contributor

@gjacoby126 +1 Thanks!

@gjacoby126
gjacoby126 merged commit d0639de into apache:4.xDec 15, 2020
@gjacoby126

Copy link
Copy Markdown
ContributorAuthor

Thanks for the reviews, @ChinmaySKulkarni@gokceni and @virajjasani !

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

@gjacoby126@stoty@ChinmaySKulkarni@virajjasani@gokceni