Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

PHOENIX-6247 Separating logical and physical table names #1170

Closed
wants to merge 1 commit into from

Conversation

gokceni
Copy link
Contributor

@gokceni gokceni commented Mar 18, 2021

No description provided.

@stoty
Copy link
Contributor

stoty commented Mar 18, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 6m 56s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 15m 15s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 5s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 21s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 49s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 15s phoenix-core in 4.x-PHOENIX-6247 has 944 extant spotbugs warnings.
-0 ⚠️ patch 3m 22s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚 mvninstall 6m 57s the patch passed
+1 💚 compile 1m 5s the patch passed
+1 💚 cc 1m 5s the patch passed
+1 💚 javac 1m 5s the patch passed
-1 ❌ checkstyle 4m 23s phoenix-core: The patch generated 274 new + 14431 unchanged - 167 fixed = 14705 total (was 14598)
+1 💚 prototool 0m 1s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 47s the patch passed
-1 ❌ spotbugs 3m 31s phoenix-core generated 1 new + 944 unchanged - 0 fixed = 945 total (was 944)
_ Other Tests _
-1 ❌ unit 1m 46s phoenix-core in the patch failed.
-1 ❌ asflicense 0m 10s The patch generated 1 ASF License warnings.
51m 47s
Reason Tests
FindBugs module: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 tests phoenix.index.IndexScrutinyMapperTest
phoenix.compile.TenantSpecificViewIndexCompileTest
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/1/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / e6d7d0b
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/1/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/1/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/1/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/1/testReport/
asflicense https://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 count 453 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/1/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@gokceni gokceni force-pushed the separatePhysical branch 2 times, most recently from 6af705e to ff6b4a1 Compare March 19, 2021 20:51
@stoty
Copy link
Contributor

stoty commented Mar 20, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 55s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 16m 20s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 13s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 56s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 56s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 32s phoenix-core in 4.x-PHOENIX-6247 has 944 extant spotbugs warnings.
-0 ⚠️ patch 3m 39s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚 mvninstall 8m 8s the patch passed
+1 💚 compile 1m 17s the patch passed
+1 💚 cc 1m 17s the patch passed
+1 💚 javac 1m 17s the patch passed
-1 ❌ checkstyle 5m 23s phoenix-core: The patch generated 206 new + 14898 unchanged - 98 fixed = 15104 total (was 14996)
+1 💚 prototool 0m 0s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 55s the patch passed
-1 ❌ spotbugs 3m 39s phoenix-core generated 1 new + 944 unchanged - 0 fixed = 945 total (was 944)
_ Other Tests _
-1 ❌ unit 283m 10s phoenix-core in the patch failed.
-1 ❌ asflicense 0m 38s The patch generated 1 ASF License warnings.
334m 59s
Reason Tests
FindBugs module: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 tests TEST-[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
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/3/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / e6d7d0b
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/3/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/3/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/3/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/3/testReport/
asflicense https://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 count 4536 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/3/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented Mar 21, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 12s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 15m 35s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 8s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 28s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 48s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 15s phoenix-core in 4.x-PHOENIX-6247 has 944 extant spotbugs warnings.
-0 ⚠️ patch 3m 22s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚 mvninstall 6m 50s the patch passed
+1 💚 compile 1m 6s the patch passed
+1 💚 cc 1m 7s the patch passed
+1 💚 javac 1m 6s the patch passed
-1 ❌ checkstyle 4m 30s phoenix-core: The patch generated 217 new + 14898 unchanged - 98 fixed = 15115 total (was 14996)
+1 💚 prototool 0m 1s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 47s the patch passed
-1 ❌ spotbugs 3m 31s phoenix-core generated 2 new + 944 unchanged - 0 fixed = 946 total (was 944)
_ Other Tests _
-1 ❌ unit 233m 36s phoenix-core in the patch failed.
-1 ❌ asflicense 0m 37s The patch generated 1 ASF License warnings.
280m 6s
Reason Tests
FindBugs module: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 tests phoenix.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
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/4/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / e6d7d0b
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/4/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/4/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/4/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/4/testReport/
asflicense https://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 count 4611 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/4/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented Mar 22, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 11s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 14m 58s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 5s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 27s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 48s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 18s phoenix-core in 4.x-PHOENIX-6247 has 944 extant spotbugs warnings.
-0 ⚠️ patch 3m 25s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚 mvninstall 6m 51s the patch passed
+1 💚 compile 1m 7s the patch passed
+1 💚 cc 1m 7s the patch passed
+1 💚 javac 1m 7s the patch passed
-1 ❌ checkstyle 4m 32s phoenix-core: The patch generated 282 new + 14838 unchanged - 158 fixed = 15120 total (was 14996)
+1 💚 prototool 0m 1s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
-1 ❌ javadoc 0m 47s phoenix-core generated 1 new + 92 unchanged - 0 fixed = 93 total (was 92)
-1 ❌ spotbugs 3m 29s phoenix-core generated 2 new + 944 unchanged - 0 fixed = 946 total (was 944)
_ Other Tests _
-1 ❌ unit 235m 19s phoenix-core in the patch failed.
-1 ❌ asflicense 0m 38s The patch generated 1 ASF License warnings.
281m 15s
Reason Tests
FindBugs module: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 tests phoenix.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
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/5/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / e6d7d0b
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/5/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
javadoc https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/5/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/5/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/5/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/5/testReport/
asflicense https://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 count 4900 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/5/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@gjacoby126 gjacoby126 left a comment

Choose a reason for hiding this comment

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

Initial comments -- reviewed about 50% so far.

assertEquals(0, exitCode);

ResultSet rs = stmt.executeQuery("SELECT * FROM " + tableName);
assertFalse(rs.next());
Copy link
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
Contributor Author

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

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

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

Copy link
Contributor

@swaroopak swaroopak left a comment

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

boolean isNamespaceMapped) {
// Create global sequence of the form: <prefixed base table name>.
// We can't use a tenant-owned or escaped sequence because of collisions,
// with other view indexes that may be global or owned by other tenants that
// 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
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?

@@ -328,6 +328,10 @@ private static boolean isExistingTableMappedToPhoenixName(String name) {
SEPARATOR_BYTE_ARRAY, Bytes.toBytes(familyName));
}

public static PName getTableName(PName schemaName, PName tableName) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: getTablePName?

@stoty
Copy link
Contributor

stoty commented Mar 22, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 24s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 2 new or modified test files.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 15m 17s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 5s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 43s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 47s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 16s phoenix-core in 4.x-PHOENIX-6247 has 944 extant spotbugs warnings.
-0 ⚠️ patch 3m 23s Used diff version of patch file. Binary files and potentially other changes not applied. Please rebase and squash commits if necessary.
_ Patch Compile Tests _
+1 💚 mvninstall 6m 49s the patch passed
+1 💚 compile 1m 7s the patch passed
+1 💚 cc 1m 7s the patch passed
+1 💚 javac 1m 7s the patch passed
-1 ❌ checkstyle 4m 44s phoenix-core: The patch generated 219 new + 15727 unchanged - 177 fixed = 15946 total (was 15904)
+1 💚 prototool 0m 1s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
-1 ❌ javadoc 0m 48s phoenix-core generated 1 new + 92 unchanged - 0 fixed = 93 total (was 92)
-1 ❌ spotbugs 3m 44s phoenix-core generated 2 new + 943 unchanged - 1 fixed = 945 total (was 944)
_ Other Tests _
-1 ❌ unit 267m 55s phoenix-core in the patch failed.
-1 ❌ asflicense 0m 39s The patch generated 1 ASF License warnings.
315m 7s
Reason Tests
FindBugs module: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 tests phoenix.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
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/6/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / e6d7d0b
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/6/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
javadoc https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/6/artifact/yetus-general-check/output/diff-javadoc-javadoc-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/6/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/6/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/6/testReport/
asflicense https://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 count 5073 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/6/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented Mar 23, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 12s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 15m 16s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 5s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 9s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 49s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 18s phoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 6m 46s the patch passed
+1 💚 compile 1m 5s the patch passed
+1 💚 cc 1m 5s the patch passed
+1 💚 javac 1m 5s the patch passed
-1 ❌ checkstyle 4m 13s phoenix-core: The patch generated 201 new + 13820 unchanged - 85 fixed = 14021 total (was 13905)
+1 💚 prototool 0m 1s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 48s the patch passed
-1 ❌ spotbugs 3m 37s phoenix-core generated 3 new + 941 unchanged - 0 fixed = 944 total (was 941)
_ Other Tests _
-1 ❌ unit 199m 2s phoenix-core in the patch failed.
-1 ❌ asflicense 0m 37s The patch generated 1 ASF License warnings.
244m 46s
Reason Tests
FindBugs module: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 tests phoenix.end2end.PermissionsCacheIT
phoenix.end2end.PermissionNSEnabledWithCustomAccessControllerIT
phoenix.end2end.CsvBulkLoadToolIT
phoenix.end2end.LogicalTableNameIT
phoenix.end2end.PermissionNSEnabledIT
phoenix.end2end.BackwardCompatibilityIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/7/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / 410f738
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/7/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/7/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/7/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/7/testReport/
asflicense https://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 count 4672 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/7/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@gokceni gokceni force-pushed the separatePhysical branch 2 times, most recently from f49ab4c to 32312f3 Compare March 24, 2021 23:06
@stoty
Copy link
Contributor

