Skip to content

PHOENIX-6172 Updating VIEW_INDEX_ID column type and ts in Syscat with… - #908

Closed
yanxinyi wants to merge 1 commit into
apache:4.xfrom
yanxinyi:PHOENIX-6172-4.X
Closed

PHOENIX-6172 Updating VIEW_INDEX_ID column type and ts in Syscat with…#908
yanxinyi wants to merge 1 commit into
apache:4.xfrom
yanxinyi:PHOENIX-6172-4.X

Conversation

@yanxinyi

Copy link
Copy Markdown
Contributor

… a 4.16 upgrade script

@stoty

stoty commented Oct 3, 2020

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 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 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 _
+1 💚mvninstall9m 5s4.x passed
+1 💚compile1m 1s4.x passed
+1 💚checkstyle1m 50s4.x passed
+1 💚javadoc0m 46s4.x passed
+0 🆗spotbugs3m 25sphoenix-core in 4.x has 957 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall5m 6sthe patch passed
+1 💚compile0m 59sthe patch passed
+1 💚javac0m 59sthe patch passed
-1 ❌checkstyle1m 56sphoenix-core: The patch generated 12 new + 3504 unchanged - 0 fixed = 3516 total (was 3504)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 45sthe patch passed
-1 ❌spotbugs3m 28sphoenix-core generated 1 new + 957 unchanged - 0 fixed = 958 total (was 957)
_ Other Tests _
-1 ❌unit136m 37sphoenix-core in the patch failed.
+1 💚asflicense0m 38sThe patch does not generate ASF License warnings.
169m 0s
ReasonTests
FindBugsmodule:phoenix-core
Found reliance on default encoding in org.apache.phoenix.util.UpgradeUtil.updateViewIndexIdColumnDataTypeFromShortToLongIfNeeds(PhoenixConnection, HBaseAdmin):in org.apache.phoenix.util.UpgradeUtil.updateViewIndexIdColumnDataTypeFromShortToLongIfNeeds(PhoenixConnection, HBaseAdmin): String.getBytes() At UpgradeUtil.java:[line 2267]
Failed junit testsphoenix.end2end.join.HashJoinGlobalIndexIT
phoenix.end2end.index.MutableIndexSplitReverseScanIT
phoenix.end2end.index.IndexMaintenanceIT
phoenix.end2end.BackwardCompatibilityIT
phoenix.end2end.IndexToolTimeRangeIT
phoenix.end2end.DerivedTableIT
phoenix.end2end.index.GlobalMutableNonTxIndexWithLazyPostBatchWriteIT
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#908
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 8a8efb6d87f9 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 / 3ccf9a0
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-908/1/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/1/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/1/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/1/testReport/
Max. process+thread count7096 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/1/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/UpgradeIT.java Outdated
Comment threadphoenix-core/src/main/java/org/apache/phoenix/util/UpgradeUtil.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/UpgradeIT.java Outdated
Comment threadphoenix-core/src/main/java/org/apache/phoenix/util/UpgradeUtil.java Outdated
Comment threadphoenix-core/src/main/java/org/apache/phoenix/util/UpgradeUtil.java Outdated
Comment threadphoenix-core/src/main/java/org/apache/phoenix/util/UpgradeUtil.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 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 _
+1 💚mvninstall26m 6s4.x passed
+1 💚compile0m 55s4.x passed
+1 💚checkstyle1m 48s4.x passed
+1 💚javadoc0m 43s4.x passed
+0 🆗spotbugs2m 59sphoenix-core in 4.x has 956 extant spotbugs warnings.
_ Patch Compile Tests _
-1 ❌mvninstall0m 52sroot in the patch failed.
-1 ❌compile0m 43sphoenix-core in the patch failed.
-1 ❌javac0m 43sphoenix-core in the patch failed.
-1 ❌checkstyle1m 44sphoenix-core: The patch generated 26 new + 3504 unchanged - 0 fixed = 3530 total (was 3504)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
-1 ❌javadoc0m 45sphoenix-core generated 2 new + 98 unchanged - 2 fixed = 100 total (was 100)
-1 ❌spotbugs0m 42sphoenix-core in the patch failed.
_ Other Tests _
-1 ❌unit0m 43sphoenix-core in the patch failed.
+1 💚asflicense0m 9sThe patch does not generate ASF License warnings.
39m 26s
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#908
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 5007952cc97b 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 / 264310b
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
mvninstallhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/2/artifact/yetus-general-check/output/patch-mvninstall-root.txt
compilehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/2/artifact/yetus-general-check/output/patch-compile-phoenix-core.txt
javachttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/2/artifact/yetus-general-check/output/patch-compile-phoenix-core.txt
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/2/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/2/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/2/artifact/yetus-general-check/output/patch-spotbugs-phoenix-core.txt
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/2/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/2/testReport/
Max. process+thread count94 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/2/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec5m 35sDocker 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 _
+1 💚mvninstall31m 45s4.x passed
+1 💚compile1m 5s4.x passed
+1 💚checkstyle1m 37s4.x passed
+1 💚javadoc0m 48s4.x passed
+0 🆗spotbugs3m 14sphoenix-core in 4.x has 956 extant spotbugs warnings.
_ Patch Compile Tests _
-1 ❌mvninstall1m 1sroot in the patch failed.
-1 ❌compile0m 50sphoenix-core in the patch failed.
-1 ❌javac0m 50sphoenix-core in the patch failed.
-1 ❌checkstyle1m 58sphoenix-core: The patch generated 28 new + 3504 unchanged - 0 fixed = 3532 total (was 3504)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
-1 ❌javadoc0m 50sphoenix-core generated 2 new + 98 unchanged - 2 fixed = 100 total (was 100)
-1 ❌spotbugs0m 47sphoenix-core in the patch failed.
_ Other Tests _
-1 ❌unit0m 49sphoenix-core in the patch failed.
+1 💚asflicense0m 11sThe patch does not generate ASF License warnings.
51m 16s
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#908
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 215fe94dfa07 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 / 264310b
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
mvninstallhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/3/artifact/yetus-general-check/output/patch-mvninstall-root.txt
compilehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/3/artifact/yetus-general-check/output/patch-compile-phoenix-core.txt
javachttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/3/artifact/yetus-general-check/output/patch-compile-phoenix-core.txt
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/3/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/3/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/3/artifact/yetus-general-check/output/patch-spotbugs-phoenix-core.txt
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/3/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/3/testReport/
Max. process+thread count94 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/3/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

