You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@phoenix.apache.org by GitBox <gi...@apache.org> on 2020/03/12 04:19:18 UTC

[GitHub] [phoenix] swaroopak commented on a change in pull request #731: PHOENIX-5673 : The mutation state is silently getting cleared on the …

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

 ##########
 File path: phoenix-core/src/test/java/org/apache/phoenix/schema/MutationTest.java
 ##########
 @@ -55,9 +55,13 @@ private void testDurability(boolean disableWAL) throws Exception {
             assertDurability(conn,expectedDurability);
             conn.createStatement().execute("DELETE FROM t1 WHERE k=1");
             assertDurability(conn,expectedDurability);
-            conn.createStatement().execute("DROP TABLE t1");
         } finally {
-            conn.close();
+            try {
+                conn.rollback();
 
 Review comment:
   want to use try-with-resource instead?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services