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-6454: Add feature to SchemaTool to get the DDL in specificati… #1217

Merged
merged 1 commit into from
May 12, 2021

Conversation

swaroopak
Copy link
Contributor

…on mode

@stoty
Copy link
Contributor

stoty commented Apr 30, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 6m 40s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch 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 🆗 mvndep 5m 5s Maven dependency ordering for branch
+1 💚 mvninstall 10m 25s 4.x passed
+1 💚 compile 1m 37s 4.x passed
+1 💚 checkstyle 0m 43s 4.x passed
+1 💚 javadoc 1m 1s 4.x passed
+0 🆗 spotbugs 3m 16s phoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗 spotbugs 0m 45s phoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 12s Maven dependency ordering for patch
-1 ❌ mvninstall 6m 46s root in the patch failed.
-1 ❌ compile 0m 32s phoenix-tools in the patch failed.
-1 ❌ javac 0m 32s phoenix-tools in the patch failed.
-1 ❌ checkstyle 0m 32s phoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌ checkstyle 0m 15s phoenix-tools: The patch generated 135 new + 251 unchanged - 12 fixed = 386 total (was 263)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 1m 2s the patch passed
-1 ❌ spotbugs 0m 32s phoenix-tools in the patch failed.
_ Other Tests _
+1 💚 unit 200m 59s phoenix-core in the patch passed.
-1 ❌ unit 0m 34s phoenix-tools in the patch failed.
+1 💚 asflicense 0m 16s The patch does not generate ASF License warnings.
246m 58s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1217
JIRA Issue PHOENIX-6454
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 428ef7f92c0b 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision 4.x / 282427d
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-1217/1/artifact/yetus-general-check/output/patch-mvninstall-root.txt
compile https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/1/artifact/yetus-general-check/output/patch-compile-phoenix-tools.txt
javac https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/1/artifact/yetus-general-check/output/patch-compile-phoenix-tools.txt
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/1/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/1/artifact/yetus-general-check/output/diff-checkstyle-phoenix-tools.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/1/artifact/yetus-general-check/output/patch-spotbugs-phoenix-tools.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/1/artifact/yetus-general-check/output/patch-unit-phoenix-tools.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/1/testReport/
Max. process+thread count 5326 (vs. ulimit of 30000)
modules C: phoenix-core phoenix-tools U: .
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/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.


@Test
public void testCreateTableStatement_addColumn() throws Exception {
String expected = "CREATE TABLE IF NOT EXISTS TEST.SAMPLE_TABLE"
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: each of these would be easier to read if there was a comment saying what the difference was, such as "Adds RELATED_COMMAND" in this test

*/
package org.apache.phoenix.schema;

public class SchemaProcessor {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why a class and not an interface?

getCreateIndexStatement((CreateIndexStatement) createStatement, alterStatement);
return getCreateIndexSQL(newCreateIndexStmt);
}
return "";
Copy link
Contributor

Choose a reason for hiding this comment

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

What about CreateSequenceStatement and CreateFunctionStatement? And if none of the above, shouldn't we get an error of some kind?

Copy link
Contributor

Choose a reason for hiding this comment

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

@swaroopak, This is a great start. As @gjacoby126 pointed out, there are more cases to cover. I think we need a design doc on this to explain how the design covers all the cases and explain how this tool will be used. I also think we can add add a future to Phoenix to self verify/test DDL statements. The place to add such a feature would be MetaDataClient. After every DDL, we can verify if DDL is correctly implemented by Phoenix.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you @kadirozde.
I started the doc per your suggestion. Meanwhile, do you think if this PR can be reviewed/merged for the initial scenarios (would be easier on reviews and incremental addition of code)? Or do you recommend not to merge until all of that is implemented? Please let me know.

Copy link
Contributor

Choose a reason for hiding this comment

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

As far as I understand, this PR significantly refactors an existing tool. However, it does not cover some use cases. If so, refactoring should not reduce the functionality. So, I suggest a quick design review and a complete refactoring.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This PR adds a new feature in SchemaTool with SYNTH mode. I added the design doc in the Jira with the current implementation and future extensions.
As per offline discussions, I'll change the input format from 2 files to 1 file. Thanks, @kadirozde

return newCreateIndexStmt;
}

