Skip to content

PHOENIX-6186 - Store last DDL timestamp in System.Catalog - #935

Merged
gjacoby126 merged 6 commits into
apache:4.xfrom
gjacoby126:PHOENIX-6186
Nov 20, 2020
Merged

PHOENIX-6186 - Store last DDL timestamp in System.Catalog#935
gjacoby126 merged 6 commits into
apache:4.xfrom
gjacoby126:PHOENIX-6186

Conversation

@gjacoby126

Copy link
Copy Markdown
Contributor

No description provided.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 31sDocker 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 doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x Compile Tests _
+0 🆗mvndep0m 32sMaven dependency ordering for branch
+1 💚mvninstall10m 46s4.x passed
+1 💚compile1m 26s4.x passed
+1 💚checkstyle6m 49s4.x passed
+1 💚javadoc1m 48s4.x passed
+0 🆗spotbugs4m 12sroot in 4.x has 1008 extant spotbugs warnings.
+0 🆗spotbugs2m 43sphoenix-core in 4.x has 954 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 16sMaven dependency ordering for patch
+1 💚mvninstall5m 11sthe patch passed
+1 💚compile1m 30sthe patch passed
+1 💚cc1m 30sthe patch passed
+1 💚javac1m 30sthe patch passed
-1 ❌checkstyle5m 35sroot: The patch generated 116 new + 14751 unchanged - 41 fixed = 14867 total (was 14792)
+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 ❌javadoc0m 43sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 3sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs3m 14sphoenix-core generated 1 new + 954 unchanged - 0 fixed = 955 total (was 954)
-1 ❌spotbugs4m 23sroot generated 1 new + 1008 unchanged - 0 fixed = 1009 total (was 1008)
_ Other Tests _
-1 ❌unit159m 53sroot in the patch failed.
+1 💚asflicense1m 26sThe patch does not generate ASF License warnings.
215m 3s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 332]
FindBugsmodule:root
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 332]
Failed junit testsphoenix.end2end.IndexExtendedIT
phoenix.end2end.UpgradeIT
phoenix.end2end.index.ImmutableIndexIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux cd7751438141 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 / 605656c
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-935/3/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/3/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/3/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/3/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/3/testReport/
Max. process+thread count6864 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/3/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

Three tests failed (IndexExtendedIT, UpgradeIT, ImmutableIndexIT), but two were timeouts (the index tests), and all pass when run locally so appear to be flappers.

Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/CreateTableIT.java Outdated
Comment threadphoenix-core/src/main/java/org/apache/phoenix/util/MetaDataUtil.java Outdated
Comment threadphoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java Outdated
Comment threadphoenix-core/src/main/java/org/apache/phoenix/schema/MetaDataClient.java Outdated
Comment threadpom.xml Outdated
@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec5m 32sDocker 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 1 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 32sMaven dependency ordering for branch
+1 💚mvninstall10m 44s4.x passed
+1 💚compile1m 22s4.x passed
+1 💚checkstyle10m 10s4.x passed
+1 💚javadoc1m 50s4.x passed
+0 🆗spotbugs3m 59sroot in 4.x has 1007 extant spotbugs warnings.
+0 🆗spotbugs2m 41sphoenix-core in 4.x has 953 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 15sMaven dependency ordering for patch
+1 💚mvninstall5m 24sthe patch passed
+1 💚compile1m 22sthe patch passed
+1 💚cc1m 22sthe patch passed
+1 💚javac1m 22sthe patch passed
-1 ❌checkstyle10m 20sroot: The patch generated 242 new + 22485 unchanged - 111 fixed = 22727 total (was 22596)
+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 ❌javadoc0m 43sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 2sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs3m 7sphoenix-core generated 2 new + 952 unchanged - 1 fixed = 954 total (was 953)
-1 ❌spotbugs4m 5sroot generated 2 new + 1006 unchanged - 1 fixed = 1008 total (was 1007)
_ Other Tests _
-1 ❌unit122m 19sroot in the patch failed.
+1 💚asflicense1m 3sThe patch does not generate ASF License warnings.
189m 46s
ReasonTests
FindBugsmodule:phoenix-core
Found reliance on default encoding in org.apache.phoenix.coprocessor.AddColumnMutator.validateAndAddMetadata(PTable, byte[][], List, Region, List, List, long, long, boolean):in org.apache.phoenix.coprocessor.AddColumnMutator.validateAndAddMetadata(PTable, byte[][], List, Region, List, List, long, long, boolean): new String(byte[]) At AddColumnMutator.java:[line 341]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 331]
FindBugsmodule:root
Found reliance on default encoding in org.apache.phoenix.coprocessor.AddColumnMutator.validateAndAddMetadata(PTable, byte[][], List, Region, List, List, long, long, boolean):in org.apache.phoenix.coprocessor.AddColumnMutator.validateAndAddMetadata(PTable, byte[][], List, Region, List, List, long, long, boolean): new String(byte[]) At AddColumnMutator.java:[line 341]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 331]
Failed junit testsphoenix.end2end.index.LocalMutableTxIndexIT
phoenix.end2end.OrphanViewToolIT
phoenix.end2end.UpsertSelectIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux 5c9c5c9e0156 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 / ac0538b
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-935/4/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/4/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/4/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/4/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/4/testReport/
Max. process+thread count7059 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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 🆗reexec0m 38sDocker 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 1 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 35sMaven dependency ordering for branch
+1 💚mvninstall12m 44s4.x passed
+1 💚compile1m 39s4.x passed
+1 💚checkstyle8m 8s4.x passed
+1 💚javadoc2m 11s4.x passed
+0 🆗spotbugs5m 44sroot in 4.x has 1007 extant spotbugs warnings.
+0 🆗spotbugs3m 47sphoenix-core in 4.x has 953 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 20sMaven dependency ordering for patch
+1 💚mvninstall7m 36sthe patch passed
+1 💚compile1m 56sthe patch passed
+1 💚cc1m 56sthe patch passed
+1 💚javac1m 56sthe patch passed
-1 ❌checkstyle8m 18sroot: The patch generated 261 new + 22473 unchanged - 125 fixed = 22734 total (was 22598)
+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 ❌javadoc1m 4sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 29sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs4m 5sphoenix-core generated 1 new + 952 unchanged - 1 fixed = 953 total (was 953)
-1 ❌spotbugs5m 24sroot generated 1 new + 1006 unchanged - 1 fixed = 1007 total (was 1007)
_ Other Tests _
-1 ❌unit136m 55sroot in the patch failed.
+1 💚asflicense1m 11sThe patch does not generate ASF License warnings.
207m 19s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 331]
FindBugsmodule:root
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 331]
Failed junit testsphoenix.end2end.index.PartialIndexRebuilderIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/5/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux 276926976dc9 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 / 2aaf2e2
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-935/5/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/5/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/5/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/5/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/5/testReport/
Max. process+thread count6771 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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.