metaConnection, rowKey, tableName.getBytes());
LOGGER.info("Updated VIEW_INDEX_ID data type from SMALLINT TO BIGINT.");
} catch (Exception e) {
LOGGER.error("Updating VIEW_INDEX_ID data type failed.");

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.

Change to : LOGGER.error(" ... ", e) so we see the actual error too

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.

Or maybe that's not required since you're already catching the exception and logging it inside the updateViewIndexIdColumnDataTypeFromShortToLong() method. Can this method still throw then?

LOGGER.info("Updated VIEW_INDEX_ID data type from SMALLINT TO BIGINT.");
} catch (Exception e) {
LOGGER.error("Updating VIEW_INDEX_ID data type failed.");

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: Remove extra new line

@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 after review comments addressed

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 47sDocker 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 _
+1 💚mvninstall37m 17s4.x passed
+1 💚compile1m 13s4.x passed
+1 💚checkstyle1m 47s4.x passed
+1 💚javadoc0m 57s4.x passed
+0 🆗spotbugs3m 59sphoenix-core in 4.x has 956 extant spotbugs warnings.
_ Patch Compile Tests _
-1 ❌mvninstall1m 7sroot in the patch failed.
-1 ❌compile0m 53sphoenix-core in the patch failed.
-1 ❌javac0m 53sphoenix-core in the patch failed.
-1 ❌checkstyle1m 51sphoenix-core: The patch generated 28 new + 3504 unchanged - 0 fixed = 3532 total (was 3504)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
-1 ❌javadoc0m 52sphoenix-core generated 2 new + 98 unchanged - 2 fixed = 100 total (was 100)
-1 ❌spotbugs0m 51sphoenix-core in the patch failed.
_ Other Tests _
-1 ❌unit0m 47sphoenix-core in the patch failed.
+1 💚asflicense0m 11sThe patch does not generate ASF License warnings.
53m 30s
SubsystemReport/Notes
DockerClientAPI=1.40 ServerAPI=1.40 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#908
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 2d0bb9087ef5 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 / 2024b45
Default JavaPrivate Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
mvninstallhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/4/artifact/yetus-general-check/output/patch-mvninstall-root.txt
compilehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/4/artifact/yetus-general-check/output/patch-compile-phoenix-core.txt
javachttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/4/artifact/yetus-general-check/output/patch-compile-phoenix-core.txt
checkstylehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/4/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/4/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/4/artifact/yetus-general-check/output/patch-spotbugs-phoenix-core.txt
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/4/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/4/testReport/
Max. process+thread count95 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/4/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

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

@yanxinyi@stoty@ChinmaySKulkarni@virajjasani