private CreateTableStatement getCreateTableStatement(DropColumnStatement alterStatement,
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: up to now we've been doing parameters as Create, Alter, and this switches to Alter, Create. Good to be consistent.

finalProps =
ArrayListMultimap.<String, Pair<String, Object>>create();
for (Map.Entry<String, Object> entry : oldPropMap.entrySet()) {
finalProps.put("", Pair.newPair(entry.getKey(), entry.getValue()));
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the purpose of a hard-coded ["" -> [key -> value]] instead of just [key -> value]? Can't be duplicates, because oldPropMap was already a multi-map, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Property multimap is formed with String and Pair as a key-value. Key for all properties pair is same "" but the value(pair of property key, value) is different. I had to stick to this to create a new CreateTableStatement. Not sure if I misunderstood your suggestion. LMK.

return finalProps;
}

private String getCreateTableSQL(CreateTableStatement createStmt) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Good to extract these SQL-building helper functions into their own utility class that can be composed / injected. (For one thing, we're probably going to be adding the ability to output Statements to Avro schemas instead of SQL really soon now over at PHOENIX-6227)

@stoty
Copy link
Contributor

stoty commented May 4, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 4m 24s 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 _
+0 🆗 mvndep 5m 8s Maven dependency ordering for branch
+1 💚 mvninstall 9m 40s 4.x passed
+1 💚 compile 1m 38s 4.x passed
+1 💚 checkstyle 0m 49s 4.x passed
+1 💚 javadoc 1m 4s 4.x passed
+0 🆗 spotbugs 3m 18s phoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗 spotbugs 0m 49s phoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 14s Maven dependency ordering for patch
+1 💚 mvninstall 5m 53s the patch passed
+1 💚 compile 1m 45s the patch passed
+1 💚 javac 1m 45s the patch passed
-1 ❌ checkstyle 0m 31s phoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌ checkstyle 0m 17s phoenix-tools: The patch generated 135 new + 251 unchanged - 12 fixed = 386 total (was 263)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 1m 0s the patch passed
-1 ❌ spotbugs 0m 59s phoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
+1 💚 unit 137m 18s phoenix-core in the patch passed.
-1 ❌ unit 3m 30s phoenix-tools in the patch failed.
+1 💚 asflicense 0m 19s The patch does not generate ASF License warnings.
183m 6s
Reason Tests
FindBugs module:phoenix-tools
Found reliance on default encoding in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String):in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String): new java.io.FileReader(File) At SchemaSynthesisProcessor.java:[line 237]
org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String) may fail to close stream At SchemaSynthesisProcessor.java:stream At SchemaSynthesisProcessor.java:[line 237]
org.apache.phoenix.schema.SchemaTool.conf should be package protected In SchemaTool.java: In SchemaTool.java
Possible null pointer dereference of cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) on exception path Dereferenced at SchemaTool.java:cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) on exception path Dereferenced at SchemaTool.java:[line 113]
Write to static field org.apache.phoenix.schema.SchemaTool.conf from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:[line 74]
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1217
JIRA Issue PHOENIX-6454
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 0058fa561ffe 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision 4.x / 21bfbad
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-1217/2/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/2/artifact/yetus-general-check/output/diff-checkstyle-phoenix-tools.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/2/artifact/yetus-general-check/output/new-spotbugs-phoenix-tools.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/2/artifact/yetus-general-check/output/patch-unit-phoenix-tools.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/2/testReport/
Max. process+thread count 6127 (vs. ulimit of 30000)
modules C: phoenix-core phoenix-tools U: .
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/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.

@swaroopak swaroopak force-pushed the PHOENIX-6454 branch 2 times, most recently from ee2a953 to d046736 Compare May 5, 2021 00:08
@stoty
Copy link
Contributor