@gjacoby126

Copy link
Copy Markdown
ContributorAuthor

@ChinmaySKulkarni - I believe this takes care of all the issues we've discussed. Please let me know if there's any other issues you see.

  1. Added test for tenant views
  2. Added test to confirm that set property doesn't update ddl timestamp
  3. Server PTable doesn't replace the client PTable in the cache, only updates the ddl timestamp field in the client-side PTable. (We do still send the server table back in the result object though; made more sense to me than making a new field in the protobuf, and someone else might need to do something similar someday)
  4. Reverted the pom.xml change mistakenly added
    5.Added bootstrap code to 4.16 upgrade path to set the ddl timestamp of existing table and view header rows to PHOENIX_ROW_TIMESTAMP(). Added test for this into UpgradeIT and confirmed that BackwardCompatibilityIT still passes.
  5. Added logic to cascade DDL timestamp changes to child / descendent views with a test in AlterTableWithViewsIT to verify.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 46sDocker 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 1 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 36sMaven dependency ordering for branch
+1 💚mvninstall12m 35s4.x passed
+1 💚compile1m 49s4.x passed
+1 💚checkstyle8m 46s4.x passed
+1 💚javadoc2m 15s4.x passed
+0 🆗spotbugs5m 27sroot in 4.x has 1007 extant spotbugs warnings.
+0 🆗spotbugs3m 51sphoenix-core in 4.x has 953 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 21sMaven dependency ordering for patch
+1 💚mvninstall7m 52sthe patch passed
+1 💚compile1m 50sthe patch passed
+1 💚cc1m 50sthe patch passed
+1 💚javac1m 50sthe patch passed
-1 ❌checkstyle8m 58sroot: The patch generated 273 new + 24127 unchanged - 127 fixed = 24400 total (was 24254)
+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 ❌javadoc0m 59sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 26sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs4m 25sphoenix-core generated 2 new + 952 unchanged - 1 fixed = 954 total (was 953)
-1 ❌spotbugs5m 42sroot generated 2 new + 1006 unchanged - 1 fixed = 1008 total (was 1007)
_ Other Tests _
-1 ❌unit131m 23sroot in the patch failed.
+1 💚asflicense1m 14sThe patch does not generate ASF License warnings.
203m 55s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 331]
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(PhoenixConnection) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:[line 2557] is not discharged
FindBugsmodule:root
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 331]
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(PhoenixConnection) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:[line 2557] is not discharged
Failed junit testsphoenix.end2end.OrphanViewToolIT
phoenix.end2end.UpgradeIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/7/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux 8c48313f922a 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 / 7cbebb4
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-935/7/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/7/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/7/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/7/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/7/testReport/
Max. process+thread count6904 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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.

@stoty

