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_r391394772
##########
File path:
phoenix-core/src/test/java/org/apache/phoenix/execute/MutationStateTest.java
##########
@@ -175,4 +188,36 @@ public void testGetMutationBatchList() {
}
}
+
+ @Rule
+ public ExpectedException exceptionRule = ExpectedException.none();
+
+ @Test
+ public void testPendingMutationsOnDDL() throws Exception {
+ Properties props = PropertiesUtil.deepCopy(TEST_PROPERTIES);
+ props.setProperty(QueryServices.PENDING_MUTATIONS_DDL_THROW_ATTRIB,
"true");
+ try (Connection conn = DriverManager.getConnection(getUrl(), props);
+ PhoenixConnection spy = spy((PhoenixConnection) conn)) {
+ MutationState mutationState = mock(MutationState.class);
Review comment:
Let's use Mockito annotation instead of inline initialization.
----------------------------------------------------------------
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