stoty commented May 5, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 9s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch 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 🆗 mvndep 5m 20s Maven dependency ordering for branch
+1 💚 mvninstall 10m 34s 4.x passed
+1 💚 compile 1m 40s 4.x passed
+1 💚 checkstyle 0m 44s 4.x passed
+1 💚 javadoc 1m 3s 4.x passed
+0 🆗 spotbugs 3m 18s phoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗 spotbugs 0m 46s phoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 12s Maven dependency ordering for patch
+1 💚 mvninstall 6m 51s the patch passed
+1 💚 compile 1m 39s the patch passed
+1 💚 javac 1m 39s the patch passed
-1 ❌ checkstyle 0m 32s phoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌ checkstyle 0m 15s phoenix-tools: The patch generated 142 new + 249 unchanged - 14 fixed = 391 total (was 263)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 1m 0s the patch passed
-1 ❌ spotbugs 1m 0s phoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
+1 💚 unit 198m 41s phoenix-core in the patch passed.
-1 ❌ unit 3m 57s phoenix-tools in the patch failed.
-1 ❌ asflicense 0m 17s The patch generated 1 ASF License warnings.
243m 43s
Reason Tests
FindBugs module:phoenix-tools
Found reliance on default encoding in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String):in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String): new java.io.FileReader(File) At SchemaSynthesisProcessor.java:[line 181]
org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String) may fail to close stream At SchemaSynthesisProcessor.java:stream At SchemaSynthesisProcessor.java:[line 181]
org.apache.phoenix.schema.SchemaTool.conf should be package protected In SchemaTool.java: In SchemaTool.java
Possible null pointer dereference of cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:[line 116]
Write to static field org.apache.phoenix.schema.SchemaTool.conf from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:[line 74]
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1217
JIRA Issue PHOENIX-6454
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux b02a739124a2 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision 4.x / 21bfbad
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-1217/3/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/3/artifact/yetus-general-check/output/diff-checkstyle-phoenix-tools.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/3/artifact/yetus-general-check/output/new-spotbugs-phoenix-tools.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/3/artifact/yetus-general-check/output/patch-unit-phoenix-tools.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/3/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/3/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 5168 (vs. ulimit of 30000)
modules C: phoenix-core phoenix-tools U: .
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/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.

@stoty
Copy link
Contributor

stoty commented May 5, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 13s 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 _
+0 🆗 mvndep 5m 11s Maven dependency ordering for branch
+1 💚 mvninstall 11m 14s 4.x passed
+1 💚 compile 1m 39s 4.x passed
+1 💚 checkstyle 0m 44s 4.x passed
+1 💚 javadoc 1m 4s 4.x passed
+0 🆗 spotbugs 3m 19s phoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗 spotbugs 0m 46s phoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 12s Maven dependency ordering for patch
+1 💚 mvninstall 6m 48s the patch passed
+1 💚 compile 1m 38s the patch passed
+1 💚 javac 1m 38s the patch passed
-1 ❌ checkstyle 0m 32s phoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌ checkstyle 0m 14s phoenix-tools: The patch generated 170 new + 221 unchanged - 42 fixed = 391 total (was 263)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 1m 0s the patch passed
-1 ❌ spotbugs 1m 2s phoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
-1 ❌ unit 198m 40s phoenix-core in the patch failed.
-1 ❌ unit 4m 27s phoenix-tools in the patch failed.
-1 ❌ asflicense 1m 10s The patch generated 1 ASF License warnings.
247m 21s
Reason Tests
FindBugs module:phoenix-tools
Found reliance on default encoding in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String):in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String): new java.io.FileReader(File) At SchemaSynthesisProcessor.java:[line 181]
org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String) may fail to close stream At SchemaSynthesisProcessor.java:stream At SchemaSynthesisProcessor.java:[line 181]
org.apache.phoenix.schema.SchemaTool.conf should be package protected In SchemaTool.java: In SchemaTool.java
Possible null pointer dereference of cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:[line 116]
Write to static field org.apache.phoenix.schema.SchemaTool.conf from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:[line 74]
Failed junit tests phoenix.end2end.AuditLoggingIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1217
JIRA Issue PHOENIX-6454
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 6283f58336e6 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision 4.x / 21bfbad
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-1217/4/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/4/artifact/yetus-general-check/output/diff-checkstyle-phoenix-tools.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/4/artifact/yetus-general-check/output/new-spotbugs-phoenix-tools.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/4/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/4/artifact/yetus-general-check/output/patch-unit-phoenix-tools.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/4/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/4/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 5244 (vs. ulimit of 30000)
modules C: phoenix-core phoenix-tools U: .
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/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.