stoty commented Nov 5, 2020

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 36sDocker 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 1 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 34sMaven dependency ordering for branch
+1 💚mvninstall10m 38s4.x passed
+1 💚compile1m 21s4.x passed
+1 💚checkstyle11m 5s4.x passed
+1 💚javadoc1m 46s4.x passed
+0 🆗spotbugs4m 1sroot in 4.x has 1000 extant spotbugs warnings.
+0 🆗spotbugs2m 43sphoenix-core in 4.x has 946 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 16sMaven dependency ordering for patch
+1 💚mvninstall5m 15sthe patch passed
+1 💚compile1m 21sthe patch passed
+1 💚cc1m 21sthe patch passed
+1 💚javac1m 21sthe patch passed
-1 ❌checkstyle11m 11sroot: The patch generated 276 new + 24786 unchanged - 127 fixed = 25062 total (was 24913)
+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 ❌javadoc0m 41sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 5sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs3m 6sphoenix-core generated 2 new + 945 unchanged - 1 fixed = 947 total (was 946)
-1 ❌spotbugs4m 5sroot generated 2 new + 999 unchanged - 1 fixed = 1001 total (was 1000)
_ Other Tests _
-1 ❌unit132m 0sroot in the patch failed.
+1 💚asflicense1m 15sThe patch does not generate ASF License warnings.
196m 25s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 331]
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(PhoenixConnection) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:[line 2602] is not discharged
FindBugsmodule:root
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 331]
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(PhoenixConnection) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:[line 2602] is not discharged
Failed junit testsphoenix.end2end.index.SaltedIndexIT
phoenix.end2end.ReverseScanIT
phoenix.util.IndexScrutinyIT
phoenix.end2end.index.MutableIndexReplicationIT
phoenix.end2end.index.InvalidIndexStateClientSideIT
phoenix.end2end.index.IndexCoprocIT
phoenix.end2end.index.IndexVerificationResultRepositoryIT
phoenix.end2end.UnionAllIT
phoenix.end2end.index.IndexVerificationOutputRepositoryIT
phoenix.end2end.index.GlobalImmutableNonTxIndexIT
phoenix.end2end.SequenceIT
phoenix.end2end.DeleteIT
phoenix.end2end.index.MutableIndexSplitForwardScanIT
phoenix.end2end.index.LocalImmutableNonTxIndexIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/8/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux a365babc095a 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 / 20d2a6d
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-935/8/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/8/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/8/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/8/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/8/testReport/
Max. process+thread count6871 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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.

@gjacoby126

Copy link
Copy Markdown
ContributorAuthor

@ChinmaySKulkarni - After fixing the test failure in UpgradeIT, we got another test run. It looks like in this latest run the minicluster got into a bad state where tables couldn't be created, and this led to a bunch of failures. I've rerun them all locally and they look fine.

As far as I know, this patch should be ready to go for 4.x branch. Anything else that needs to be changed or added? Thanks!

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

@gjacoby126 thanks for addressing my previous comments. I have a few more comments after the latest changes. Overall, it looks really good.

The column add/drop inheritance to child views might be tricky given all the scenarios (diverged views, older clients, existing logic for combining parent columns given a split SYSTEM.CATALOG, nuances when phoenix.allow.system.catalog.rollback=true, etc.).
Should we leave that out in this one and handle it in a separate Jira?

Comment threadphoenix-core/src/main/java/org/apache/phoenix/util/UpgradeUtil.java Outdated
@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 33sDocker 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 1 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 31sMaven dependency ordering for branch
+1 💚mvninstall10m 32s4.x passed
+1 💚compile1m 27s4.x passed
+1 💚checkstyle11m 22s4.x passed
+1 💚javadoc1m 51s4.x passed
+0 🆗spotbugs4m 1sroot in 4.x has 1000 extant spotbugs warnings.
+0 🆗spotbugs2m 42sphoenix-core in 4.x has 946 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 15sMaven dependency ordering for patch
+1 💚mvninstall5m 21sthe patch passed
+1 💚compile1m 22sthe patch passed
+1 💚cc1m 22sthe patch passed
+1 💚javac1m 22sthe patch passed
-1 ❌checkstyle11m 29sroot: The patch generated 401 new + 25081 unchanged - 238 fixed = 25482 total (was 25319)
+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 ❌javadoc0m 43sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 4sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs3m 5sphoenix-core generated 3 new + 945 unchanged - 1 fixed = 948 total (was 946)
-1 ❌spotbugs4m 5sroot generated 3 new + 999 unchanged - 1 fixed = 1002 total (was 1000)
_ Other Tests _
-1 ❌unit1m 22sroot in the patch failed.
+1 💚asflicense0m 21sThe patch does not generate ASF License warnings.
64m 13s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:[line 2604] is not discharged
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) passes a nonconstant String to an execute or addBatch method on an SQL statement At UpgradeUtil.java:to an execute or addBatch method on an SQL statement At UpgradeUtil.java:[line 2604]
FindBugsmodule:root
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:[line 2604] is not discharged
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) passes a nonconstant String to an execute or addBatch method on an SQL statement At UpgradeUtil.java:to an execute or addBatch method on an SQL statement At UpgradeUtil.java:[line 2604]
Failed junit testsphoenix.util.PhoenixRuntimeTest
phoenix.compile.WhereCompilerTest
phoenix.compile.TenantSpecificViewIndexCompileTest
phoenix.compile.WhereOptimizerTest
phoenix.mapreduce.util.PhoenixConfigurationUtilTest
phoenix.compile.ViewCompilerTest
phoenix.compile.QueryCompilerTest
phoenix.compile.QueryOptimizerTest
phoenix.query.QueryPlanTest
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/9/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux e994088abb66 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 / 565b0ea
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-935/9/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/9/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/9/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/9/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/9/testReport/
Max. process+thread count486 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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.

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

@gjacoby126 I am not that much active in phoenix project. Tried to review to the best of my knowledge. Thank you !

