Skip to content

PHOENIX-6454: Add feature to SchemaTool to get the DDL in specificati… - #1217

Merged
swaroopak merged 1 commit into
apache:4.xfrom
swaroopak:PHOENIX-6454
May 12, 2021
Merged

PHOENIX-6454: Add feature to SchemaTool to get the DDL in specificati…#1217
swaroopak merged 1 commit into
apache:4.xfrom
swaroopak:PHOENIX-6454

Conversation

@swaroopak

Copy link
Copy Markdown
Contributor

…on mode

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec6m 40sDocker 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 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 🆗mvndep5m 5sMaven dependency ordering for branch
+1 💚mvninstall10m 25s4.x passed
+1 💚compile1m 37s4.x passed
+1 💚checkstyle0m 43s4.x passed
+1 💚javadoc1m 1s4.x passed
+0 🆗spotbugs3m 16sphoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗spotbugs0m 45sphoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
-1 ❌mvninstall6m 46sroot in the patch failed.
-1 ❌compile0m 32sphoenix-tools in the patch failed.
-1 ❌javac0m 32sphoenix-tools in the patch failed.
-1 ❌checkstyle0m 32sphoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌checkstyle0m 15sphoenix-tools: The patch generated 135 new + 251 unchanged - 12 fixed = 386 total (was 263)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc1m 2sthe patch passed
-1 ❌spotbugs0m 32sphoenix-tools in the patch failed.
_ Other Tests _
+1 💚unit200m 59sphoenix-core in the patch passed.
-1 ❌unit0m 34sphoenix-tools in the patch failed.
+1 💚asflicense0m 16sThe patch does not generate ASF License warnings.
246m 58s
SubsystemReport/Notes
DockerClientAPI=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 IssuePHOENIX-6454
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / 282427d
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-1217/1/artifact/yetus-general-check/output/patch-mvninstall-root.txt
compilehttps://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
javachttps://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
checkstylehttps://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
checkstylehttps://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
spotbugshttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/1/testReport/
Max. process+thread count5326 (vs. ulimit of 30000)
modulesC: phoenix-core phoenix-tools U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/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.


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

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: 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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

stoty commented May 4, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec4m 24sDocker 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 🆗mvndep5m 8sMaven dependency ordering for branch
+1 💚mvninstall9m 40s4.x passed
+1 💚compile1m 38s4.x passed
+1 💚checkstyle0m 49s4.x passed
+1 💚javadoc1m 4s4.x passed
+0 🆗spotbugs3m 18sphoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗spotbugs0m 49sphoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 14sMaven dependency ordering for patch
+1 💚mvninstall5m 53sthe patch passed
+1 💚compile1m 45sthe patch passed
+1 💚javac1m 45sthe patch passed
-1 ❌checkstyle0m 31sphoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌checkstyle0m 17sphoenix-tools: The patch generated 135 new + 251 unchanged - 12 fixed = 386 total (was 263)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc1m 0sthe patch passed
-1 ❌spotbugs0m 59sphoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
+1 💚unit137m 18sphoenix-core in the patch passed.
-1 ❌unit3m 30sphoenix-tools in the patch failed.
+1 💚asflicense0m 19sThe patch does not generate ASF License warnings.
183m 6s
ReasonTests
FindBugsmodule: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]
SubsystemReport/Notes
DockerClientAPI=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 IssuePHOENIX-6454
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / 21bfbad
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-1217/2/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstylehttps://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
spotbugshttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/2/testReport/
Max. process+thread count6127 (vs. ulimit of 30000)
modulesC: phoenix-core phoenix-tools U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/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.

@swaroopak
swaroopakforce-pushed the PHOENIX-6454 branch 2 times, most recently from ee2a953 to d046736CompareMay 5, 2021 00:08
@stoty

stoty commented May 5, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 9sDocker 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 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 🆗mvndep5m 20sMaven dependency ordering for branch
+1 💚mvninstall10m 34s4.x passed
+1 💚compile1m 40s4.x passed
+1 💚checkstyle0m 44s4.x passed
+1 💚javadoc1m 3s4.x passed
+0 🆗spotbugs3m 18sphoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗spotbugs0m 46sphoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
+1 💚mvninstall6m 51sthe patch passed
+1 💚compile1m 39sthe patch passed
+1 💚javac1m 39sthe patch passed
-1 ❌checkstyle0m 32sphoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌checkstyle0m 15sphoenix-tools: The patch generated 142 new + 249 unchanged - 14 fixed = 391 total (was 263)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc1m 0sthe patch passed
-1 ❌spotbugs1m 0sphoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
+1 💚unit198m 41sphoenix-core in the patch passed.
-1 ❌unit3m 57sphoenix-tools in the patch failed.
-1 ❌asflicense0m 17sThe patch generated 1 ASF License warnings.
243m 43s
ReasonTests
FindBugsmodule: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]
SubsystemReport/Notes
DockerClientAPI=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 IssuePHOENIX-6454
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / 21bfbad
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-1217/3/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstylehttps://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
spotbugshttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/3/testReport/
asflicensehttps://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 count5168 (vs. ulimit of 30000)
modulesC: phoenix-core phoenix-tools U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/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.

