Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from

Conversation

yanxinyi
Copy link
Contributor

@yanxinyi yanxinyi commented Oct 3, 2020

… a 4.16 upgrade script

@stoty
Copy link
Contributor

stoty commented Oct 3, 2020

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 32s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch 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 💚 mvninstall 9m 5s 4.x passed
+1 💚 compile 1m 1s 4.x passed
+1 💚 checkstyle 1m 50s 4.x passed
+1 💚 javadoc 0m 46s 4.x passed
+0 🆗 spotbugs 3m 25s phoenix-core in 4.x has 957 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 5m 6s the patch passed
+1 💚 compile 0m 59s the patch passed
+1 💚 javac 0m 59s the patch passed
-1 ❌ checkstyle 1m 56s phoenix-core: The patch generated 12 new + 3504 unchanged - 0 fixed = 3516 total (was 3504)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 45s the patch passed
-1 ❌ spotbugs 3m 28s phoenix-core generated 1 new + 957 unchanged - 0 fixed = 958 total (was 957)
_ Other Tests _
-1 ❌ unit 136m 37s phoenix-core in the patch failed.
+1 💚 asflicense 0m 38s The patch does not generate ASF License warnings.
169m 0s
Reason Tests
FindBugs module: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 tests phoenix.end2end.join.HashJoinGlobalIndexIT
phoenix.end2end.index.MutableIndexSplitReverseScanIT
phoenix.end2end.index.IndexMaintenanceIT
phoenix.end2end.BackwardCompatibilityIT
phoenix.end2end.IndexToolTimeRangeIT
phoenix.end2end.DerivedTableIT
phoenix.end2end.index.GlobalMutableNonTxIndexWithLazyPostBatchWriteIT
Subsystem Report/Notes
Docker ClientAPI=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 Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x / 3ccf9a0
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/1/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://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
unit https://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 Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/1/testReport/
Max. process+thread count 7096 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/1/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented Oct 16, 2020

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 30s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch 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 💚 mvninstall 26m 6s 4.x passed
+1 💚 compile 0m 55s 4.x passed
+1 💚 checkstyle 1m 48s 4.x passed
+1 💚 javadoc 0m 43s 4.x passed
+0 🆗 spotbugs 2m 59s phoenix-core in 4.x has 956 extant spotbugs warnings.
_ Patch Compile Tests _
-1 ❌ mvninstall 0m 52s root in the patch failed.
-1 ❌ compile 0m 43s phoenix-core in the patch failed.
-1 ❌ javac 0m 43s phoenix-core in the patch failed.
-1 ❌ checkstyle 1m 44s phoenix-core: The patch generated 26 new + 3504 unchanged - 0 fixed = 3530 total (was 3504)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
-1 ❌ javadoc 0m 45s phoenix-core generated 2 new + 98 unchanged - 2 fixed = 100 total (was 100)
-1 ❌ spotbugs 0m 42s phoenix-core in the patch failed.
_ Other Tests _
-1 ❌ unit 0m 43s phoenix-core in the patch failed.
+1 💚 asflicense 0m 9s The patch does not generate ASF License warnings.
39m 26s
Subsystem Report/Notes
Docker ClientAPI=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 Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x / 264310b
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
mvninstall https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/2/artifact/yetus-general-check/output/patch-mvninstall-root.txt
compile https://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
javac https://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
checkstyle https://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
javadoc https://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
spotbugs https://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
unit https://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 Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/2/testReport/
Max. process+thread count 94 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/2/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented Oct 16, 2020

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 5m 35s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch 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 💚 mvninstall 31m 45s 4.x passed
+1 💚 compile 1m 5s 4.x passed
+1 💚 checkstyle 1m 37s 4.x passed
+1 💚 javadoc 0m 48s 4.x passed
+0 🆗 spotbugs 3m 14s phoenix-core in 4.x has 956 extant spotbugs warnings.
_ Patch Compile Tests _
-1 ❌ mvninstall 1m 1s root in the patch failed.
-1 ❌ compile 0m 50s phoenix-core in the patch failed.
-1 ❌ javac 0m 50s phoenix-core in the patch failed.
-1 ❌ checkstyle 1m 58s phoenix-core: The patch generated 28 new + 3504 unchanged - 0 fixed = 3532 total (was 3504)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
-1 ❌ javadoc 0m 50s phoenix-core generated 2 new + 98 unchanged - 2 fixed = 100 total (was 100)
-1 ❌ spotbugs 0m 47s phoenix-core in the patch failed.
_ Other Tests _
-1 ❌ unit 0m 49s phoenix-core in the patch failed.
+1 💚 asflicense 0m 11s The patch does not generate ASF License warnings.
51m 16s
Subsystem Report/Notes
Docker ClientAPI=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 Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x / 264310b
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
mvninstall https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/3/artifact/yetus-general-check/output/patch-mvninstall-root.txt
compile https://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
javac https://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
checkstyle https://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
javadoc https://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
spotbugs https://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
unit https://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 Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/3/testReport/
Max. process+thread count 94 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/3/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

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

Copy link
Contributor

@ChinmaySKulkarni ChinmaySKulkarni left a comment

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
Contributor

stoty commented Oct 17, 2020

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 47s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch 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 💚 mvninstall 37m 17s 4.x passed
+1 💚 compile 1m 13s 4.x passed
+1 💚 checkstyle 1m 47s 4.x passed
+1 💚 javadoc 0m 57s 4.x passed
+0 🆗 spotbugs 3m 59s phoenix-core in 4.x has 956 extant spotbugs warnings.
_ Patch Compile Tests _
-1 ❌ mvninstall 1m 7s root in the patch failed.
-1 ❌ compile 0m 53s phoenix-core in the patch failed.
-1 ❌ javac 0m 53s phoenix-core in the patch failed.
-1 ❌ checkstyle 1m 51s phoenix-core: The patch generated 28 new + 3504 unchanged - 0 fixed = 3532 total (was 3504)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
-1 ❌ javadoc 0m 52s phoenix-core generated 2 new + 98 unchanged - 2 fixed = 100 total (was 100)
-1 ❌ spotbugs 0m 51s phoenix-core in the patch failed.
_ Other Tests _
-1 ❌ unit 0m 47s phoenix-core in the patch failed.
+1 💚 asflicense 0m 11s The patch does not generate ASF License warnings.
53m 30s
Subsystem Report/Notes
Docker ClientAPI=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 Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x / 2024b45
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
mvninstall https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/4/artifact/yetus-general-check/output/patch-mvninstall-root.txt
compile https://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
javac https://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
checkstyle https://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
javadoc https://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
spotbugs https://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
unit https://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 Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/4/testReport/
Max. process+thread count 95 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-908/4/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants