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-4555 Only mark view as updatable if rows cannot overlap with other updatable views #1704

Open
wants to merge 20 commits into
base: master
Choose a base branch
from

Conversation

jinggou
Copy link
Contributor

@jinggou jinggou commented Oct 11, 2023

Jira: PHOENIX-4555

@virajjasani virajjasani self-requested a review October 12, 2023 17:15
@virajjasani virajjasani changed the title PHOENIX-4555 Only mark view as updatable if rows cannot overlap with … PHOENIX-4555 Only mark view as updatable if rows cannot overlap with other updatable views Oct 25, 2023
@virajjasani
Copy link
Contributor

For this failure https://ci-hadoop.apache.org/job/Phoenix/job/Phoenix-PreCommit-GitHub-PR/job/PR-1704/12/testReport/org.apache.phoenix.end2end/LogicalTableNameExtendedIT/testUpdatePhysicalTableName_tenantViews/

java.lang.RuntimeException: org.apache.hadoop.hbase.TableNotFoundException: SYSTEM.CHILD_LINK
	at org.apache.phoenix.compile.CreateTableCompiler.compile(CreateTableCompiler.java:194)
	at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableCreateTableStatement.compilePlan(PhoenixStatement.java:1070)
	at org.apache.phoenix.jdbc.PhoenixStatement$ExecutableCreateTableStatement.compilePlan(PhoenixStatement.java:1056)
	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:552)
	at org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:533)
	at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
	at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:532)
	at org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:520)
	at org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:2253)

you can refer to 2e0da18

Basically we need to handle namespace resolution.

@virajjasani
Copy link
Contributor

The above commit belongs to PR #1709

@virajjasani
Copy link
Contributor

Let me keep this here for reference, we can also contribute this later as separate commit.

Patch to run BackwardCompatibilityIT locally:

diff --git a/phoenix-core/src/it/resources/compatible_client_versions.json b/phoenix-core/src/it/resources/compatible_client_versions.json
index 2cb449015..037289bce 100644
--- a/phoenix-core/src/it/resources/compatible_client_versions.json
+++ b/phoenix-core/src/it/resources/compatible_client_versions.json
@@ -25,5 +25,5 @@
     "2.2": [ {"artifactId":"phoenix-client-hbase-2.2", "version":"5.1.0"} ],
     "2.3": [ {"artifactId":"phoenix-client-hbase-2.3", "version":"5.1.0"}, {"artifactId":"phoenix-client-hbase-2.3", "version":"5.2.0"} ],
     "2.4": [ {"artifactId":"phoenix-client-hbase-2.4", "version":"5.1.0"}, {"artifactId":"phoenix-client-hbase-2.3", "version":"5.2.0"} ],
-    "2.5": [ {"artifactId":"phoenix-client-hbase-2.5", "version":"5.2.0"} ]
+    "2.5": [ {"artifactId":"phoenix-client-hbase-2.5", "version":"5.1.3"} ]
 }

@virajjasani
Copy link
Contributor

We are really close now :)

@jinggou
Copy link
Contributor Author

jinggou commented Dec 2, 2023

For the failed test org.apache.phoenix.end2end.index.ChildViewsUseParentViewIndexIT.testParentViewIndexWithSpecializedChildViews, seems it's an existing bug on view indexes because I ran the modified test on master branch and got the same issue. @jpisaac also got this issue on another test when views extending pk, and now it also happens on views without extending pk. Maybe we can create a Jira for this bug and ignore this test for now.

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