flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pnowojski <...@git.apache.org>
Subject [GitHub] flink pull request #4928: [FLINK-7732][kafka-consumer] Do not commit to kafk...
Date Wed, 01 Nov 2017 10:03:26 GMT
Github user pnowojski commented on a diff in the pull request:

    https://github.com/apache/flink/pull/4928#discussion_r148221257
  
    --- Diff: flink-connectors/flink-connector-kafka-base/src/main/java/org/apache/flink/streaming/connectors/kafka/internals/KafkaTopicPartitionStateSentinel.java
---
    @@ -52,4 +52,7 @@
     	 */
     	public static final long GROUP_OFFSET = -915623761773L;
     
    +	public static boolean isSentinel(long offset) {
    +		return offset < 0;
    --- End diff --
    
    Kafka doesn't allow to commit any negative values 


---

Mime
View raw message