Re: [PR] KAFKA-14785: Connect offset read REST API [kafka]
yashmayya commented on code in PR #13434: URL: https://github.com/apache/kafka/pull/13434#discussion_r1590316538 ## connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaOffsetBackingStore.java: ## @@ -141,24 +145,13 @@ private static String noClientId() { protected KafkaBasedLog offsetLog; // Visible for testing final HashMap data = new HashMap<>(); +private final Map>> connectorPartitions = new HashMap<>(); +private Converter keyConverter; private final Supplier topicAdminSupplier; private final Supplier clientIdBase; private SharedTopicAdmin ownTopicAdmin; protected boolean exactlyOnce; -/** - * Create an {@link OffsetBackingStore} backed by a Kafka topic. This constructor will cause the - * store to instantiate and close its own {@link TopicAdmin} during {@link #configure(WorkerConfig)} - * and {@link #stop()}, respectively. - * - * @deprecated use {@link #KafkaOffsetBackingStore(Supplier, Supplier)} instead - */ -@Deprecated -public KafkaOffsetBackingStore() { Review Comment: @chia7712 I've raised this PR to remove the other two deprecated constructors - https://github.com/apache/kafka/pull/15865 (and also added some context in the PR on why deprecation was introduced rather than removal even though these classes are not in the public API). -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org
Re: [PR] KAFKA-14785: Connect offset read REST API [kafka]
chia7712 commented on code in PR #13434: URL: https://github.com/apache/kafka/pull/13434#discussion_r1590212654 ## connect/runtime/src/main/java/org/apache/kafka/connect/storage/KafkaOffsetBackingStore.java: ## @@ -141,24 +145,13 @@ private static String noClientId() { protected KafkaBasedLog offsetLog; // Visible for testing final HashMap data = new HashMap<>(); +private final Map>> connectorPartitions = new HashMap<>(); +private Converter keyConverter; private final Supplier topicAdminSupplier; private final Supplier clientIdBase; private SharedTopicAdmin ownTopicAdmin; protected boolean exactlyOnce; -/** - * Create an {@link OffsetBackingStore} backed by a Kafka topic. This constructor will cause the - * store to instantiate and close its own {@link TopicAdmin} during {@link #configure(WorkerConfig)} - * and {@link #stop()}, respectively. - * - * @deprecated use {@link #KafkaOffsetBackingStore(Supplier, Supplier)} instead - */ -@Deprecated -public KafkaOffsetBackingStore() { Review Comment: Sorry for making noise on this PR. out of curiosity, should we remove deprecated constructors from `KafkaStatusBackingStore` and `KafkaConfigBackingStore` too? not sure whether those internal classes need the deprecation cycle? -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org