ferenc-csaky commented on code in PR #30:
URL:
https://github.com/apache/flink-connector-hbase/pull/30#discussion_r1380342179
##########
flink-connector-hbase-base/src/main/java/org/apache/flink/connector/hbase/sink/HBaseSinkFunction.java:
##########
@@ -256,4 +263,39 @@ public void
onException(RetriesExhaustedWithDetailsException exception, Buffered
// if the failure handler decides to throw an exception
failureThrowable.compareAndSet(null, exception);
}
+
+ /**
+ * Thread-safe class, grouped mutations by rows and keep the latest
mutation. For more info, see
+ * <a
href="https://issues.apache.org/jira/browse/HBASE-8626">HBASE-8626</a>.
+ */
+ private static class DeduplicatedMutator {
Review Comment:
If we check the `BufferedMutatorImpl`, on HBase 1.4 only the `flush()` and
`close()`, on HBase 2.2 only the `close()` methods are actually `synchronized`.
I suggest to keep it on `flush` and `close` now and I'd put a `TODO` on `flush`
to remove the `synchronized` keyword if HBase 1.4 support is dropped.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]