Github user zentol commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2707#discussion_r86107282
  
    --- Diff: 
flink-streaming-connectors/flink-connector-cassandra/src/main/java/org/apache/flink/streaming/connectors/cassandra/CassandraCommitter.java
 ---
    @@ -95,16 +100,10 @@ public void open() throws Exception {
                }
                cluster = builder.getCluster();
                session = cluster.connect();
    -
    -           updateStatement = session.prepare(String.format("UPDATE %s.%s 
set checkpoint_id=? where sink_id='%s' and sub_id=%d;", keySpace, table, 
operatorId, subtaskId));
    -           selectStatement = session.prepare(String.format("SELECT 
checkpoint_id FROM %s.%s where sink_id='%s' and sub_id=%d;", keySpace, table, 
operatorId, subtaskId));
    -
    -           session.execute(String.format("INSERT INTO %s.%s (sink_id, 
sub_id, checkpoint_id) values ('%s', %d, " + -1 + ") IF NOT EXISTS;", keySpace, 
table, operatorId, subtaskId));
        }
     
        @Override
        public void close() throws Exception {
    -           this.lastCommittedCheckpointID = -1;
    --- End diff --
    
    where is the replacement for this line? (This is useful for testing)


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

Reply via email to