Github user JamesRTaylor commented on a diff in the pull request:
https://github.com/apache/phoenix/pull/37#discussion_r25372379
--- Diff:
phoenix-core/src/main/java/org/apache/phoenix/jdbc/PhoenixConnection.java ---
@@ -426,6 +430,7 @@ public Void call() throws SQLException {
return null;
}
}, Tracing.withTracing(this, "committing mutations"));
+ statementExecutionCounter = 0;
}
--- End diff --
Instead of mucking with the MutationState methods and having to add a
setter for the state, how about this (part 1 of 3)?
{code}
// In PhoenixConnection constructor, have construction of
MutationState
// go through method on PhoenixConnection to enable tests to
specialize
// the method
this.mutationState = newMutationState(maxSize);
this.services.addConnection(this);
// setup tracing, if its enabled
this.sampler = Tracing.getConfiguredSampler(this);
this.customTracingAnnotations =
getImmutableCustomTracingAnnotations();
}
protected MutationState newMutationState(int maxSize) {
return new MutationState(maxSize, this);
}
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---