@swaroopak swaroopak force-pushed the PHOENIX-6454 branch 2 times, most recently from 4a11cfc to 090d37e Compare May 5, 2021 17:21
@stoty
Copy link
Contributor

stoty commented May 5, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 17s 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 _
+0 🆗 mvndep 5m 33s Maven dependency ordering for branch
+1 💚 mvninstall 11m 41s 4.x passed
+1 💚 compile 2m 3s 4.x passed
+1 💚 checkstyle 0m 58s 4.x passed
+1 💚 javadoc 1m 26s 4.x passed
+0 🆗 spotbugs 4m 2s phoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗 spotbugs 0m 53s phoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 12s Maven dependency ordering for patch
+1 💚 mvninstall 7m 54s the patch passed
+1 💚 compile 1m 52s the patch passed
+1 💚 javac 1m 52s the patch passed
-1 ❌ checkstyle 0m 35s phoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌ checkstyle 0m 16s phoenix-tools: The patch generated 170 new + 249 unchanged - 14 fixed = 419 total (was 263)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 1m 20s the patch passed
-1 ❌ spotbugs 1m 13s phoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
+1 💚 unit 221m 23s phoenix-core in the patch passed.
-1 ❌ unit 4m 11s phoenix-tools in the patch failed.
-1 ❌ asflicense 0m 17s The patch generated 1 ASF License warnings.
273m 4s
Reason Tests
FindBugs module:phoenix-tools
Found reliance on default encoding in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String):in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String): new java.io.FileReader(File) At SchemaSynthesisProcessor.java:[line 181]
org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String) may fail to close stream At SchemaSynthesisProcessor.java:stream At SchemaSynthesisProcessor.java:[line 181]
org.apache.phoenix.schema.SchemaTool.conf should be package protected In SchemaTool.java: In SchemaTool.java
Possible null pointer dereference of cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:[line 116]
Write to static field org.apache.phoenix.schema.SchemaTool.conf from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:[line 74]
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/5/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1217
JIRA Issue PHOENIX-6454
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux b98ee7ef782b 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision 4.x / 21bfbad
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-1217/5/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/5/artifact/yetus-general-check/output/diff-checkstyle-phoenix-tools.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/5/artifact/yetus-general-check/output/new-spotbugs-phoenix-tools.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/5/artifact/yetus-general-check/output/patch-unit-phoenix-tools.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/5/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/5/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 5098 (vs. ulimit of 30000)
modules C: phoenix-core phoenix-tools U: .
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/5/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 May 6, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 11s 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 _
+0 🆗 mvndep 5m 15s Maven dependency ordering for branch
+1 💚 mvninstall 10m 11s 4.x passed
+1 💚 compile 1m 41s 4.x passed
+1 💚 checkstyle 0m 44s 4.x passed
+1 💚 javadoc 1m 2s 4.x passed
+0 🆗 spotbugs 3m 18s phoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗 spotbugs 0m 46s phoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 12s Maven dependency ordering for patch
+1 💚 mvninstall 7m 0s the patch passed
+1 💚 compile 1m 43s the patch passed
+1 💚 javac 1m 43s the patch passed
-1 ❌ checkstyle 0m 32s phoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌ checkstyle 0m 15s phoenix-tools: The patch generated 198 new + 221 unchanged - 42 fixed = 419 total (was 263)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 1m 2s the patch passed
-1 ❌ spotbugs 1m 2s phoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
-1 ❌ unit 206m 47s phoenix-core in the patch failed.
-1 ❌ unit 5m 24s phoenix-tools in the patch failed.
-1 ❌ asflicense 1m 21s The patch generated 1 ASF License warnings.
255m 41s
Reason Tests
FindBugs module:phoenix-tools
Found reliance on default encoding in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String):in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String): new java.io.FileReader(File) At SchemaSynthesisProcessor.java:[line 181]
org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String) may fail to close stream At SchemaSynthesisProcessor.java:stream At SchemaSynthesisProcessor.java:[line 181]
org.apache.phoenix.schema.SchemaTool.conf should be package protected In SchemaTool.java: In SchemaTool.java
Possible null pointer dereference of cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:[line 116]
Write to static field org.apache.phoenix.schema.SchemaTool.conf from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:[line 74]
Failed junit tests phoenix.end2end.AuditLoggingIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/6/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1217
JIRA Issue PHOENIX-6454
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux ffbc5af1a617 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision 4.x / 21bfbad
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-1217/6/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/6/artifact/yetus-general-check/output/diff-checkstyle-phoenix-tools.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/6/artifact/yetus-general-check/output/new-spotbugs-phoenix-tools.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/6/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/6/artifact/yetus-general-check/output/patch-unit-phoenix-tools.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/6/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/6/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 4942 (vs. ulimit of 30000)
modules C: phoenix-core phoenix-tools U: .
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/6/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.

