Skip to content

Add more tests for PHOENIX-6247 - #1192

Closed
gokceni wants to merge 2 commits into
apache:4.x-PHOENIX-6247from
gokceni:separatePhysical2
Closed

Add more tests for PHOENIX-6247#1192
gokceni wants to merge 2 commits into
apache:4.x-PHOENIX-6247from
gokceni:separatePhysical2

Conversation

@gokceni

Copy link
Copy Markdown
Contributor

No description provided.

@stoty

stoty commented Apr 8, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec5m 36sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 0sThe patch does not contain any @author tags.
-1 ❌test4tests0m 0sThe patch 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-PHOENIX-6247 Compile Tests _
+1 💚mvninstall14m 51s4.x-PHOENIX-6247 passed
+1 💚compile1m 5s4.x-PHOENIX-6247 passed
+1 💚checkstyle1m 43s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 48s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 15sphoenix-core in 4.x-PHOENIX-6247 has 946 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall6m 51sthe patch passed
+1 💚compile1m 5sthe patch passed
+1 💚javac1m 5sthe patch passed
-1 ❌checkstyle1m 42sphoenix-core: The patch generated 20 new + 4691 unchanged - 3 fixed = 4711 total (was 4694)
-1 ❌whitespace0m 0sThe patch has 1 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚javadoc0m 47sthe patch passed
+1 💚spotbugs3m 31sthe patch passed
_ Other Tests _
+1 💚unit196m 2sphoenix-core in the patch passed.
+1 💚asflicense0m 11sThe patch does not generate ASF License warnings.
238m 25s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1192/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1192
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 8003fb7ca960 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-PHOENIX-6247 / 2279410
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-1192/1/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1192/1/artifact/yetus-general-check/output/whitespace-eol.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1192/1/testReport/
Max. process+thread count5105 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1192/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.

try (HBaseAdmin admin = conn.unwrap(PhoenixConnection.class).getQueryServices()
.getAdmin()) {

assertEquals(false, admin.tableExists(TableName.valueOf(fullTableHName)));

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.

Aren't you already doing this check in test_bothTableAndIndexHaveDifferentNames which you just called?

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.

You are right. Removing


// Drop row and check
conn.createStatement().execute("ALTER TABLE " + fullTableName + " DROP COLUMN NEW_COLUMN_1");

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 like we drop but don't check as the comment says we will? Or is the lack of an exception the only check we need here?

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.

Will update the comment. Yes lack of exception

@stoty

stoty commented Apr 9, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec2m 33sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚hbaseanti0m 0sPatch does not have any anti-patterns.
+1 💚@author0m 1sThe 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-PHOENIX-6247 Compile Tests _
+1 💚mvninstall18m 40s4.x-PHOENIX-6247 passed
+1 💚compile1m 17s4.x-PHOENIX-6247 passed
+1 💚checkstyle1m 48s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 49s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 18sphoenix-core in 4.x-PHOENIX-6247 has 946 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall6m 46sthe patch passed
+1 💚compile1m 4sthe patch passed
+1 💚javac1m 4sthe patch passed
-1 ❌checkstyle1m 43sphoenix-core: The patch generated 17 new + 4694 unchanged - 0 fixed = 4711 total (was 4694)
-1 ❌whitespace0m 0sThe patch has 1 line(s) that end in whitespace. Use git apply --whitespace=fix <<patch_file>>. Refer https://git-scm.com/docs/git-apply
+1 💚javadoc0m 47sthe patch passed
+1 💚spotbugs3m 29sthe patch passed
_ Other Tests _
+1 💚unit198m 58sphoenix-core in the patch passed.
+1 💚asflicense0m 10sThe patch does not generate ASF License warnings.
242m 21s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1192/2/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1192
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile
unameLinux 59c3c34c5b45 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-PHOENIX-6247 / 2279410
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-1192/2/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
whitespacehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1192/2/artifact/yetus-general-check/output/whitespace-eol.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1192/2/testReport/
Max. process+thread count5142 (vs. ulimit of 30000)
modulesC: phoenix-core U: phoenix-core
Console outputhttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1192/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.

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

@swaroopakswaroopak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

return table;
}

private PName getPhysicalTableName(Region region, byte[] tenantId, byte[] schema, byte[] table, long timestamp) throws IOException {

@mnpooniamnpooniaApr 14, 2021

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.

You think adding this to SchemaUtil make any sense. I see a lot of implementation of getPhysicalTableName there

@virajjasani

Copy link
Copy Markdown
Contributor

Thanks @gokceni. Is PR against master branch open?

@gokceni

Copy link
Copy Markdown
ContributorAuthor

@virajjasani I merged all of these on master and 4.x Closing

@gokcenigokceni closed this Apr 19, 2021
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.

6 participants

@gokceni@stoty@virajjasani@mnpoonia@swaroopak@gjacoby126