long clientVersion) {
long clientVersion,
boolean isAddingColumns,
List<PTable> childViews) {

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.

Do we need to add childViews to validateAndAddMetadata method ? Maybe I am reading it wrong but I don't see childViews getting used either in AddColumnMutator#validateAndAddMetadata or DropColumnMutator#validateAndAddMetadata.

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.

Good catch, it was necessary in a prior draft but the code that used it was just removed. I'll remove the parameter.

//we don't need to update the DDL timestamp for any child views we may have, because
// when we look up a PTable for any of those child views, we'll take the max timestamp
// of the view and all its ancestors
tableMetaData.addAll(additionalTableMetaData);

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.

tableMetaData.addAll(additionalTableMetaData);
The above line won't be executed if isDroppingColumns is false. Earlier it was getting executed even if we are dropping columns.


}
tableMetaData.addAll(additionalTableMetaData);
if (isDroppingColumns) {

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.

The changes here looks exactly same as the changes in AddColumnMutator. Can we create a helper method which accepts table and additionalTableMetaData as argument ?

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.

It's not really general-purpose enough to put in a standalone Util method in MetaDataUtil, and since it's only 3 lines repeated in 2 places I figured the minor violation of DRY (Don't Repeat Yourself) wasn't worth working around, since all alternatives I could think of seemed a little ugly.

For example, I could put a static utility method in one of the mutators, but then one depends on the other which couples classes that shouldn't be...

*/
EncodedCQCounter cqCounterToBe = tableType == PTableType.VIEW ? NULL_COUNTER : cqCounter;
PTable table = new PTableImpl.Builder()
.setType(tableType)

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.

Here we are adding just 1 filed to builder method. Can we please undo the formatting changes which is making the diff look more than actual changes.

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.

Sorry for the inconvenience, but the formatting changes fix the spacing from being incorrect to correct. GitHub does have a "Hide whitespace changes" in the setting icon near the top of the page, btw, to make it easier to ignore.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know this is a very nit pick.. but for split lines the spacing rule is 8 spaces. For conditional/loop statements body I agree it is 4 spaces.

Comment threadphoenix-core/src/main/java/org/apache/phoenix/util/MetaDataUtil.java Outdated

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

Changes looks good to me. almost all are nits and mostly in test related code. Thank you @gjacoby126 !

dataTableFullName, startTS,
conn);
Thread.sleep(1);
//now add a column and make sure the timestamp updates

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is this comment carried forward from previous test and no longer relevant here ?

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 looks like this comment was missed ?

String columnAddDDL = "ALTER TABLE " + dataTableFullName + " ADD COL3 varchar(50) NULL ";
String columnDropDDL = "ALTER TABLE " + dataTableFullName + " DROP COLUMN COL3 ";
long startTS = EnvironmentEdgeManager.currentTimeMillis();
try (Connection conn = DriverManager.getConnection(getUrl(), props)) {

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.

just 1 minor nit. DriverManager has method getConnection without Properties argument. We can use that in all newly added test cases since we don't override any properties here. If it is too much change please feel free to ignore also.

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 looks like this comment was missed ?

conn.createStatement().execute(divergeDDL);
//verify DDL timestamp changed
viewDDLTimestamp = CreateTableIT.verifyLastDDLTimestamp(schemaName, viewName,
viewFullName, viewDDLTimestamp, conn);

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.

Acc to comment, shouldn't the argument for startTime be "viewDDLTimestamp + 1" since we are assuming that timestamp should change.

viewFullName, viewDDLTimestamp, conn);
conn.createStatement().execute(viewColumnAddDDL);
//verify DDL timestamp changed because we added a column to the view
viewDDLTimestamp = CreateTableIT.verifyLastDDLTimestamp(schemaName, viewName,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I understand it is strictly not required but should we sleep for 1 millisecond just to make sure that 1 ms passed between divergeDDL and viewColumnAddDDL execution and the same argument applies for other ddl statements that we execute subsequently in this test.

}

public static long verifyLastDDLTimestamp(String tenantId, String schemaName, String tableName,
String dataTableFullName, long startTS, Connection conn) throws SQLException {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't see any usage of first 3 arguments String tenantId, String schemaName, String tableName
Maybe you used them in earlier draft then removed them ?

result = mutator.validateAndAddMetadata(table, rowKeyMetaData, tableMetadata,
region, invalidateList, locks, clientTimeStamp, clientVersion);
region, invalidateList, locks, clientTimeStamp, clientVersion,
isAddingOrDroppingColumns);

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: indentation mismatch.

*/
EncodedCQCounter cqCounterToBe = tableType == PTableType.VIEW ? NULL_COUNTER : cqCounter;
PTable table = new PTableImpl.Builder()
.setType(tableType)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I know this is a very nit pick.. but for split lines the spacing rule is 8 spaces. For conditional/loop statements body I agree it is 4 spaces.

Comment threadphoenix-core/src/main/java/org/apache/phoenix/util/MetaDataUtil.java Outdated
@gjacoby126

Copy link
Copy Markdown
ContributorAuthor

@shahrs87 - I'm curious -- what is the source is for the "split lines indent 8 spaces" rule you mention? You may very well be right, but I don't see anything in dev/PhoenixCodeTemplate.xml that has a value of 8 that looks relevant, and I do see <setting> id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/</setting>

@shahrs87

Copy link
Copy Markdown
Contributor

I'm curious -- what is the source is for the "split lines indent 8 spaces" rule you mention?

Tried searching for the property name but couldn't find one. But other places in phoenix code base uses 8 spaces. Eg: https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/schema/PTableImpl.java#L883, https://github.com/apache/phoenix/blob/master/phoenix-core/src/main/java/org/apache/phoenix/schema/PTableImpl.java#L1042
Again this is a very very nit comment. please feel free to ignore also. :)

