Skip to content

PHOENIX-6247 Separating logical and physical table names - #1170

Closed
gokceni wants to merge 1 commit into
apache:4.x-PHOENIX-6247from
gokceni:separatePhysical
Closed

PHOENIX-6247 Separating logical and physical table names#1170
gokceni wants to merge 1 commit into
apache:4.x-PHOENIX-6247from
gokceni:separatePhysical

Conversation

@gokceni

Copy link
Copy Markdown
Contributor

No description provided.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec6m 56sDocker 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-PHOENIX-6247 Compile Tests _
+1 💚mvninstall15m 15s4.x-PHOENIX-6247 passed
+1 💚compile1m 5s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 21s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 49s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 15sphoenix-core in 4.x-PHOENIX-6247 has 944 extant spotbugs warnings.
-0 ⚠️patch3m 22sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚mvninstall6m 57sthe patch passed
+1 💚compile1m 5sthe patch passed
+1 💚cc1m 5sthe patch passed
+1 💚javac1m 5sthe patch passed
-1 ❌checkstyle4m 23sphoenix-core: The patch generated 274 new + 14431 unchanged - 167 fixed = 14705 total (was 14598)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 47sthe patch passed
-1 ❌spotbugs3m 31sphoenix-core generated 1 new + 944 unchanged - 0 fixed = 945 total (was 944)
_ Other Tests _
-1 ❌unit1m 46sphoenix-core in the patch failed.
-1 ❌asflicense0m 10sThe patch generated 1 ASF License warnings.
51m 47s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 326]
Failed junit testsphoenix.index.IndexScrutinyMapperTest
phoenix.compile.TenantSpecificViewIndexCompileTest
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux eae744c58d36 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 / e6d7d0b
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-1170/1/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/1/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/1/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/1/testReport/
asflicensehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/1/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count453 (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-1170/1/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@gokceni
gokceniforce-pushed the separatePhysical branch 2 times, most recently from 6af705e to ff6b4a1CompareMarch 19, 2021 20:51
@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 55sDocker 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 💚mvninstall16m 20s4.x-PHOENIX-6247 passed
+1 💚compile1m 13s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 56s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 56s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 32sphoenix-core in 4.x-PHOENIX-6247 has 944 extant spotbugs warnings.
-0 ⚠️patch3m 39sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚mvninstall8m 8sthe patch passed
+1 💚compile1m 17sthe patch passed
+1 💚cc1m 17sthe patch passed
+1 💚javac1m 17sthe patch passed
-1 ❌checkstyle5m 23sphoenix-core: The patch generated 206 new + 14898 unchanged - 98 fixed = 15104 total (was 14996)
+1 💚prototool0m 0sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 55sthe patch passed
-1 ❌spotbugs3m 39sphoenix-core generated 1 new + 944 unchanged - 0 fixed = 945 total (was 944)
_ Other Tests _
-1 ❌unit283m 10sphoenix-core in the patch failed.
-1 ❌asflicense0m 38sThe patch generated 1 ASF License warnings.
334m 59s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 326]
Failed junit testsTEST-[CastAndCoerceIT_6]
phoenix.end2end.TenantSpecificViewIndexIT
phoenix.end2end.index.MutableIndexSplitForwardScanIT
phoenix.end2end.DistinctPrefixFilterIT
phoenix.end2end.CostBasedDecisionIT
phoenix.end2end.IndexBuildTimestampIT
phoenix.end2end.PermissionsCacheIT
phoenix.end2end.PermissionNSEnabledIT
phoenix.end2end.index.IndexMetadataIT
phoenix.end2end.index.MutableIndexExtendedIT
TEST-[InQueryIT_6]
phoenix.end2end.index.ViewIndexIT
phoenix.end2end.index.LocalImmutableNonTxIndexIT
phoenix.schema.stats.TxStatsCollectorIT
phoenix.schema.stats.NonTxStatsCollectorIT
phoenix.end2end.index.DropColumnIT
phoenix.end2end.ParameterizedIndexUpgradeToolIT
TEST-[RangeScanIT_6]
phoenix.end2end.ExplainPlanWithStatsEnabledIT
phoenix.end2end.index.LocalMutableNonTxIndexIT
phoenix.end2end.OnDuplicateKeyIT
phoenix.schema.stats.NamespaceDisabledStatsCollectorIT
TEST-[PointInTimeScanQueryIT_13,columnEncoded=true]
phoenix.end2end.index.GlobalMutableTxIndexIT
phoenix.end2end.BackwardCompatibilityIT
phoenix.end2end.LogicalTableNameIT
phoenix.end2end.UpgradeNamespaceIT
phoenix.end2end.index.GlobalIndexOptimizationIT
phoenix.end2end.PhoenixTTLToolIT
phoenix.tx.TxCheckpointIT
phoenix.end2end.DeleteIT
TEST-[QueryIT_6]
phoenix.end2end.CreateTableIT
TEST-[GroupByIT_6]
phoenix.end2end.TenantSpecificViewIndexSaltedIT
phoenix.end2end.CsvBulkLoadToolIT
phoenix.end2end.UpsertWithSCNIT
phoenix.end2end.index.LocalIndexIT
TEST-[PointInTimeQueryIT_13,columnEncoded=true]
TEST-[CaseStatementIT_6]
TEST-[UngroupedIT_6]
phoenix.end2end.index.IndexWithTableSchemaChangeIT
phoenix.end2end.PermissionNSEnabledWithCustomAccessControllerIT
TEST-[IntArithmeticIT_6]
phoenix.end2end.UserDefinedFunctionsIT
phoenix.end2end.index.ShortViewIndexIdIT
phoenix.end2end.index.MutableIndexSplitReverseScanIT
phoenix.end2end.index.IndexUsageIT
TEST-[NullIT_13,columnEncoded=true]
TEST-[AggregateQueryIT_6]
phoenix.end2end.PropertiesInSyncIT
phoenix.rpc.UpdateCacheIT
phoenix.end2end.RegexBulkLoadToolIT
phoenix.schema.stats.NamespaceEnabledStatsCollectorIT
phoenix.end2end.SystemCatalogRollbackEnabledIT
phoenix.end2end.index.LocalMutableTxIndexIT
phoenix.end2end.DefaultColumnValueIT
phoenix.end2end.index.LocalImmutableTxIndexIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 42608faefd50 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 / e6d7d0b
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-1170/3/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/3/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/3/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/3/testReport/
asflicensehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/3/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count4536 (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-1170/3/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 12sDocker 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 💚mvninstall15m 35s4.x-PHOENIX-6247 passed
+1 💚compile1m 8s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 28s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 48s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 15sphoenix-core in 4.x-PHOENIX-6247 has 944 extant spotbugs warnings.
-0 ⚠️patch3m 22sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚mvninstall6m 50sthe patch passed
+1 💚compile1m 6sthe patch passed
+1 💚cc1m 7sthe patch passed
+1 💚javac1m 6sthe patch passed
-1 ❌checkstyle4m 30sphoenix-core: The patch generated 217 new + 14898 unchanged - 98 fixed = 15115 total (was 14996)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 47sthe patch passed
-1 ❌spotbugs3m 31sphoenix-core generated 2 new + 944 unchanged - 0 fixed = 946 total (was 944)
_ Other Tests _
-1 ❌unit233m 36sphoenix-core in the patch failed.
-1 ❌asflicense0m 37sThe patch generated 1 ASF License warnings.
280m 6s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 326]
Found reliance on default encoding in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean):in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean): String.getBytes() At ConnectionQueryServicesImpl.java:[line 2249]
Failed junit testsphoenix.end2end.RegexBulkLoadToolIT
phoenix.end2end.index.txn.RollbackIT
phoenix.end2end.DistinctPrefixFilterIT
TEST-[RangeScanIT_6]
phoenix.end2end.PermissionsCacheIT
phoenix.end2end.IndexExtendedIT
TEST-[QueryIT_6]
TEST-[IntArithmeticIT_6]
TEST-[NullIT_13,columnEncoded=true]
phoenix.end2end.PermissionNSDisabledWithCustomAccessControllerIT
phoenix.end2end.index.MutableIndexFailureIT
phoenix.util.IndexScrutinyIT
phoenix.schema.stats.NonTxStatsCollectorIT
phoenix.end2end.join.HashJoinLocalIndexIT
phoenix.end2end.IndexToolForDeleteBeforeRebuildIT
phoenix.end2end.ExplainPlanWithStatsEnabledIT
phoenix.rpc.UpdateCacheIT
phoenix.end2end.index.LocalMutableTxIndexIT
phoenix.end2end.DefaultColumnValueIT
phoenix.end2end.index.LocalIndexIT
phoenix.coprocessor.StatisticsCollectionRunTrackerIT
TEST-[GroupByIT_6]
phoenix.end2end.index.MutableIndexExtendedIT
phoenix.end2end.index.MutableIndexSplitForwardScanIT
phoenix.schema.stats.TxStatsCollectorIT
phoenix.end2end.ParameterizedIndexUpgradeToolIT
phoenix.end2end.SystemCatalogRollbackEnabledIT
phoenix.end2end.IndexToolIT
phoenix.end2end.PermissionNSEnabledWithCustomAccessControllerIT
phoenix.end2end.UserDefinedFunctionsIT
phoenix.end2end.PermissionNSDisabledIT
phoenix.end2end.IndexBuildTimestampIT
phoenix.end2end.FlappingLocalIndexIT
phoenix.end2end.index.IndexWithTableSchemaChangeIT
phoenix.end2end.index.DropColumnIT
phoenix.end2end.CsvBulkLoadToolIT
phoenix.end2end.index.LocalMutableNonTxIndexIT
phoenix.end2end.DeleteIT
phoenix.end2end.join.SubqueryIT
TEST-[AggregateQueryIT_6]
phoenix.end2end.index.MutableIndexIT
phoenix.end2end.LocalIndexSplitMergeIT
phoenix.end2end.join.SortMergeJoinLocalIndexIT
phoenix.end2end.CostBasedDecisionIT
TEST-[UngroupedIT_6]
phoenix.end2end.index.IndexUsageIT
phoenix.tx.TxCheckpointIT
phoenix.end2end.LogicalTableNameIT
phoenix.end2end.index.txn.TxWriteFailureIT
phoenix.end2end.index.LocalImmutableTxIndexIT
phoenix.end2end.index.ImmutableIndexIT
phoenix.end2end.index.ShortViewIndexIdIT
phoenix.end2end.index.MutableIndexFailureWithNamespaceIT
phoenix.end2end.IndexScrutinyToolIT
phoenix.end2end.index.IndexMaintenanceIT
phoenix.end2end.UpgradeNamespaceIT
phoenix.schema.stats.NamespaceEnabledStatsCollectorIT
TEST-[PointInTimeQueryIT_13,columnEncoded=true]
phoenix.end2end.CreateTableIT
phoenix.end2end.join.SubqueryUsingSortMergeJoinIT
phoenix.end2end.EmptyColumnIT
phoenix.end2end.ViewIT
phoenix.end2end.index.MutableIndexSplitReverseScanIT
phoenix.end2end.index.IndexMetadataIT
phoenix.end2end.PermissionNSEnabledIT
TEST-[InQueryIT_6]
phoenix.end2end.PropertiesInSyncIT
phoenix.end2end.index.txn.MutableRollbackIT
phoenix.end2end.UpsertWithSCNIT
TEST-[CastAndCoerceIT_6]
phoenix.end2end.BackwardCompatibilityIT
phoenix.schema.stats.NamespaceDisabledStatsCollectorIT
phoenix.end2end.index.LocalImmutableNonTxIndexIT
phoenix.end2end.index.GlobalIndexOptimizationIT
TEST-[PointInTimeScanQueryIT_13,columnEncoded=true]
phoenix.end2end.OnDuplicateKeyIT
TEST-[CaseStatementIT_6]
phoenix.end2end.AlterAddCascadeIndexIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux c038c6209dbc 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x-PHOENIX-6247 / e6d7d0b
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-1170/4/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/4/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/4/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/4/testReport/
asflicensehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/4/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count4611 (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-1170/4/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗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-PHOENIX-6247 Compile Tests _
+1 💚mvninstall14m 58s4.x-PHOENIX-6247 passed
+1 💚compile1m 5s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 27s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 48s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 18sphoenix-core in 4.x-PHOENIX-6247 has 944 extant spotbugs warnings.
-0 ⚠️patch3m 25sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚mvninstall6m 51sthe patch passed
+1 💚compile1m 7sthe patch passed
+1 💚cc1m 7sthe patch passed
+1 💚javac1m 7sthe patch passed
-1 ❌checkstyle4m 32sphoenix-core: The patch generated 282 new + 14838 unchanged - 158 fixed = 15120 total (was 14996)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
-1 ❌javadoc0m 47sphoenix-core generated 1 new + 92 unchanged - 0 fixed = 93 total (was 92)
-1 ❌spotbugs3m 29sphoenix-core generated 2 new + 944 unchanged - 0 fixed = 946 total (was 944)
_ Other Tests _
-1 ❌unit235m 19sphoenix-core in the patch failed.
-1 ❌asflicense0m 38sThe patch generated 1 ASF License warnings.
281m 15s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 326]
Found reliance on default encoding in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean):in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean): String.getBytes() At ConnectionQueryServicesImpl.java:[line 2249]
Failed junit testsphoenix.tx.FlappingTransactionIT
phoenix.end2end.PermissionsCacheIT
phoenix.end2end.ParameterizedIndexUpgradeToolIT
phoenix.end2end.index.GlobalImmutableTxIndexIT
phoenix.end2end.SystemCatalogRollbackEnabledIT
phoenix.end2end.PermissionNSEnabledWithCustomAccessControllerIT
phoenix.end2end.ConcurrentUpsertsWithoutIndexedColsIT
phoenix.end2end.LogicalTableNameIT
phoenix.end2end.index.LocalImmutableTxIndexIT
phoenix.tx.TransactionIT
phoenix.end2end.PermissionNSEnabledIT
phoenix.end2end.BackwardCompatibilityIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/5/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 22b707d4b7b9 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x-PHOENIX-6247 / e6d7d0b
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-1170/5/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/5/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/5/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/5/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/5/testReport/
asflicensehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/5/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count4900 (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-1170/5/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
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.

Initial comments -- reviewed about 50% so far.

assertEquals(0, exitCode);

ResultSet rs = stmt.executeQuery("SELECT * FROM " + tableName);
assertFalse(rs.next());

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.

I don't understand this check -- how can SELECT * FROM FOO return no rows but SELECT * FROM FOO WHERE return a row?

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.

The import tool is actually importing on the index table without touching the data table, that is why data table is empty but index table is not empty. I think it will make more sense if I remove --index-table param and import it on the data table and check that the data table whose physical name is changed got populated. And then to check index, change the physical index table name too and then use --index-table param.

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.

This also assume that the Phoenix query planner chooses a specific plan. Better to hint the query with /*+ NO_INDEX */ if you do not want the index to be used.

Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/LogicalTableNameIT.java Outdated
props.put(QueryServices.MUTATE_BATCH_SIZE_ATTRIB, Integer.toString(3000));
//When we run all tests together we are using global cluster(driver)
//so to make drop work we need to re register driver with DROP_METADATA_ATTRIB property
destroyDriver();

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.

Rather than doing this manually, should this be a NeedsOwnCluster test?

createIndexOnTable(conn, fullTableName, indexName);
}

