-
Notifications
You must be signed in to change notification settings - Fork 1k
PHOENIX-5673 : The mutation state is silently getting cleared on the … #710
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
Conversation
ChinmaySKulkarni
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@siddhimehta overall looks good. I have a few comments. Just to make sure, can we also test this with view creation and view index creation. Currently it looks like we have a test for just table creation (no need to add new tests for these cases, but let's just check it works as expected).
phoenix-core/src/it/java/org/apache/phoenix/end2end/MutationStateIT.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/it/java/org/apache/phoenix/end2end/MutationStateIT.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixStatement.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/test/java/org/apache/phoenix/execute/MutationStateTest.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/test/java/org/apache/phoenix/execute/MutationStateTest.java
Outdated
Show resolved
Hide resolved
phoenix-core/src/test/java/org/apache/phoenix/execute/MutationStateTest.java
Outdated
Show resolved
Hide resolved
8741838 to
3d28778
Compare
|
@ChinmaySKulkarni Tested view creation and index creation also |
| ensureTableCreated(getUrl(), tableName, TestUtil.PTSDB_NAME, null, null, null); | ||
| Properties props = new Properties(); | ||
| props.setProperty(QueryServices.PENDING_MUTATIONS_DDL_THROW_ATTRIB, Boolean.toString(true)); | ||
| Connection conn = DriverManager.getConnection(getUrl(), props); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: try-with-resources to auto-close connection and statement.
3d28778 to
d8399e0
Compare
ChinmaySKulkarni
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 thanks @siddhimehta
…execution of any DDL
d8399e0 to
3e0bb9d
Compare
@ChinmaySKulkarni @abhishek-chouhan Creating this PR to get feedback on the approach.
I have added a config to enable this behaviour ( default false).
Ran all the IT locally for the same