@stoty

stoty commented May 5, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 13sDocker 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 🆗mvndep5m 11sMaven dependency ordering for branch
+1 💚mvninstall11m 14s4.x passed
+1 💚compile1m 39s4.x passed
+1 💚checkstyle0m 44s4.x passed
+1 💚javadoc1m 4s4.x passed
+0 🆗spotbugs3m 19sphoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗spotbugs0m 46sphoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
+1 💚mvninstall6m 48sthe patch passed
+1 💚compile1m 38sthe patch passed
+1 💚javac1m 38sthe patch passed
-1 ❌checkstyle0m 32sphoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌checkstyle0m 14sphoenix-tools: The patch generated 170 new + 221 unchanged - 42 fixed = 391 total (was 263)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc1m 0sthe patch passed
-1 ❌spotbugs1m 2sphoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
-1 ❌unit198m 40sphoenix-core in the patch failed.
-1 ❌unit4m 27sphoenix-tools in the patch failed.
-1 ❌asflicense1m 10sThe patch generated 1 ASF License warnings.
247m 21s
ReasonTests
FindBugsmodule: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 testsphoenix.end2end.AuditLoggingIT
SubsystemReport/Notes
DockerClientAPI=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 IssuePHOENIX-6454
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / 21bfbad
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-1217/4/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstylehttps://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
spotbugshttps://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
unithttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/4/testReport/
asflicensehttps://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 count5244 (vs. ulimit of 30000)
modulesC: phoenix-core phoenix-tools U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/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.

@swaroopak
swaroopakforce-pushed the PHOENIX-6454 branch 2 times, most recently from 4a11cfc to 090d37eCompareMay 5, 2021 17:21
@stoty

stoty commented May 5, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 17sDocker 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 🆗mvndep5m 33sMaven dependency ordering for branch
+1 💚mvninstall11m 41s4.x passed
+1 💚compile2m 3s4.x passed
+1 💚checkstyle0m 58s4.x passed
+1 💚javadoc1m 26s4.x passed
+0 🆗spotbugs4m 2sphoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗spotbugs0m 53sphoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
+1 💚mvninstall7m 54sthe patch passed
+1 💚compile1m 52sthe patch passed
+1 💚javac1m 52sthe patch passed
-1 ❌checkstyle0m 35sphoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌checkstyle0m 16sphoenix-tools: The patch generated 170 new + 249 unchanged - 14 fixed = 419 total (was 263)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc1m 20sthe patch passed
-1 ❌spotbugs1m 13sphoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
+1 💚unit221m 23sphoenix-core in the patch passed.
-1 ❌unit4m 11sphoenix-tools in the patch failed.
-1 ❌asflicense0m 17sThe patch generated 1 ASF License warnings.
273m 4s
ReasonTests
FindBugsmodule: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]
SubsystemReport/Notes
DockerClientAPI=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 IssuePHOENIX-6454
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / 21bfbad
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-1217/5/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstylehttps://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
spotbugshttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/5/testReport/
asflicensehttps://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 count5098 (vs. ulimit of 30000)
modulesC: phoenix-core phoenix-tools U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/5/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

stoty commented May 6, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 11sDocker 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 🆗mvndep5m 15sMaven dependency ordering for branch
+1 💚mvninstall10m 11s4.x passed
+1 💚compile1m 41s4.x passed
+1 💚checkstyle0m 44s4.x passed
+1 💚javadoc1m 2s4.x passed
+0 🆗spotbugs3m 18sphoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗spotbugs0m 46sphoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
+1 💚mvninstall7m 0sthe patch passed
+1 💚compile1m 43sthe patch passed
+1 💚javac1m 43sthe patch passed
-1 ❌checkstyle0m 32sphoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌checkstyle0m 15sphoenix-tools: The patch generated 198 new + 221 unchanged - 42 fixed = 419 total (was 263)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc1m 2sthe patch passed
-1 ❌spotbugs1m 2sphoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
-1 ❌unit206m 47sphoenix-core in the patch failed.
-1 ❌unit5m 24sphoenix-tools in the patch failed.
-1 ❌asflicense1m 21sThe patch generated 1 ASF License warnings.
255m 41s
ReasonTests
FindBugsmodule: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 testsphoenix.end2end.AuditLoggingIT
SubsystemReport/Notes
DockerClientAPI=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 IssuePHOENIX-6454
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / 21bfbad
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-1217/6/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstylehttps://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
spotbugshttps://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
unithttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/6/testReport/
asflicensehttps://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 count4942 (vs. ulimit of 30000)
modulesC: phoenix-core phoenix-tools U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/6/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.

@swaroopak
swaroopakforce-pushed the PHOENIX-6454 branch 2 times, most recently from d5c93bd to d6a924bCompareMay 7, 2021 23:24
@swaroopak
swaroopak requested a review from gjacoby126May 7, 2021 23:27
@swaroopak

Copy link
Copy Markdown
ContributorAuthor

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

@stoty