@shahrs87

shahrs87 commented Nov 13, 2020

Copy link
Copy Markdown
Contributor

I'm curious -- what is the source is for the "split lines indent 8 spaces" rule you mention?

Actually found the property. It uses this property:
<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/>
The value 2 is multiplier of tabulation size property.
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/>
Thats how it comes to 8 spaces. :)

@stoty

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 1 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 💚checkstyle11m 12s4.x passed
+1 💚javadoc1m 48s4.x passed
+0 🆗spotbugs4m 0sroot in 4.x has 1000 extant spotbugs warnings.
+0 🆗spotbugs2m 43sphoenix-core in 4.x has 946 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 15sMaven dependency ordering for patch
+1 💚mvninstall5m 16sthe patch passed
+1 💚compile1m 22sthe patch passed
+1 💚cc1m 22sthe patch passed
+1 💚javac1m 22sthe patch passed
-1 ❌checkstyle11m 24sroot: The patch generated 394 new + 25081 unchanged - 238 fixed = 25475 total (was 25319)
+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 ❌javadoc0m 43sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 8sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs3m 5sphoenix-core generated 3 new + 945 unchanged - 1 fixed = 948 total (was 946)
-1 ❌spotbugs4m 5sroot generated 3 new + 999 unchanged - 1 fixed = 1002 total (was 1000)
_ Other Tests _
-1 ❌unit130m 1sroot in the patch failed.
+1 💚asflicense1m 11sThe patch does not generate ASF License warnings.
194m 45s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:[line 2604] is not discharged
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) passes a nonconstant String to an execute or addBatch method on an SQL statement At UpgradeUtil.java:to an execute or addBatch method on an SQL statement At UpgradeUtil.java:[line 2604]
FindBugsmodule:root
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:[line 2604] is not discharged
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) passes a nonconstant String to an execute or addBatch method on an SQL statement At UpgradeUtil.java:to an execute or addBatch method on an SQL statement At UpgradeUtil.java:[line 2604]
Failed junit testsphoenix.end2end.index.IndexMetadataIT
phoenix.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-935/11/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux c47dbff0ba08 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 / 565b0ea
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-935/11/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/11/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/11/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/11/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/11/testReport/
Max. process+thread count6543 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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.

@gjacoby126

Copy link
Copy Markdown
ContributorAuthor

Reran IndexMetaDataIT and ViewMetadataIT locally and they both passed.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 36sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 31sMaven dependency ordering for branch
+1 💚mvninstall11m 38s4.x passed
+1 💚compile1m 42s4.x passed
+1 💚checkstyle9m 5s4.x passed
+1 💚javadoc1m 55s4.x passed
+0 🆗spotbugs4m 16sroot in 4.x has 1000 extant spotbugs warnings.
+0 🆗spotbugs2m 53sphoenix-core in 4.x has 946 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 15sMaven dependency ordering for patch
+1 💚mvninstall5m 18sthe patch passed
+1 💚compile1m 23sthe patch passed
+1 💚cc1m 23sthe patch passed
+1 💚javac1m 23sthe patch passed
-1 ❌checkstyle11m 30sroot: The patch generated 394 new + 25081 unchanged - 238 fixed = 25475 total (was 25319)
+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 ❌javadoc0m 41sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 4sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs3m 3sphoenix-core generated 3 new + 945 unchanged - 1 fixed = 948 total (was 946)
-1 ❌spotbugs4m 7sroot generated 3 new + 999 unchanged - 1 fixed = 1002 total (was 1000)
_ Other Tests _
-1 ❌unit131m 26sroot in the patch failed.
+1 💚asflicense1m 14sThe patch does not generate ASF License warnings.
196m 1s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:[line 2604] is not discharged
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) passes a nonconstant String to an execute or addBatch method on an SQL statement At UpgradeUtil.java:to an execute or addBatch method on an SQL statement At UpgradeUtil.java:[line 2604]
FindBugsmodule:root
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) may fail to clean up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:up java.sql.Statement Obligation to clean up resource created at UpgradeUtil.java:[line 2604] is not discharged
org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) passes a nonconstant String to an execute or addBatch method on an SQL statement At UpgradeUtil.java:to an execute or addBatch method on an SQL statement At UpgradeUtil.java:[line 2604]
Failed junit testsphoenix.end2end.index.DropColumnIT
phoenix.end2end.BackwardCompatibilityIT
phoenix.end2end.UpsertSelectIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/12/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux f1b085061fa0 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 / b97696b
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-935/12/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/12/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/12/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/12/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/12/testReport/
Max. process+thread count6281 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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.

@shahrs87