SingleCellIndexIT.dumpTable(fullNewTableName);

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.

Consider using TestUtil.dumpTable. Also, do we need to output to stdout in the final version of this? Can probably be cut.

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.

Yeah, we don't need it in the end. This one is simpler to call since it just takes the string tablename. The other one requires HTableInterface.

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.

Before merging could you please remove?

Comment threadphoenix-core/src/main/java/org/apache/phoenix/util/PhoenixRuntime.java Outdated
Comment threadphoenix-core/src/main/java/org/apache/phoenix/schema/PMetaDataImpl.java Outdated

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

Initial review. Since started some time back, ignore the duplicates with Geoffrey's if any :)

Comment threadphoenix-core/src/main/java/org/apache/phoenix/util/PhoenixRuntime.java Outdated
// also use this same physical view index table. It's also much easier
// to cleanup when the physical table is dropped, as we can delete
// all global sequences leading with <prefix> + physical name.
String schemaName = getViewIndexSequenceSchemaName(physicalName, isNamespaceMapped);

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.

I think the comment above won't be relevant anymore?

Comment threadphoenix-core/src/main/java/org/apache/phoenix/schema/PTableImpl.java Outdated
SEPARATOR_BYTE_ARRAY, Bytes.toBytes(familyName));
}

public static PName getTableName(PName schemaName, PName tableName) {

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: getTablePName?

Comment threadphoenix-core/src/main/java/org/apache/phoenix/schema/PMetaDataImpl.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/LogicalTableNameIT.java Outdated
@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 24sDocker 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 appears to include 2 new or modified test files.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚mvninstall15m 17s4.x-PHOENIX-6247 passed
+1 💚compile1m 5s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 43s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 47s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 16sphoenix-core in 4.x-PHOENIX-6247 has 944 extant spotbugs warnings.
-0 ⚠️patch3m 23sUsed diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚mvninstall6m 49sthe patch passed
+1 💚compile1m 7sthe patch passed
+1 💚cc1m 7sthe patch passed
+1 💚javac1m 7sthe patch passed
-1 ❌checkstyle4m 44sphoenix-core: The patch generated 219 new + 15727 unchanged - 177 fixed = 15946 total (was 15904)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
-1 ❌javadoc0m 48sphoenix-core generated 1 new + 92 unchanged - 0 fixed = 93 total (was 92)
-1 ❌spotbugs3m 44sphoenix-core generated 2 new + 943 unchanged - 1 fixed = 945 total (was 944)
_ Other Tests _
-1 ❌unit267m 55sphoenix-core in the patch failed.
-1 ❌asflicense0m 39sThe patch generated 1 ASF License warnings.
315m 7s
ReasonTests
FindBugsmodule:phoenix-core
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 326]
Found reliance on default encoding in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean):in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean): String.getBytes() At ConnectionQueryServicesImpl.java:[line 2249]
Failed junit testsphoenix.end2end.index.txn.RollbackIT
phoenix.end2end.PermissionsCacheIT
phoenix.end2end.index.ImmutableIndexExtendedIT
phoenix.end2end.ParameterizedIndexUpgradeToolIT
phoenix.end2end.SystemCatalogRollbackEnabledIT
phoenix.end2end.PermissionNSEnabledWithCustomAccessControllerIT
phoenix.end2end.LogicalTableNameIT
phoenix.end2end.PermissionNSEnabledIT
phoenix.end2end.BackwardCompatibilityIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/6/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 360c98be0118 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x-PHOENIX-6247 / e6d7d0b
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-1170/6/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
javadochttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/6/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/6/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/6/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/6/testReport/
asflicensehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/6/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count5073 (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-1170/6/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 12sDocker 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-PHOENIX-6247 Compile Tests _
+1 💚mvninstall15m 16s4.x-PHOENIX-6247 passed
+1 💚compile1m 5s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 9s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 49s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 18sphoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall6m 46sthe patch passed
+1 💚compile1m 5sthe patch passed
+1 💚cc1m 5sthe patch passed
+1 💚javac1m 5sthe patch passed
-1 ❌checkstyle4m 13sphoenix-core: The patch generated 201 new + 13820 unchanged - 85 fixed = 14021 total (was 13905)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 48sthe patch passed
-1 ❌spotbugs3m 37sphoenix-core generated 3 new + 941 unchanged - 0 fixed = 944 total (was 941)
_ Other Tests _
-1 ❌unit199m 2sphoenix-core in the patch failed.
-1 ❌asflicense0m 37sThe patch generated 1 ASF License warnings.
244m 46s
ReasonTests
FindBugsmodule:phoenix-core
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int): String.getBytes() At MetaDataEndpointImpl.java:[line 1237]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 326]
Found reliance on default encoding in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean):in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean): String.getBytes() At ConnectionQueryServicesImpl.java:[line 2249]
Failed junit testsphoenix.end2end.PermissionsCacheIT
phoenix.end2end.PermissionNSEnabledWithCustomAccessControllerIT
phoenix.end2end.CsvBulkLoadToolIT
phoenix.end2end.LogicalTableNameIT
phoenix.end2end.PermissionNSEnabledIT
phoenix.end2end.BackwardCompatibilityIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/7/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 65ec3e96eabf 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x-PHOENIX-6247 / 410f738
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-1170/7/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/7/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/7/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/7/testReport/
asflicensehttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/7/artifact/yetus-general-check/output/patch-asflicense-problems.txt
Max. process+thread count4672 (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-1170/7/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@gokceni
gokceniforce-pushed the separatePhysical branch 2 times, most recently from f49ab4c to 32312f3CompareMarch 24, 2021 23:06
@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 14sDocker 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 💚mvninstall15m 41s4.x-PHOENIX-6247 passed
+1 💚compile1m 8s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 9s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 48s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 16sphoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall6m 50sthe patch passed
+1 💚compile1m 7sthe patch passed
+1 💚cc1m 7sthe patch passed
+1 💚javac1m 7sthe patch passed
-1 ❌checkstyle4m 13sphoenix-core: The patch generated 200 new + 13820 unchanged - 85 fixed = 14020 total (was 13905)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 47sthe patch passed
-1 ❌spotbugs3m 33sphoenix-core generated 4 new + 941 unchanged - 0 fixed = 945 total (was 941)
_ Other Tests _
-1 ❌unit185m 28sphoenix-core in the patch failed.
+1 💚asflicense0m 38sThe patch does not generate ASF License warnings.
231m 40s
ReasonTests
FindBugsmodule:phoenix-core
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback): String.getBytes() At MetaDataEndpointImpl.java:[line 1929]
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int): String.getBytes() At MetaDataEndpointImpl.java:[line 1237]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 326]
Found reliance on default encoding in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean):in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean): String.getBytes() At ConnectionQueryServicesImpl.java:[line 2249]
Failed junit testsphoenix.end2end.index.MutableIndexIT
phoenix.end2end.LogicalTableNameIT
phoenix.end2end.BackwardCompatibilityIT
phoenix.end2end.ViewUtilIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/8/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 0ca007e04de6 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x-PHOENIX-6247 / 410f738
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-1170/8/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/8/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/8/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/8/testReport/
Max. process+thread count4980 (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-1170/8/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗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-PHOENIX-6247 Compile Tests _
+1 💚mvninstall14m 57s4.x-PHOENIX-6247 passed
+1 💚compile1m 8s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 6s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 48s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 16sphoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall6m 45sthe patch passed
+1 💚compile1m 7sthe patch passed
+1 💚cc1m 7sthe patch passed
+1 💚javac1m 7sthe patch passed
-1 ❌checkstyle4m 14sphoenix-core: The patch generated 232 new + 13806 unchanged - 99 fixed = 14038 total (was 13905)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 48sthe patch passed
-1 ❌spotbugs3m 30sphoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
-1 ❌unit192m 18sphoenix-core in the patch failed.
+1 💚asflicense0m 38sThe patch does not generate ASF License warnings.
237m 36s
ReasonTests
FindBugsmodule:phoenix-core
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback): String.getBytes() At MetaDataEndpointImpl.java:[line 1929]
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int): String.getBytes() At MetaDataEndpointImpl.java:[line 1237]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 326]
Found reliance on default encoding in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean):in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean): String.getBytes() At ConnectionQueryServicesImpl.java:[line 2250]
Call to String.equals(org.apache.phoenix.schema.PName) in org.apache.phoenix.schema.MetaDataClient.evaluateStmtProperties(MetaDataClient$MetaProperties, MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:[line 5419]
Failed junit testsphoenix.end2end.index.txn.RollbackIT
phoenix.end2end.UpsertSelectIT
phoenix.end2end.LogicalTableNameIT
phoenix.tx.TransactionIT
phoenix.end2end.UpsertWithSCNIT
phoenix.end2end.ViewUtilIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/9/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 7122dd8b0d65 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x-PHOENIX-6247 / 410f738
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-1170/9/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/9/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/9/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/9/testReport/
Max. process+thread count4945 (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-1170/9/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec7m 52sDocker 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 💚mvninstall16m 39s4.x-PHOENIX-6247 passed
+1 💚compile1m 20s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 31s4.x-PHOENIX-6247 passed
+1 💚javadoc1m 2s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 53sphoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall8m 21sthe patch passed
+1 💚compile1m 25sthe patch passed
+1 💚cc1m 25sthe patch passed
+1 💚javac1m 25sthe patch passed
-1 ❌checkstyle4m 48sphoenix-core: The patch generated 232 new + 13807 unchanged - 99 fixed = 14039 total (was 13906)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc1m 2sthe patch passed
-1 ❌spotbugs4m 16sphoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
-1 ❌unit207m 37sphoenix-core in the patch failed.
+1 💚asflicense0m 40sThe patch does not generate ASF License warnings.
266m 28s
ReasonTests
FindBugsmodule:phoenix-core
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback): String.getBytes() At MetaDataEndpointImpl.java:[line 1929]
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int): String.getBytes() At MetaDataEndpointImpl.java:[line 1237]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 326]
Found reliance on default encoding in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean):in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean): String.getBytes() At ConnectionQueryServicesImpl.java:[line 2250]
Call to String.equals(org.apache.phoenix.schema.PName) in org.apache.phoenix.schema.MetaDataClient.evaluateStmtProperties(MetaDataClient$MetaProperties, MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:[line 5419]
Failed junit testsphoenix.end2end.index.PartialIndexRebuilderIT
phoenix.end2end.index.GlobalMutableTxIndexIT
phoenix.end2end.LogicalTableNameIT
phoenix.tx.ParameterizedTransactionIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/10/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux eb20035fa452 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 / ee4ce9f
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-1170/10/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/10/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/10/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/10/testReport/
Max. process+thread count4898 (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-1170/10/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec5m 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-PHOENIX-6247 Compile Tests _
+1 💚mvninstall14m 57s4.x-PHOENIX-6247 passed
+1 💚compile1m 8s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 11s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 50s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 23sphoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall6m 55sthe patch passed
+1 💚compile1m 8sthe patch passed
+1 💚cc1m 8sthe patch passed
+1 💚javac1m 8sthe patch passed
-1 ❌checkstyle4m 3sphoenix-core: The patch generated 284 new + 13755 unchanged - 151 fixed = 14039 total (was 13906)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 51sthe patch passed
-1 ❌spotbugs3m 49sphoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
-1 ❌unit268m 1sphoenix-core in the patch failed.
+1 💚asflicense1m 4sThe patch does not generate ASF License warnings.
319m 34s
ReasonTests
FindBugsmodule:phoenix-core
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback): String.getBytes() At MetaDataEndpointImpl.java:[line 1929]
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int): String.getBytes() At MetaDataEndpointImpl.java:[line 1237]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 326]
Found reliance on default encoding in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean):in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean): String.getBytes() At ConnectionQueryServicesImpl.java:[line 2250]
Call to String.equals(org.apache.phoenix.schema.PName) in org.apache.phoenix.schema.MetaDataClient.evaluateStmtProperties(MetaDataClient$MetaProperties, MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:[line 5419]
Failed junit testsphoenix.end2end.QueryDatabaseMetaDataIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/11/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 248aae1f7915 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x-PHOENIX-6247 / ee4ce9f
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-1170/11/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/11/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/11/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/11/testReport/
Max. process+thread count4786 (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-1170/11/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

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

Minor comments, rest LGTM.

Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/CsvBulkLoadToolIT.java Outdated
assertEquals(cnt, expected.size());
}

public static void renameAndDropPhysicalTable(Connection conn, String tenantId, String schema, String tableName, String physicalName) throws Exception {

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.

should this be broken into 2 and call them "assignNewPhysicalTable" and "dropOldPhysicalTable"?

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 have a case right now that requires separate methods. It is a good test to do the switch and drop so that we are sure the old table is not used. In the future, I will consider separating.

Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/LogicalTableNameIT.java Outdated
if (parentTable == null) {
physicalTables.add(famName);
// If this is a view index, then one of the link is IDX_VW -> _IDX_ PhysicalTable link. Since famName is _IDX_ and we can't get this table hence it is null, we need to use actual view name
parentLogicalName = (tableType == INDEX ? SchemaUtil.getTableName(parentSchemaName, parentTableName) : famName);

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.

somthing like INDEX.equalsIgnoreCase(tableType) instad of ==

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.

INDEX is PTableType not string

@gjacoby126

Copy link
Copy Markdown
Contributor

@ChinmaySKulkarni - this is a significant revision of how Phoenix approaches metadata naming by @gokceni , would appreciate your opinion as well.

SequenceKey key = MetaDataUtil.getViewIndexSequenceKey(tenantIdStr, physicalName,
// parentTable is parent of the view index which is the view.
// Since parent is the view, the parentTable.getParentLogicalName() returns the logical full name of the base table
PName parentName = parentTable.getParentLogicalName();

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.

I'm a bit confused here. In the original logic, we passed in a physical name, but now we pass in a logical name if parentTable (the view) has one defined and a physical name if it doesn't. From the design doc you shared with me, sounds like it should usually be a constant logical name?

It's actually really important that we use the same table name here in all cases -- that all indexes on all views on a particular physical base table use the same sequence to generate view index ids. Otherwise you can get collisions between view index ids.

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.

There was only one place calling this function and it was using parentTable.getPhysicalName(); as physicalName. That mapped to full name of base table like SC1.TBL_1. getParentLogicalName returns the same now. But parentTable.getPhysicalName returns SC1.NEW_PHYSICALNAME_TBL1 which we don't.
I run all view related IT tests. Is there any other tests you would like me to run to check for collusions?

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.

Basically if you change the physical name of a table, this function is going to use the logical name instead of physical name of the base table. So the sequence will not go back to the beginning. In the next pr, I will create a view index, rename the table and create another view index to see that it is not colliding. This should be enough right?

PName getName();
PName getSchemaName();
PName getTableName();
PName getPhysicalTableName();

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.

Distinction between getPhysicalTableName and getPhysicalName can be confusing

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.

Renamed getPhysicalTableName as getPhysicalTableNameColumnInSyscat. getPhysicalName is inferred and I could have renamed it but that would touch a lot of files.

public PName getParentName() {
// a view on a table will not have a parent name but will have a physical table name (which is the parent)
return (type!=PTableType.VIEW || parentName!=null) ? parentName : getPhysicalName();
// Update to above comment: we will return logical name of view parent base 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.

Why the parent base table and not the immediate parent?

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 is the existing logic. If this is a child view of another view, the parent is the immediate parent view. If it is a view directly on top of a table, the parent is the logical name of the table. Removed that comment.

public PName getParentName() {
// a view on a table will not have a parent name but will have a physical table name (which is the parent)
return (type!=PTableType.VIEW || parentName!=null) ? parentName : getPhysicalName();
// Update to above comment: we will return logical name of view parent base 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: remove "update to above comment"

}

@Override
public final PName getPhysicalTableName() {

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 mentioned elsewhere, why both the existing getPhysicalName and a new getPhysicalTableName? Can they be consolidated? Or at least named something more clear?

@gokcenigokceniMar 31, 2021

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.

It is a bit complicated. getPhysicalName is mostly used for views. getPhysicalTableName is mostly for non-views and maps to a column on syscat. Let me see what I can do.


@Override
public PName getPhysicalName() {
// For views, physicalName is base table name. There might be a case where the Phoenix table is pointing to another physical 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.

For views, physicalName is the base table physical table name or logical table name?

@gokcenigokceniMar 31, 2021

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.

physical. Will update the comment

}

public static String getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped) {
public static String getViewIndexSequenceSchemaName(PName logicalName, boolean isNamespaceMapped) {

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.

should be logicalParentName or logicalBaseTableName to make it clear that this is not the logical name of the view, but the suffix of the IDX table so that all view indexes of the same base table get the same view index sequence.

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 change to logicalBaseTableName

optional int64 lastDDLTimestamp = 45;
optional bool changeDetectionEnabled = 46;
optional bytes physicalTableNameBytes = 47;
optional bool isModifiable = 48;

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.

where is isModifiable set?

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.

It will be set later as part of another change. Since I was changing this part, I added this one as well

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.

Since we generate proto code on-demand now, I don't think we gain anything by clumping unrelated protobuf changes into this PR. We can save isModifiable for next time when the change can be considered as a whole

@stoty

stoty commented Apr 1, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 19sDocker 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 💚mvninstall15m 35s4.x-PHOENIX-6247 passed
+1 💚compile1m 6s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 10s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 48s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 17sphoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall6m 47sthe patch passed
+1 💚compile1m 5sthe patch passed
+1 💚cc1m 5sthe patch passed
+1 💚javac1m 5sthe patch passed
-1 ❌checkstyle4m 13sphoenix-core: The patch generated 232 new + 13807 unchanged - 99 fixed = 14039 total (was 13906)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 48sthe patch passed
-1 ❌spotbugs3m 32sphoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
+1 💚unit200m 50sphoenix-core in the patch passed.
+1 💚asflicense0m 10sThe patch does not generate ASF License warnings.
244m 39s
ReasonTests
FindBugsmodule:phoenix-core
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback): String.getBytes() At MetaDataEndpointImpl.java:[line 1929]
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int): String.getBytes() At MetaDataEndpointImpl.java:[line 1237]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 326]
Found reliance on default encoding in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean):in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean): String.getBytes() At ConnectionQueryServicesImpl.java:[line 2250]
Call to String.equals(org.apache.phoenix.schema.PName) in org.apache.phoenix.schema.MetaDataClient.evaluateStmtProperties(MetaDataClient$MetaProperties, MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:[line 5419]
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/12/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 78b9ec382688 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x-PHOENIX-6247 / ee4ce9f
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-1170/12/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/12/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/12/testReport/
Max. process+thread count4864 (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-1170/12/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

stoty commented Apr 1, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 15sDocker 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 💚mvninstall15m 17s4.x-PHOENIX-6247 passed
+1 💚compile1m 6s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 10s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 49s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 15sphoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall6m 56sthe patch passed
+1 💚compile1m 5sthe patch passed
+1 💚cc1m 5sthe patch passed
+1 💚javac1m 5sthe patch passed
-1 ❌checkstyle4m 12sphoenix-core: The patch generated 284 new + 13755 unchanged - 151 fixed = 14039 total (was 13906)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 48sthe patch passed
-1 ❌spotbugs3m 31sphoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
+1 💚unit194m 47sphoenix-core in the patch passed.
+1 💚asflicense0m 10sThe patch does not generate ASF License warnings.
238m 23s
ReasonTests
FindBugsmodule:phoenix-core
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback): String.getBytes() At MetaDataEndpointImpl.java:[line 1929]
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int): String.getBytes() At MetaDataEndpointImpl.java:[line 1237]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 326]
Found reliance on default encoding in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean):in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean): String.getBytes() At ConnectionQueryServicesImpl.java:[line 2250]
Call to String.equals(org.apache.phoenix.schema.PName) in org.apache.phoenix.schema.MetaDataClient.evaluateStmtProperties(MetaDataClient$MetaProperties, MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:[line 5419]
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/13/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 6abf6bf7fa1b 4.15.0-128-generic #131-Ubuntu SMP Wed Dec 9 06:57:35 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitydev/phoenix-personality.sh
git revision4.x-PHOENIX-6247 / ee4ce9f
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-1170/13/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/13/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/13/testReport/
Max. process+thread count5161 (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-1170/13/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
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.

I think the new methods here, and what the metadata methods on PTable around naming should be going forward, needs more thought. The current PR proposes two new PTable properties that are almost-but-not-quite the same as existing properties.

It's really important to get the interfaces right because they'll be hard to change later. Maybe a design doc on the JIRA is a better place for that conversation than a PR?

@ChinmaySKulkarni fyi.

optional int64 lastDDLTimestamp = 45;
optional bool changeDetectionEnabled = 46;
optional bytes physicalTableNameBytes = 47;
optional bool isModifiable = 48;

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.

Since we generate proto code on-demand now, I don't think we gain anything by clumping unrelated protobuf changes into this PR. We can save isModifiable for next time when the change can be considered as a whole

PName getName();
PName getSchemaName();
PName getTableName();
PName getPhysicalTableNameColumnInSyscat();

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.

Thinking about this more, I don't think just changing the name solves the problem of having two methods that are almost-but-not-quite the same thing. I'd still be confused about which to call.

Can we not use the existing getPhysicalNames() to return the physical table name column from syscat in the situations where that's appropriate?

@gokcenigokceniApr 2, 2021

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.

getPhysicalName already returns physical table name column from syscat when appropriate.

We still need 2 methods. One represents the actual column in Syscat. The other is inferred (like views or view indexes).

PName getParentTableName();

/**
* @return the logical name of the parent. In case of the view index, it is the _IDX_+logical name of base 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.

why IDX + logical name of base table for view index? That's the physical table the view index is stored in, not the logical name.

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 am not sure I understand your comment. IDX prefix + logical name of the table is where the view index is stored in.

* @return the logical name of the parent. In case of the view index, it is the _IDX_+logical name of base table
* Ex: For hierarchical views like tableLogicalName --> view1 --> view2, for view2, returns _IDX_+tableLogicalName
*/
PName getParentLogicalName();

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.

Likewise with getParentName vs getParentLogicalName. If I'm reading the current logic right, getParentName also returns only logical names. They're almost-but-not-quite the same thing. Can we consolidate? Otherwise we're going to create lots of subtle, really-hard-to-spot bugs going forward when people use the wrong one.

PName getName();
PName getSchemaName();
PName getTableName();
PName getPhysicalTableNameColumnInSyscat();

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.

getPhysicalNames makes a point of returning a list of PNames to leave the interface open for views that span multiple tables (not currently supported but long on the wishlist). Does anything in this PR, such as getPhysicalTableNameColumnInSyscat returning a single String, prevent us from having multi-table views later?

@stoty

stoty commented Apr 5, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec6m 49sDocker 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 38s4.x-PHOENIX-6247 passed
+1 💚compile1m 6s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 4s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 50s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 14sphoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall6m 51sthe patch passed
+1 💚compile1m 7sthe patch passed
+1 💚cc1m 7sthe patch passed
+1 💚javac1m 7sthe patch passed
-1 ❌checkstyle4m 14sphoenix-core: The patch generated 285 new + 13755 unchanged - 151 fixed = 14040 total (was 13906)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 47sthe patch passed
-1 ❌spotbugs3m 30sphoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
+1 💚unit199m 49sphoenix-core in the patch passed.
+1 💚asflicense0m 10sThe patch does not generate ASF License warnings.
248m 11s
ReasonTests
FindBugsmodule:phoenix-core
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback): String.getBytes() At MetaDataEndpointImpl.java:[line 1929]
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int): String.getBytes() At MetaDataEndpointImpl.java:[line 1237]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 326]
Found reliance on default encoding in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean):in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean): String.getBytes() At ConnectionQueryServicesImpl.java:[line 2250]
Call to String.equals(org.apache.phoenix.schema.PName) in org.apache.phoenix.schema.MetaDataClient.evaluateStmtProperties(MetaDataClient$MetaProperties, MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:[line 5419]
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/14/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 7e7a1ac1aa72 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 / ee4ce9f
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-1170/14/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/14/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/14/testReport/
Max. process+thread count5139 (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-1170/14/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty

stoty commented Apr 6, 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-PHOENIX-6247 Compile Tests _
+1 💚mvninstall14m 51s4.x-PHOENIX-6247 passed
+1 💚compile1m 7s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 2s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 49s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 17sphoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall6m 54sthe patch passed
+1 💚compile1m 5sthe patch passed
+1 💚cc1m 5sthe patch passed
+1 💚javac1m 5sthe patch passed
-1 ❌checkstyle4m 14sphoenix-core: The patch generated 231 new + 13807 unchanged - 99 fixed = 14038 total (was 13906)
+1 💚prototool0m 2sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 48sthe patch passed
-1 ❌spotbugs3m 31sphoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
-1 ❌unit197m 6sphoenix-core in the patch failed.
+1 💚asflicense0m 39sThe patch does not generate ASF License warnings.
242m 16s
ReasonTests
FindBugsmodule:phoenix-core
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback): String.getBytes() At MetaDataEndpointImpl.java:[line 1928]
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int): String.getBytes() At MetaDataEndpointImpl.java:[line 1236]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 325]
Found reliance on default encoding in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean):in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean): String.getBytes() At ConnectionQueryServicesImpl.java:[line 2250]
Call to String.equals(org.apache.phoenix.schema.PName) in org.apache.phoenix.schema.MetaDataClient.evaluateStmtProperties(MetaDataClient$MetaProperties, MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:[line 5417]
Failed junit testsphoenix.end2end.UpsertSelectIT
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/15/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 0d516a1d73d3 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 / ee4ce9f
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-1170/15/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/15/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unithttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/15/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/15/testReport/
Max. process+thread count5123 (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-1170/15/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
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.

Just some nits and then I think we're good to merge

MetaDataMutationResult parentResult = updateCache(connection.getTenantId(), parentSchemaName, parentTableName,
false, resolvedTimestamp);
PTable parentTable = parentResult.getTable();
if (LOGGER.isDebugEnabled()) {

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.

Do we need this logging? Wondering if it should be at TRACE level to avoid having a bunch of logs of it, since I think this is a pretty frequently used function.

Comment threadphoenix-core/src/main/java/org/apache/phoenix/schema/PTable.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/LogicalTableNameIT.java Outdated
createIndexOnTable(conn, fullTableName, indexName);
}

SingleCellIndexIT.dumpTable(fullNewTableName);

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.

Before merging could you please remove?

Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/LogicalTableNameIT.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/LogicalTableNameIT.java Outdated
Comment threadphoenix-core/src/it/java/org/apache/phoenix/end2end/LogicalTableNameIT.java Outdated

@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

@gokceni

Copy link
Copy Markdown
ContributorAuthor

Merged to 4.x-PHOENIX-6247 branch. Thanks for the review!

@gokcenigokceni closed this Apr 7, 2021
@stoty

stoty commented Apr 8, 2021

Copy link
Copy Markdown
Contributor

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec1m 44sDocker 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-PHOENIX-6247 Compile Tests _
+1 💚mvninstall15m 59s4.x-PHOENIX-6247 passed
+1 💚compile1m 12s4.x-PHOENIX-6247 passed
+1 💚checkstyle4m 34s4.x-PHOENIX-6247 passed
+1 💚javadoc0m 58s4.x-PHOENIX-6247 passed
+0 🆗spotbugs3m 36sphoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚mvninstall8m 12sthe patch passed
+1 💚compile1m 11sthe patch passed
+1 💚cc1m 11sthe patch passed
+1 💚javac1m 11sthe patch passed
-1 ❌checkstyle4m 51sphoenix-core: The patch generated 286 new + 13755 unchanged - 151 fixed = 14041 total (was 13906)
+1 💚prototool0m 1sThere were no new prototool issues.
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 58sthe patch passed
-1 ❌spotbugs3m 47sphoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
+1 💚unit222m 0sphoenix-core in the patch passed.
+1 💚asflicense0m 11sThe patch does not generate ASF License warnings.
270m 19s
ReasonTests
FindBugsmodule:phoenix-core
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.createTable(RpcController, MetaDataProtos$CreateTableRequest, RpcCallback): String.getBytes() At MetaDataEndpointImpl.java:[line 1929]
Found reliance on default encoding in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int):in org.apache.phoenix.coprocessor.MetaDataEndpointImpl.getTable(RegionScanner, long, long, int): String.getBytes() At MetaDataEndpointImpl.java:[line 1236]
org.apache.phoenix.jdbc.PhoenixDatabaseMetaData.PHYSICAL_TABLE_NAME_BYTES is a mutable array At MetaDataEndpointImpl.java: At MetaDataEndpointImpl.java:[line 325]
Found reliance on default encoding in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean):in org.apache.phoenix.query.ConnectionQueryServicesImpl.ensureViewIndexTableCreated(PTable, long, boolean): String.getBytes() At ConnectionQueryServicesImpl.java:[line 2250]
Call to String.equals(org.apache.phoenix.schema.PName) in org.apache.phoenix.schema.MetaDataClient.evaluateStmtProperties(MetaDataClient$MetaProperties, MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:MetaDataClient$MetaPropertiesEvaluated, PTable, String, String) At MetaDataClient.java:[line 5417]
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/16/artifact/yetus-general-check/output/Dockerfile
GITHUB PR#1170
Optional Testsdupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
unameLinux 163c19ae2705 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 / ee4ce9f
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-1170/16/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/16/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
Test Resultshttps://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/16/testReport/
Max. process+thread count4868 (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-1170/16/console
versionsgit=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@gokceni@stoty@gjacoby126@lhofhansl@swaroopak