ChinmaySKulkarni commented on a change in pull request #710: PHOENIX-5673 : The 
mutation state is silently getting cleared on the …
URL: https://github.com/apache/phoenix/pull/710#discussion_r389058409
 
 

 ##########
 File path: 
phoenix-core/src/it/java/org/apache/phoenix/end2end/MutationStateIT.java
 ##########
 @@ -499,4 +501,32 @@ public void testSplitMutationsIntoSameGroupForSingleRow() 
throws Exception {
         }
     }
 
+    @Rule
+    public ExpectedException exceptionRule = ExpectedException.none();
+
+    @Test
+    public void testDDLwithPendingMutations() throws Exception {
+        String tableName = generateUniqueName();
+        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);
 
 Review comment:
   nit: try-with-resources to auto-close connection and statement.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to