@swaroopak swaroopak force-pushed the PHOENIX-6454 branch 2 times, most recently from d5c93bd to d6a924b Compare May 7, 2021 23:24
@swaroopak swaroopak requested a review from gjacoby126 May 7, 2021 23:27
@swaroopak
Copy link
Contributor Author

@gjacoby126 @kadirozde thank you for the review. I updated the PR please take a look. Thanks.

@stoty
Copy link
Contributor

stoty commented May 8, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 6m 46s 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 _
+0 🆗 mvndep 5m 8s Maven dependency ordering for branch
+1 💚 mvninstall 10m 18s 4.x passed
+1 💚 compile 1m 42s 4.x passed
+1 💚 checkstyle 0m 44s 4.x passed
+1 💚 javadoc 1m 1s 4.x passed
+0 🆗 spotbugs 3m 16s phoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗 spotbugs 0m 47s phoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 12s Maven dependency ordering for patch
+1 💚 mvninstall 6m 49s the patch passed
+1 💚 compile 1m 38s the patch passed
+1 💚 javac 1m 38s the patch passed
-1 ❌ checkstyle 0m 32s phoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌ checkstyle 0m 15s phoenix-tools: The patch generated 165 new + 249 unchanged - 14 fixed = 414 total (was 263)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 1m 3s the patch passed
-1 ❌ spotbugs 1m 1s phoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
-1 ❌ unit 202m 1s phoenix-core in the patch failed.
-1 ❌ unit 4m 39s phoenix-tools in the patch failed.
-1 ❌ asflicense 1m 10s The patch generated 1 ASF License warnings.
255m 31s
Reason Tests
FindBugs module:phoenix-tools
Found reliance on default encoding in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String):in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String): new java.io.FileReader(File) At SchemaSynthesisProcessor.java:[line 186]
org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String) may fail to close stream At SchemaSynthesisProcessor.java:stream At SchemaSynthesisProcessor.java:[line 186]
org.apache.phoenix.schema.SchemaTool.conf should be package protected In SchemaTool.java: In SchemaTool.java
Possible null pointer dereference of cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:[line 114]
Write to static field org.apache.phoenix.schema.SchemaTool.conf from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:[line 73]
Failed junit tests phoenix.end2end.join.HashJoinNoIndexIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/7/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1217
JIRA Issue PHOENIX-6454
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux aee25cdca3fb 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision 4.x / ddc3996
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-1217/7/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/7/artifact/yetus-general-check/output/diff-checkstyle-phoenix-tools.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/7/artifact/yetus-general-check/output/new-spotbugs-phoenix-tools.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/7/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/7/artifact/yetus-general-check/output/patch-unit-phoenix-tools.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/7/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/7/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 5273 (vs. ulimit of 30000)
modules C: phoenix-core phoenix-tools U: .
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/7/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 May 8, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 10s 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 _
+0 🆗 mvndep 5m 19s Maven dependency ordering for branch
+1 💚 mvninstall 10m 42s 4.x passed
+1 💚 compile 1m 41s 4.x passed
+1 💚 checkstyle 0m 44s 4.x passed
+1 💚 javadoc 1m 3s 4.x passed
+0 🆗 spotbugs 3m 18s phoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗 spotbugs 0m 45s phoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 12s Maven dependency ordering for patch
+1 💚 mvninstall 6m 53s the patch passed
+1 💚 compile 1m 42s the patch passed
+1 💚 javac 1m 42s the patch passed
-1 ❌ checkstyle 0m 32s phoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌ checkstyle 0m 15s phoenix-tools: The patch generated 168 new + 249 unchanged - 14 fixed = 417 total (was 263)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 1m 4s the patch passed
-1 ❌ spotbugs 1m 0s phoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
+1 💚 unit 195m 32s phoenix-core in the patch passed.
-1 ❌ unit 3m 37s phoenix-tools in the patch failed.
-1 ❌ asflicense 0m 17s The patch generated 1 ASF License warnings.
240m 29s
Reason Tests
FindBugs module:phoenix-tools
Found reliance on default encoding in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String):in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String): new java.io.FileReader(File) At SchemaSynthesisProcessor.java:[line 193]
org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String) may fail to close stream At SchemaSynthesisProcessor.java:stream At SchemaSynthesisProcessor.java:[line 193]
org.apache.phoenix.schema.SchemaTool.conf should be package protected In SchemaTool.java: In SchemaTool.java
Possible null pointer dereference of cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:[line 114]
Write to static field org.apache.phoenix.schema.SchemaTool.conf from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:[line 73]
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/8/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1217
JIRA Issue PHOENIX-6454
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux e5e709a87228 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision 4.x / ddc3996
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-1217/8/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/8/artifact/yetus-general-check/output/diff-checkstyle-phoenix-tools.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/8/artifact/yetus-general-check/output/new-spotbugs-phoenix-tools.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/8/artifact/yetus-general-check/output/patch-unit-phoenix-tools.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/8/testReport/
asflicense https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/8/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count 5313 (vs. ulimit of 30000)
modules C: phoenix-core phoenix-tools U: .
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/8/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.

