klion26 commented on a change in pull request #8967: [FLINK-13059][Cassandra 
Connector] Release Semaphore correctly on Exception in send()
URL: https://github.com/apache/flink/pull/8967#discussion_r303800310
 
 

 ##########
 File path: 
flink-connectors/flink-connector-cassandra/src/main/java/org/apache/flink/streaming/connectors/cassandra/CassandraSinkBase.java
 ##########
 @@ -140,10 +146,15 @@ protected Session createSession() {
        public abstract ListenableFuture<V> send(IN value);
 
        private void tryAcquire() throws InterruptedException, TimeoutException 
{
 
 Review comment:
   As this function is private, do we still need to keep it? or just call 
`tryAcquire(int permits)` directly in `invoke`

----------------------------------------------------------------
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