Copy link
Copy Markdown
Contributor

@gjacoby126 Are any checkstyle, javadocs, spotbugs, findbugs warnings relevant here ? I know that there is some noise but don't know whether any of them are related to patch ?

@gjacoby126

Copy link
Copy Markdown
ContributorAuthor

@shahrs87 - Of the three findbugs errors, the first is unclear to me, the second is complaining about a potential resource leak in the boostrap code (valid complaint) and the third is complaining about a potential SQL injection vulnerability (incorrect, but understandable). I've changed it to use a PreparedStatement in a try-with-resources executing a constant string.

Went through the checkstyle findings. The line lengths checks looks misconfigured (it's 80 but should be 100, and we routinely let things a little longer than 100 slide). I did go through and fix a bunch of whitespace complaints around if and for blocks, plus marking some params final, to clear out some of the noise.

@gjacoby126

Copy link
Copy Markdown
ContributorAuthor

@ChinmaySKulkarni , @shahrs87 , assuming the test runs are OK, are there any other changes you'd like, or is this ready to go? Thanks for your reviews.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 34sDocker 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 1 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 34sMaven dependency ordering for branch
+1 💚mvninstall11m 10s4.x passed
+1 💚compile1m 23s4.x passed
+1 💚checkstyle9m 39s4.x passed
+1 💚javadoc1m 51s4.x passed
+0 🆗spotbugs4m 9sroot in 4.x has 1000 extant spotbugs warnings.
+0 🆗spotbugs2m 55sphoenix-core in 4.x has 946 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 16sMaven dependency ordering for patch
+1 💚mvninstall5m 21sthe patch passed
+1 💚compile1m 25sthe patch passed
+1 💚cc1m 25sthe patch passed
+1 💚javac1m 25sthe patch passed
-1 ❌checkstyle11m 30sroot: The patch generated 395 new + 25081 unchanged - 238 fixed = 25476 total (was 25319)
+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 ❌javadoc0m 44sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 6sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs3m 9sphoenix-core generated 2 new + 945 unchanged - 1 fixed = 947 total (was 946)
-1 ❌spotbugs4m 7sroot generated 2 new + 999 unchanged - 1 fixed = 1001 total (was 1000)
_ Other Tests _
-1 ❌unit133m 43sroot in the patch failed.
+1 💚asflicense1m 16sThe patch does not generate ASF License warnings.
198m 23s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
A prepared statement is generated from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:[line 2604]
FindBugsmodule:root
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
A prepared statement is generated from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:[line 2604]
Failed junit testsphoenix.end2end.AlterTableWithViewsIT
phoenix.end2end.ExplainPlanWithStatsEnabledIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/13/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux 2d10649caf18 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 / 110f5b7
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-935/13/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/13/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/13/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/13/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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-935/13/testReport/
Max. process+thread count6653 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/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.

@gjacoby126

Copy link
Copy Markdown
ContributorAuthor

The two test failures were both timeouts and passed locally.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 31sDocker 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 1 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 31sMaven dependency ordering for branch
+1 💚mvninstall10m 29s4.x passed
+1 💚compile1m 23s4.x passed
+1 💚checkstyle11m 21s4.x passed
+1 💚javadoc1m 51s4.x passed
+0 🆗spotbugs4m 2sroot in 4.x has 1000 extant spotbugs warnings.
+0 🆗spotbugs2m 35sphoenix-core in 4.x has 946 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 15sMaven dependency ordering for patch
+1 💚mvninstall5m 18sthe patch passed
+1 💚compile1m 22sthe patch passed
+1 💚cc1m 22sthe patch passed
+1 💚javac1m 22sthe patch passed
-1 ❌checkstyle11m 31sroot: The patch generated 340 new + 25061 unchanged - 258 fixed = 25401 total (was 25319)
+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 ❌javadoc0m 42sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 4sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs3m 2sphoenix-core generated 2 new + 945 unchanged - 1 fixed = 947 total (was 946)
-1 ❌spotbugs4m 4sroot generated 2 new + 999 unchanged - 1 fixed = 1001 total (was 1000)
_ Other Tests _
-1 ❌unit135m 35sroot in the patch failed.
+1 💚asflicense1m 10sThe patch does not generate ASF License warnings.
200m 30s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
A prepared statement is generated from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:[line 2604]
FindBugsmodule:root
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
A prepared statement is generated from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:[line 2604]
Failed junit testsphoenix.end2end.PointInTimeQueryIT
phoenix.end2end.UpgradeIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/14/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool xml
unameLinux 29d23cc37380 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 / 110f5b7
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-935/14/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/14/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/14/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/14/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/14/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/14/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/14/testReport/
Max. process+thread count6458 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/14/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.

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

@gjacoby126 Looks like some minor nits in test code is yet to be addressed from my previous review. After that I am +1 (non-binding). Already approving the PR. Thank you !

String columnAddDDL = "ALTER TABLE " + dataTableFullName + " ADD COL3 varchar(50) NULL ";
String columnDropDDL = "ALTER TABLE " + dataTableFullName + " DROP COLUMN COL3 ";
long startTS = EnvironmentEdgeManager.currentTimeMillis();
try (Connection conn = DriverManager.getConnection(getUrl(), props)) {

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 looks like this comment was missed ?

dataTableFullName, startTS,
conn);
Thread.sleep(1);
//now add a column and make sure the timestamp updates

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 looks like this comment was missed ?

try (Connection tenantConn = DriverManager.getConnection(getUrl(), props)) {
tenantConn.createStatement().execute(tenantViewDDL);
}
// First, check that adding a child view didn't change the timestamps

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 looks like this comment was missed ?

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 0sDocker mode activated.
-1 ❌patch0m 5s#935 does not apply to 4.x. Rebase required? Wrong Branch? See https://yetus.apache.org/documentation/in-progress/precommit-patchnames for help.
SubsystemReport/Notes
GITHUB PR#935
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/15/console
versionsgit=2.17.1
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.

@gjacoby126 Added some more comments. Most are nits, but the more important ones are related to the handling of diverged views when a column is dropped from their ancestor. I've added more details in other comments.

Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/UpgradeIT.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/UpgradeIT.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/ViewIT.java Outdated
Comment threadphoenix-core/src/main/java/org/apache/phoenix/util/MetaDataUtil.java Outdated
// that uses encoded column qualifiers (the remote mutations are to update the
// encoded column qualifier counter on the parent table)
if (mutator.getMutateColumnType() == ColumnMutator.MutateColumnType.ADD_COLUMN
if (childViews.size() > 0 || ( mutator.getMutateColumnType() == ColumnMutator.MutateColumnType.ADD_COLUMN

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.

Shouldn't this be done even if if (!remoteMutations.isEmpty()) is false if the table/view has child views??

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.

I added the childViews.size() check when I was sending the ddl timestamp mutations remotely to the child view header rows, which I stopped doing in the last draft. That part of the if clause should just be removed right? Or was the existing logic wrong if a child view existed?

Comment threadphoenix-core/src/main/java/org/apache/phoenix/util/ViewUtil.java Outdated
@stoty

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 1 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 24sMaven dependency ordering for branch
+1 💚mvninstall10m 43s4.x passed
+1 💚compile1m 22s4.x passed
+1 💚checkstyle11m 19s4.x passed
+1 💚javadoc1m 47s4.x passed
+0 🆗spotbugs4m 0sroot in 4.x has 1000 extant spotbugs warnings.
+0 🆗spotbugs2m 40sphoenix-core in 4.x has 946 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 10sMaven dependency ordering for patch
+1 💚mvninstall5m 17sthe patch passed
+1 💚compile1m 27sthe patch passed
+1 💚cc1m 27sthe patch passed
+1 💚javac1m 27sthe patch passed
-1 ❌checkstyle11m 32sroot: The patch generated 340 new + 25058 unchanged - 258 fixed = 25398 total (was 25316)
+1 💚prototool0m 2sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
-1 ❌javadoc0m 43sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 2sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs3m 6sphoenix-core generated 2 new + 945 unchanged - 1 fixed = 947 total (was 946)
-1 ❌spotbugs4m 11sroot generated 2 new + 999 unchanged - 1 fixed = 1001 total (was 1000)
_ Other Tests _
-1 ❌unit131m 36sroot in the patch failed.
+1 💚asflicense1m 15sThe patch does not generate ASF License warnings.
196m 34s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
A prepared statement is generated from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:[line 2604]
FindBugsmodule:root
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
A prepared statement is generated from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:[line 2604]
Failed junit testsphoenix.end2end.join.HashJoinGlobalIndexIT
phoenix.end2end.index.AlterIndexIT
phoenix.end2end.index.txn.RollbackIT
phoenix.end2end.DropIndexedColsIT
phoenix.end2end.IndexToolForNonTxGlobalIndexIT
TEST-[GroupByIT_0]
phoenix.end2end.UpsertSelectIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/16/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux ae73e107ab8f 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 / cd657db
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-935/16/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/16/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/16/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/16/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/16/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/16/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/16/testReport/
Max. process+thread count6186 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/16/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 30sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 1sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 24sMaven dependency ordering for branch
+1 💚mvninstall10m 46s4.x passed
+1 💚compile1m 23s4.x passed
+1 💚checkstyle11m 16s4.x passed
+1 💚javadoc1m 49s4.x passed
+0 🆗spotbugs4m 0sroot in 4.x has 1000 extant spotbugs warnings.
+0 🆗spotbugs2m 41sphoenix-core in 4.x has 946 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 10sMaven dependency ordering for patch
+1 💚mvninstall5m 17sthe patch passed
+1 💚compile1m 23sthe patch passed
+1 💚cc1m 23sthe patch passed
+1 💚javac1m 23sthe patch passed
-1 ❌checkstyle11m 32sroot: The patch generated 301 new + 25102 unchanged - 220 fixed = 25403 total (was 25322)
+1 💚prototool0m 2sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
-1 ❌javadoc0m 43sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 4sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs3m 6sphoenix-core generated 2 new + 945 unchanged - 1 fixed = 947 total (was 946)
-1 ❌spotbugs4m 4sroot generated 2 new + 999 unchanged - 1 fixed = 1001 total (was 1000)
_ Other Tests _
-1 ❌unit132m 9sroot in the patch failed.
+1 💚asflicense1m 15sThe patch does not generate ASF License warnings.
196m 57s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
A prepared statement is generated from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:[line 2604]
FindBugsmodule:root
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 330]
A prepared statement is generated from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:[line 2604]
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/17/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 8844591b7f86 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 / 510ca96
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-935/17/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/17/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/17/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/17/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/17/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/17/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/17/testReport/
Max. process+thread count6450 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/17/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 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 1 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 26sMaven dependency ordering for branch
+1 💚mvninstall10m 42s4.x passed
+1 💚compile1m 24s4.x passed
+1 💚checkstyle10m 49s4.x passed
+1 💚javadoc1m 46s4.x passed
+0 🆗spotbugs4m 6sroot in 4.x has 1003 extant spotbugs warnings.
+0 🆗spotbugs2m 40sphoenix-core in 4.x has 949 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 11sMaven dependency ordering for patch
+1 💚mvninstall5m 25sthe patch passed
+1 💚compile1m 24sthe patch passed
+1 💚cc1m 24sthe patch passed
+1 💚javac1m 24sthe patch passed
-1 ❌checkstyle11m 22sroot: The patch generated 338 new + 25077 unchanged - 257 fixed = 25415 total (was 25334)
+1 💚prototool0m 2sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
-1 ❌javadoc0m 44sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 5sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs3m 3sphoenix-core generated 2 new + 948 unchanged - 1 fixed = 950 total (was 949)
-1 ❌spotbugs4m 6sroot generated 2 new + 1002 unchanged - 1 fixed = 1004 total (was 1003)
_ Other Tests _
-1 ❌unit151m 53sroot in the patch failed.
+1 💚asflicense1m 15sThe patch does not generate ASF License warnings.
216m 16s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 331]
A prepared statement is generated from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:[line 2604]
FindBugsmodule:root
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 331]
A prepared statement is generated from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:[line 2604]
Failed junit testsphoenix.end2end.AlterMultiTenantTableWithViewsIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/18/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux f73c56c70ae4 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 / ed7f1a6
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-935/18/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/18/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/18/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/18/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/18/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/18/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/18/testReport/
Max. process+thread count6680 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/18/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 36sDocker 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 1 new or modified test files.
_ 4.x Compile Tests _
+0 🆗mvndep0m 26sMaven dependency ordering for branch
+1 💚mvninstall12m 40s4.x passed
+1 💚compile1m 24s4.x passed
+1 💚checkstyle11m 14s4.x passed
+1 💚javadoc1m 49s4.x passed
+0 🆗spotbugs4m 5sroot in 4.x has 1003 extant spotbugs warnings.
+0 🆗spotbugs2m 43sphoenix-core in 4.x has 949 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 11sMaven dependency ordering for patch
+1 💚mvninstall5m 25sthe patch passed
+1 💚compile1m 26sthe patch passed
+1 💚cc1m 26sthe patch passed
+1 💚javac1m 26sthe patch passed
-1 ❌checkstyle11m 21sroot: The patch generated 338 new + 25077 unchanged - 257 fixed = 25415 total (was 25334)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
-1 ❌javadoc0m 46sphoenix-core generated 3 new + 97 unchanged - 3 fixed = 100 total (was 100)
-1 ❌javadoc1m 3sroot generated 3 new + 129 unchanged - 3 fixed = 132 total (was 132)
-1 ❌spotbugs3m 6sphoenix-core generated 2 new + 948 unchanged - 1 fixed = 950 total (was 949)
-1 ❌spotbugs4m 7sroot generated 2 new + 1002 unchanged - 1 fixed = 1004 total (was 1003)
_ Other Tests _
-1 ❌unit137m 6sroot in the patch failed.
+1 💚asflicense1m 17sThe patch does not generate ASF License warnings.
204m 8s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 331]
A prepared statement is generated from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:[line 2604]
FindBugsmodule:root
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.LAST_DDL_TIMESTAMP_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 331]
A prepared statement is generated from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:from a nonconstant String in org.apache.phoenix.util.UpgradeUtil.bootstrapLastDDLTimestamp(Connection) At UpgradeUtil.java:[line 2604]
Failed junit testsphoenix.end2end.IndexBuildTimestampIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/19/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#935
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 3dd6dc9b6fba 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 / ed7f1a6
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-935/19/artifact/yetus-general-check/output/diff-checkstyle-root.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/19/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/19/artifact/yetus-general-check/output/diff-javadoc-javadoc-root.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/19/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/19/artifact/yetus-general-check/output/new-spotbugs-root.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/19/artifact/yetus-general-check/output/patch-unit-root.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/19/testReport/
Max. process+thread count6417 (vs. ulimit of 30000)
modulesC: phoenix-core . U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-935/19/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.

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

Lgtm @gjacoby126. Thanks for this really useful feature!

@gjacoby126
gjacoby126 merged commit 55c41f7 into apache:4.xNov 20, 2020
@gjacoby126

Copy link
Copy Markdown
ContributorAuthor

Thanks for the reviews, @ChinmaySKulkarni and @shahrs87 ! Squashed and merged. I've opened up a PR at #977 for the master branch and will also commit there if tests are green.

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.

4 participants

@gjacoby126@stoty@shahrs87@ChinmaySKulkarni