stoty commented Mar 25, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 14s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 15m 41s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 8s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 9s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 48s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 16s phoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 6m 50s the patch passed
+1 💚 compile 1m 7s the patch passed
+1 💚 cc 1m 7s the patch passed
+1 💚 javac 1m 7s the patch passed
-1 ❌ checkstyle 4m 13s phoenix-core: The patch generated 200 new + 13820 unchanged - 85 fixed = 14020 total (was 13905)
+1 💚 prototool 0m 1s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 47s the patch passed
-1 ❌ spotbugs 3m 33s phoenix-core generated 4 new + 941 unchanged - 0 fixed = 945 total (was 941)
_ Other Tests _
-1 ❌ unit 185m 28s phoenix-core in the patch failed.
+1 💚 asflicense 0m 38s The patch does not generate ASF License warnings.
231m 40s
Reason Tests
FindBugs module: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 tests phoenix.end2end.index.MutableIndexIT
phoenix.end2end.LogicalTableNameIT
phoenix.end2end.BackwardCompatibilityIT
phoenix.end2end.ViewUtilIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/8/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / 410f738
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/8/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/8/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/8/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/8/testReport/
Max. process+thread count 4980 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/8/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented Mar 25, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 13s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 14m 57s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 8s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 6s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 48s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 16s phoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 6m 45s the patch passed
+1 💚 compile 1m 7s the patch passed
+1 💚 cc 1m 7s the patch passed
+1 💚 javac 1m 7s the patch passed
-1 ❌ checkstyle 4m 14s phoenix-core: The patch generated 232 new + 13806 unchanged - 99 fixed = 14038 total (was 13905)
+1 💚 prototool 0m 1s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 48s the patch passed
-1 ❌ spotbugs 3m 30s phoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
-1 ❌ unit 192m 18s phoenix-core in the patch failed.
+1 💚 asflicense 0m 38s The patch does not generate ASF License warnings.
237m 36s
Reason Tests
FindBugs module: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 tests phoenix.end2end.index.txn.RollbackIT
phoenix.end2end.UpsertSelectIT
phoenix.end2end.LogicalTableNameIT
phoenix.tx.TransactionIT
phoenix.end2end.UpsertWithSCNIT
phoenix.end2end.ViewUtilIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/9/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / 410f738
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/9/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/9/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/9/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/9/testReport/
Max. process+thread count 4945 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/9/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented Mar 26, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 7m 52s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 16m 39s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 20s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 31s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 1m 2s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 53s phoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 8m 21s the patch passed
+1 💚 compile 1m 25s the patch passed
+1 💚 cc 1m 25s the patch passed
+1 💚 javac 1m 25s the patch passed
-1 ❌ checkstyle 4m 48s phoenix-core: The patch generated 232 new + 13807 unchanged - 99 fixed = 14039 total (was 13906)
+1 💚 prototool 0m 1s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 1m 2s the patch passed
-1 ❌ spotbugs 4m 16s phoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
-1 ❌ unit 207m 37s phoenix-core in the patch failed.
+1 💚 asflicense 0m 40s The patch does not generate ASF License warnings.
266m 28s
Reason Tests
FindBugs module: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 tests phoenix.end2end.index.PartialIndexRebuilderIT
phoenix.end2end.index.GlobalMutableTxIndexIT
phoenix.end2end.LogicalTableNameIT
phoenix.tx.ParameterizedTransactionIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/10/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / ee4ce9f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/10/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/10/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/10/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/10/testReport/
Max. process+thread count 4898 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/10/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented Mar 26, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 5m 46s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 14m 57s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 8s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 11s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 50s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 23s phoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 6m 55s the patch passed
+1 💚 compile 1m 8s the patch passed
+1 💚 cc 1m 8s the patch passed
+1 💚 javac 1m 8s the patch passed
-1 ❌ checkstyle 4m 3s phoenix-core: The patch generated 284 new + 13755 unchanged - 151 fixed = 14039 total (was 13906)
+1 💚 prototool 0m 1s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 51s the patch passed
-1 ❌ spotbugs 3m 49s phoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
-1 ❌ unit 268m 1s phoenix-core in the patch failed.
+1 💚 asflicense 1m 4s The patch does not generate ASF License warnings.
319m 34s
Reason Tests
FindBugs module: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 tests phoenix.end2end.QueryDatabaseMetaDataIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/11/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / ee4ce9f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/11/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/11/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/11/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/11/testReport/
Max. process+thread count 4786 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/11/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@swaroopak swaroopak left a comment

Choose a reason for hiding this comment

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

Minor comments, rest LGTM.

assertEquals(cnt, expected.size());
}

public static void renameAndDropPhysicalTable(Connection conn, String tenantId, String schema, String tableName, String physicalName) throws Exception {
Copy link
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
Contributor Author

Choose a reason for hiding this comment

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

I don't 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.

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

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

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

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?

@@ -583,6 +583,7 @@ private static int getReservedQualifier(byte[] bytes, int offset, int length) {
PName getName();
PName getSchemaName();
PName getTableName();
PName getPhysicalTableName();
Copy link
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
Contributor Author

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.

@@ -1559,7 +1586,29 @@ public PName getParentTableName() {
@Override
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
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
Contributor Author

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.

@@ -1559,7 +1586,29 @@ public PName getParentTableName() {
@Override
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
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"

@@ -1008,6 +1030,11 @@ public final PName getTableName() {
return tableName;
}

@Override
public final PName getPhysicalTableName() {
Copy link
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?

Copy link
Contributor Author

@gokceni gokceni Mar 31, 2021

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.

@@ -1586,7 +1635,12 @@ public synchronized boolean getIndexMaintainers(ImmutableBytesWritable ptr, Phoe

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

Copy link
Contributor Author

@gokceni gokceni Mar 31, 2021

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

@@ -678,13 +691,13 @@ public static SequenceKey getOldViewIndexSequenceKey(String tenantId, PName phys
return new SequenceKey(isNamespaceMapped ? tenantId : null, schemaName, tableName, nSaltBuckets);
}

public static String getViewIndexSequenceSchemaName(PName physicalName, boolean isNamespaceMapped) {
public static String getViewIndexSequenceSchemaName(PName logicalName, boolean isNamespaceMapped) {
Copy link
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
Contributor Author

Choose a reason for hiding this comment

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

Will change to logicalBaseTableName

@@ -111,6 +111,9 @@ message PTable {
optional bool viewModifiedPhoenixTTL = 44;
optional int64 lastDDLTimestamp = 45;
optional bool changeDetectionEnabled = 46;
optional bytes physicalTableNameBytes = 47;
optional bool isModifiable = 48;
Copy link
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
Contributor Author

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
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
Copy link
Contributor

stoty commented Apr 1, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 19s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 15m 35s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 6s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 10s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 48s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 17s phoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 6m 47s the patch passed
+1 💚 compile 1m 5s the patch passed
+1 💚 cc 1m 5s the patch passed
+1 💚 javac 1m 5s the patch passed
-1 ❌ checkstyle 4m 13s phoenix-core: The patch generated 232 new + 13807 unchanged - 99 fixed = 14039 total (was 13906)
+1 💚 prototool 0m 1s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 48s the patch passed
-1 ❌ spotbugs 3m 32s phoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
+1 💚 unit 200m 50s phoenix-core in the patch passed.
+1 💚 asflicense 0m 10s The patch does not generate ASF License warnings.
244m 39s
Reason Tests
FindBugs module: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]
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/12/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / ee4ce9f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/12/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/12/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/12/testReport/
Max. process+thread count 4864 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/12/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented Apr 1, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 15s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 15m 17s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 6s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 10s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 49s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 15s phoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 6m 56s the patch passed
+1 💚 compile 1m 5s the patch passed
+1 💚 cc 1m 5s the patch passed
+1 💚 javac 1m 5s the patch passed
-1 ❌ checkstyle 4m 12s phoenix-core: The patch generated 284 new + 13755 unchanged - 151 fixed = 14039 total (was 13906)
+1 💚 prototool 0m 1s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 48s the patch passed
-1 ❌ spotbugs 3m 31s phoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
+1 💚 unit 194m 47s phoenix-core in the patch passed.
+1 💚 asflicense 0m 10s The patch does not generate ASF License warnings.
238m 23s
Reason Tests
FindBugs module: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]
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/13/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / ee4ce9f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/13/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/13/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/13/testReport/
Max. process+thread count 5161 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/13/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@gjacoby126 gjacoby126 left a comment

Choose a reason for hiding this comment

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

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.

@@ -111,6 +111,9 @@ message PTable {
optional bool viewModifiedPhoenixTTL = 44;
optional int64 lastDDLTimestamp = 45;
optional bool changeDetectionEnabled = 46;
optional bytes physicalTableNameBytes = 47;
optional bool isModifiable = 48;
Copy link
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

@@ -583,6 +583,7 @@ private static int getReservedQualifier(byte[] bytes, int offset, int length) {
PName getName();
PName getSchemaName();
PName getTableName();
PName getPhysicalTableNameColumnInSyscat();
Copy link
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?

Copy link
Contributor Author

@gokceni gokceni Apr 2, 2021

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

@@ -728,6 +729,13 @@ private static int getReservedQualifier(byte[] bytes, int offset, int length) {
* (use @getPhysicalTableName for this case)
*/
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
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
Contributor Author

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

@@ -583,6 +583,7 @@ private static int getReservedQualifier(byte[] bytes, int offset, int length) {
PName getName();
PName getSchemaName();
PName getTableName();
PName getPhysicalTableNameColumnInSyscat();
Copy link
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
Copy link
Contributor

stoty commented Apr 5, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 6m 49s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 14m 38s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 6s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 4s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 50s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 14s phoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 6m 51s the patch passed
+1 💚 compile 1m 7s the patch passed
+1 💚 cc 1m 7s the patch passed
+1 💚 javac 1m 7s the patch passed
-1 ❌ checkstyle 4m 14s phoenix-core: The patch generated 285 new + 13755 unchanged - 151 fixed = 14040 total (was 13906)
+1 💚 prototool 0m 1s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 47s the patch passed
-1 ❌ spotbugs 3m 30s phoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
+1 💚 unit 199m 49s phoenix-core in the patch passed.
+1 💚 asflicense 0m 10s The patch does not generate ASF License warnings.
248m 11s
Reason Tests
FindBugs module: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]
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/14/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / ee4ce9f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/14/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/14/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/14/testReport/
Max. process+thread count 5139 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/14/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@stoty
Copy link
Contributor

stoty commented Apr 6, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 9s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 14m 51s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 7s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 2s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 49s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 17s phoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 6m 54s the patch passed
+1 💚 compile 1m 5s the patch passed
+1 💚 cc 1m 5s the patch passed
+1 💚 javac 1m 5s the patch passed
-1 ❌ checkstyle 4m 14s phoenix-core: The patch generated 231 new + 13807 unchanged - 99 fixed = 14038 total (was 13906)
+1 💚 prototool 0m 2s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 48s the patch passed
-1 ❌ spotbugs 3m 31s phoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
-1 ❌ unit 197m 6s phoenix-core in the patch failed.
+1 💚 asflicense 0m 39s The patch does not generate ASF License warnings.
242m 16s
Reason Tests
FindBugs module: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 tests phoenix.end2end.UpsertSelectIT
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/15/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / ee4ce9f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/15/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/15/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
unit https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/15/artifact/yetus-general-check/output/patch-unit-phoenix-core.txt
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/15/testReport/
Max. process+thread count 5123 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/15/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Copy link
Contributor

@gjacoby126 gjacoby126 left a comment

Choose a reason for hiding this comment

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

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

@@ -896,6 +898,9 @@ private boolean addColumnsAndIndexesFromAncestors(MetaDataMutationResult result,
MetaDataMutationResult parentResult = updateCache(connection.getTenantId(), parentSchemaName, parentTableName,
false, resolvedTimestamp);
PTable parentTable = parentResult.getTable();
if (LOGGER.isDebugEnabled()) {
Copy link
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.

createIndexOnTable(conn, fullTableName, indexName);
}

SingleCellIndexIT.dumpTable(fullNewTableName);
Copy link
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?

Copy link
Contributor

@gjacoby126 gjacoby126 left a comment

Choose a reason for hiding this comment

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

+1, thanks @gokceni

@gokceni
Copy link
Contributor Author

gokceni commented Apr 7, 2021

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

@gokceni gokceni closed this Apr 7, 2021
@stoty
Copy link
Contributor

stoty commented Apr 8, 2021

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 44s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 hbaseanti 0m 0s Patch does not have any anti-patterns.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ 4.x-PHOENIX-6247 Compile Tests _
+1 💚 mvninstall 15m 59s 4.x-PHOENIX-6247 passed
+1 💚 compile 1m 12s 4.x-PHOENIX-6247 passed
+1 💚 checkstyle 4m 34s 4.x-PHOENIX-6247 passed
+1 💚 javadoc 0m 58s 4.x-PHOENIX-6247 passed
+0 🆗 spotbugs 3m 36s phoenix-core in 4.x-PHOENIX-6247 has 941 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 8m 12s the patch passed
+1 💚 compile 1m 11s the patch passed
+1 💚 cc 1m 11s the patch passed
+1 💚 javac 1m 11s the patch passed
-1 ❌ checkstyle 4m 51s phoenix-core: The patch generated 286 new + 13755 unchanged - 151 fixed = 14041 total (was 13906)
+1 💚 prototool 0m 1s There were no new prototool issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
+1 💚 javadoc 0m 58s the patch passed
-1 ❌ spotbugs 3m 47s phoenix-core generated 5 new + 941 unchanged - 0 fixed = 946 total (was 941)
_ Other Tests _
+1 💚 unit 222m 0s phoenix-core in the patch passed.
+1 💚 asflicense 0m 11s The patch does not generate ASF License warnings.
270m 19s
Reason Tests
FindBugs module: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]
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/16/artifact/yetus-general-check/output/Dockerfile
GITHUB PR #1170
Optional Tests dupname asflicense javac javadoc unit spotbugs hbaseanti checkstyle compile cc prototool
uname Linux 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 tool maven
Personality dev/phoenix-personality.sh
git revision 4.x-PHOENIX-6247 / ee4ce9f
Default Java Private Build-1.8.0_242-8u242-b08-0ubuntu3~16.04-b08
checkstyle https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/16/artifact/yetus-general-check/output/diff-checkstyle-phoenix-core.txt
spotbugs https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/16/artifact/yetus-general-check/output/new-spotbugs-phoenix-core.html
Test Results https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/16/testReport/
Max. process+thread count 4868 (vs. ulimit of 30000)
modules C: phoenix-core U: phoenix-core
Console output https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1170/16/console
versions git=2.7.4 maven=3.3.9 spotbugs=4.1.3 prototool=1.10.0-dev
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

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

Successfully merging this pull request may close these issues.

5 participants