@gjacoby126
Copy link
Contributor

@swaroopak - phoenix-tools unit tests are failing because of test coverage:
[WARNING] Rule violated for bundle phoenix-tools: instructions covered ratio is 0.610, but expected minimum is 0.700
[WARNING] Rule violated for bundle phoenix-tools: branches covered ratio is 0.535, but expected minimum is 0.600

and there's an ASF license warning for SchemaSQLUtil.java

@@ -0,0 +1,151 @@
package org.apache.phoenix.schema;
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing Apache license

.append("\nCONSTRAINT "+createStmt.getPrimaryKeyConstraint().getName()+" PRIMARY KEY")
.append(" ("+createStmt.getPrimaryKeyConstraint().toString()+"))"
.replaceAll(",", ",\n"));
if(createStmt.getTableType().equals(PTableType.VIEW)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: space between if and (

import java.util.List;
import java.util.Map;

public class SchemaSQLUtil {
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this utility class belong in tools? (that is, is it only useful to a particular tool or tools?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know where else it would be used at this time. Would be happy to move it else where as need arises.

@swaroopak
Copy link
Contributor Author

@gjacoby126 updated. Also, checked locally that the new IT class has 98% coverage of the class.

Copy link
Contributor

@kadirozde kadirozde left a comment

Choose a reason for hiding this comment

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

Looks good to me. Please open one or more Jira (if you have not done yet) to cover the remaining DDL statements.

@swaroopak swaroopak requested a review from gjacoby126 May 12, 2021 18:47
@stoty
Copy link
Contributor

stoty commented May 12, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 18s 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 _
+0 🆗 mvndep 5m 24s Maven dependency ordering for branch
+1 💚 mvninstall 10m 40s 4.x passed
+1 💚 compile 1m 46s 4.x passed
+1 💚 checkstyle 0m 45s 4.x passed
+1 💚 javadoc 1m 5s 4.x passed
+0 🆗 spotbugs 3m 27s phoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗 spotbugs 0m 50s phoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗 mvndep 0m 13s Maven dependency ordering for patch
+1 💚 mvninstall 7m 1s the patch passed
+1 💚 compile 1m 48s the patch passed
+1 💚 javac 1m 48s the patch passed
-1 ❌ checkstyle 0m 32s phoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌ checkstyle 0m 15s phoenix-tools: The patch generated 158 new + 249 unchanged - 14 fixed = 407 total (was 263)
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 1m 1s the patch passed
-1 ❌ spotbugs 1m 0s phoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
+1 💚 unit 200m 13s phoenix-core in the patch passed.
-1 ❌ unit 4m 18s phoenix-tools in the patch failed.
+1 💚 asflicense 0m 16s The patch does not generate ASF License warnings.
246m 42s
Reason Tests
FindBugs module:phoenix-tools
Found reliance on default encoding in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String):in org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String): new java.io.FileReader(File) At SchemaSynthesisProcessor.java:[line 193]
org.apache.phoenix.schema.SchemaSynthesisProcessor.getQueriesFromFile(String) may fail to close stream At SchemaSynthesisProcessor.java:stream At SchemaSynthesisProcessor.java:[line 193]
org.apache.phoenix.schema.SchemaTool.conf should be package protected In SchemaTool.java: In SchemaTool.java
Possible null pointer dereference of cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:cmdLine in org.apache.phoenix.schema.SchemaTool.parseOptions(String[]) Dereferenced at SchemaTool.java:[line 114]
Write to static field org.apache.phoenix.schema.SchemaTool.conf from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:from instance method org.apache.phoenix.schema.SchemaTool.run(String[]) At SchemaTool.java:[line 73]
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/9/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1217
JIRA Issue PHOENIX-6454
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
uname Linux 8e22bf11fc56 4.15.0-136-generic #140-Ubuntu SMP Thu Jan 28 05:20:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev/phoenix-personality.sh
git revision 4.x / 6ac64c4
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-1217/9/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/9/artifact/yetus-general-check/output/diff-checkstyle-phoenix-tools.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/9/artifact/yetus-general-check/output/new-spotbugs-phoenix-tools.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/9/artifact/yetus-general-check/output/patch-unit-phoenix-tools.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/9/testReport/
Max. process+thread count 5233 (vs. ulimit of 30000)
modules C: phoenix-core phoenix-tools U: .
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/9/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@gjacoby126 gjacoby126 left a comment

Choose a reason for hiding this comment

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

+1, thanks for the changes, @swaroopak

@swaroopak swaroopak merged commit 5159f6e into apache:4.x May 12, 2021
swaroopak added a commit to swaroopak/phoenix that referenced this pull request May 13, 2021
…on mode (apache#1217)

Co-authored-by: Swaroopa Kadam <s.kadam@apache.org>
swaroopak added a commit to swaroopak/phoenix that referenced this pull request May 13, 2021
…on mode (apache#1217)

Co-authored-by: Swaroopa Kadam <s.kadam@apache.org>
swaroopak added a commit that referenced this pull request May 21, 2021
…on mode (#1217)

Co-authored-by: Swaroopa Kadam <s.kadam@apache.org>
richardantal pushed a commit to richardantal/phoenix-1 that referenced this pull request Jul 22, 2021
…on mode (apache#1217)

Co-authored-by: Swaroopa Kadam <s.kadam@apache.org>
richardantal pushed a commit that referenced this pull request Jul 29, 2021
…on mode (#1217)

Co-authored-by: Swaroopa Kadam <s.kadam@apache.org>
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