stoty commented May 8, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec6m 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 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 🆗mvndep5m 8sMaven dependency ordering for branch
+1 💚mvninstall10m 18s4.x passed
+1 💚compile1m 42s4.x passed
+1 💚checkstyle0m 44s4.x passed
+1 💚javadoc1m 1s4.x passed
+0 🆗spotbugs3m 16sphoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗spotbugs0m 47sphoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
+1 💚mvninstall6m 49sthe patch passed
+1 💚compile1m 38sthe patch passed
+1 💚javac1m 38sthe patch passed
-1 ❌checkstyle0m 32sphoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌checkstyle0m 15sphoenix-tools: The patch generated 165 new + 249 unchanged - 14 fixed = 414 total (was 263)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc1m 3sthe patch passed
-1 ❌spotbugs1m 1sphoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
-1 ❌unit202m 1sphoenix-core in the patch failed.
-1 ❌unit4m 39sphoenix-tools in the patch failed.
-1 ❌asflicense1m 10sThe patch generated 1 ASF License warnings.
255m 31s
ReasonTests
FindBugsmodule: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 testsphoenix.end2end.join.HashJoinNoIndexIT
SubsystemReport/Notes
DockerClientAPI=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 IssuePHOENIX-6454
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / ddc3996
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-1217/7/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstylehttps://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
spotbugshttps://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
unithttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/7/testReport/
asflicensehttps://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 count5273 (vs. ulimit of 30000)
modulesC: phoenix-core phoenix-tools U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/7/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

stoty commented May 8, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 10sDocker 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 🆗mvndep5m 19sMaven dependency ordering for branch
+1 💚mvninstall10m 42s4.x passed
+1 💚compile1m 41s4.x passed
+1 💚checkstyle0m 44s4.x passed
+1 💚javadoc1m 3s4.x passed
+0 🆗spotbugs3m 18sphoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗spotbugs0m 45sphoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 12sMaven dependency ordering for patch
+1 💚mvninstall6m 53sthe patch passed
+1 💚compile1m 42sthe patch passed
+1 💚javac1m 42sthe patch passed
-1 ❌checkstyle0m 32sphoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌checkstyle0m 15sphoenix-tools: The patch generated 168 new + 249 unchanged - 14 fixed = 417 total (was 263)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc1m 4sthe patch passed
-1 ❌spotbugs1m 0sphoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
+1 💚unit195m 32sphoenix-core in the patch passed.
-1 ❌unit3m 37sphoenix-tools in the patch failed.
-1 ❌asflicense0m 17sThe patch generated 1 ASF License warnings.
240m 29s
ReasonTests
FindBugsmodule: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]
SubsystemReport/Notes
DockerClientAPI=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 IssuePHOENIX-6454
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / ddc3996
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-1217/8/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstylehttps://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
spotbugshttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/8/testReport/
asflicensehttps://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 count5313 (vs. ulimit of 30000)
modulesC: phoenix-core phoenix-tools U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/8/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.

@gjacoby126

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
ContributorAuthor

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
Copy Markdown
ContributorAuthor

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

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

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 gjacoby126May 12, 2021 18:47
@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 18sDocker 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 🆗mvndep5m 24sMaven dependency ordering for branch
+1 💚mvninstall10m 40s4.x passed
+1 💚compile1m 46s4.x passed
+1 💚checkstyle0m 45s4.x passed
+1 💚javadoc1m 5s4.x passed
+0 🆗spotbugs3m 27sphoenix-core in 4.x has 945 extant spotbugs warnings.
+0 🆗spotbugs0m 50sphoenix-tools in 4.x has 3 extant spotbugs warnings.
_ Patch Compile Tests _
+0 🆗mvndep0m 13sMaven dependency ordering for patch
+1 💚mvninstall7m 1sthe patch passed
+1 💚compile1m 48sthe patch passed
+1 💚javac1m 48sthe patch passed
-1 ❌checkstyle0m 32sphoenix-core: The patch generated 32 new + 212 unchanged - 3 fixed = 244 total (was 215)
-1 ❌checkstyle0m 15sphoenix-tools: The patch generated 158 new + 249 unchanged - 14 fixed = 407 total (was 263)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc1m 1sthe patch passed
-1 ❌spotbugs1m 0sphoenix-tools generated 5 new + 0 unchanged - 3 fixed = 5 total (was 3)
_ Other Tests _
+1 💚unit200m 13sphoenix-core in the patch passed.
-1 ❌unit4m 18sphoenix-tools in the patch failed.
+1 💚asflicense0m 16sThe patch does not generate ASF License warnings.
246m 42s
ReasonTests
FindBugsmodule: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]
SubsystemReport/Notes
DockerClientAPI=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 IssuePHOENIX-6454
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 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 toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x / 6ac64c4
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-1217/9/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
checkstylehttps://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
spotbugshttps://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
unithttps://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 Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/9/testReport/
Max. process+thread count5233 (vs. ulimit of 30000)
modulesC: phoenix-core phoenix-tools U: .
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1217/9/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.

@gjacoby126gjacoby126 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1, thanks for the changes, @swaroopak

@swaroopak
swaroopak merged commit 5159f6e into apache:4.xMay 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 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

@swaroopak@stoty@gjacoby126@kadirozde