[GitHub] [kafka] chia7712 commented on pull request #6915: KAFKA-8334 Executor to retry delayed operations failed to obtain lock

2020-05-09 Thread GitBox
chia7712 commented on pull request #6915: URL: https://github.com/apache/kafka/pull/6915#issuecomment-626119452 @junrao thanks for the great explanation. It is indeed a long story of lock improvement in kafka :) > After it appends to the local log, it may call ReplicaManager.tryComp

[GitHub] [kafka] ocadaruma commented on pull request #7539: KAFKA-6968: Adds calls to listener on rebalance of MockConsumer

2020-05-09 Thread GitBox
ocadaruma commented on pull request #7539: URL: https://github.com/apache/kafka/pull/7539#issuecomment-626127671 Yeah, rebalance listener is called upon `onJoinComplete/onJoinPrepare`, and it happens as part of `KafkaConsumer#poll` as stated in `ConsumerRebalanceListener`'s javadoc. (http

[GitHub] [kafka] chia7712 opened a new pull request #8636: MINOR: remove duplicate properties encode in KafkaZkClient#setOrCreat…

2020-05-09 Thread GitBox
chia7712 opened a new pull request #8636: URL: https://github.com/apache/kafka/pull/8636 the properties is encoded three times by ```KafkaZkClient#setOrCreateEntityConfigs``` :( ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ]

[GitHub] [kafka] chia7712 commented on a change in pull request #8633: KAFKA-9965: Incrementing counter cause uneven distribution with RoundRobinPartitioner

2020-05-09 Thread GitBox
chia7712 commented on a change in pull request #8633: URL: https://github.com/apache/kafka/pull/8633#discussion_r422471952 ## File path: clients/src/main/java/org/apache/kafka/clients/producer/RoundRobinPartitioner.java ## @@ -73,4 +73,12 @@ private int nextValue(String topic)

[GitHub] [kafka] AshishRoyJava commented on a change in pull request #8633: KAFKA-9965: Incrementing counter cause uneven distribution with RoundRobinPartitioner

2020-05-09 Thread GitBox
AshishRoyJava commented on a change in pull request #8633: URL: https://github.com/apache/kafka/pull/8633#discussion_r422473147 ## File path: clients/src/main/java/org/apache/kafka/clients/producer/RoundRobinPartitioner.java ## @@ -73,4 +73,12 @@ private int nextValue(String t

[GitHub] [kafka] feyman2016 commented on pull request #8589: KAFKA-9146: KIP-571 Add option to force delete active members in StreamsResetter

2020-05-09 Thread GitBox
feyman2016 commented on pull request #8589: URL: https://github.com/apache/kafka/pull/8589#issuecomment-626141315 Call for retest and review, thanks! This is an automated message from the Apache Git Service. To respond to the

[GitHub] [kafka] AshishRoyJava commented on a change in pull request #8633: KAFKA-9965: Incrementing counter cause uneven distribution with RoundRobinPartitioner

2020-05-09 Thread GitBox
AshishRoyJava commented on a change in pull request #8633: URL: https://github.com/apache/kafka/pull/8633#discussion_r422485633 ## File path: clients/src/main/java/org/apache/kafka/clients/producer/RoundRobinPartitioner.java ## @@ -73,4 +73,12 @@ private int nextValue(String t

[GitHub] [kafka] AshishRoyJava commented on pull request #8633: KAFKA-9965: Incrementing counter cause uneven distribution with RoundRobinPartitioner

2020-05-09 Thread GitBox
AshishRoyJava commented on pull request #8633: URL: https://github.com/apache/kafka/pull/8633#issuecomment-626161764 > Nice finding! Could you add tests for this fix? I was unable to modify the existing test methods. This `RoundRobinPartitioner#onNewBatch` is not being used anywhere

[GitHub] [kafka] chia7712 commented on a change in pull request #8633: KAFKA-9965: Incrementing counter cause uneven distribution with RoundRobinPartitioner

2020-05-09 Thread GitBox
chia7712 commented on a change in pull request #8633: URL: https://github.com/apache/kafka/pull/8633#discussion_r422505119 ## File path: clients/src/main/java/org/apache/kafka/clients/producer/RoundRobinPartitioner.java ## @@ -73,4 +73,12 @@ private int nextValue(String topic)

[GitHub] [kafka] chia7712 commented on pull request #8633: KAFKA-9965: Incrementing counter cause uneven distribution with RoundRobinPartitioner

2020-05-09 Thread GitBox
chia7712 commented on pull request #8633: URL: https://github.com/apache/kafka/pull/8633#issuecomment-626188379 > I was unable to modify the existing test methods. This RoundRobinPartitioner#onNewBatch is not being used anywhere in the existing test methods, hence there was no scope to che

[GitHub] [kafka] AshishRoyJava commented on pull request #8633: KAFKA-9965: Incrementing counter cause uneven distribution with RoundRobinPartitioner

2020-05-09 Thread GitBox
AshishRoyJava commented on pull request #8633: URL: https://github.com/apache/kafka/pull/8633#issuecomment-626194182 @chia7712 Thanks for helping me out. I am new here and trying to contribute for the first time. It will take me some time to go understand the workflow completely.

[jira] [Commented] (KAFKA-9617) Replica Fetcher can mark partition as failed when max.message.bytes is changed

2020-05-09 Thread Chia-Ping Tsai (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-9617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103346#comment-17103346 ] Chia-Ping Tsai commented on KAFKA-9617: --- Should we skip the limit when the fetch is

[GitHub] [kafka] jeffhuang26 commented on a change in pull request #8620: KAFKA-9944: Added supporting customized HTTP response headers for Kafka Connect.

2020-05-09 Thread GitBox
jeffhuang26 commented on a change in pull request #8620: URL: https://github.com/apache/kafka/pull/8620#discussion_r422511289 ## File path: connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConfig.java ## @@ -400,6 +412,53 @@ public WorkerConfig(ConfigDef de

[GitHub] [kafka] jeffhuang26 commented on a change in pull request #8620: KAFKA-9944: Added supporting customized HTTP response headers for Kafka Connect.

2020-05-09 Thread GitBox
jeffhuang26 commented on a change in pull request #8620: URL: https://github.com/apache/kafka/pull/8620#discussion_r422511289 ## File path: connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConfig.java ## @@ -400,6 +412,53 @@ public WorkerConfig(ConfigDef de

[jira] [Created] (KAFKA-9976) Aggregates should reuse repartition nodes

2020-05-09 Thread Bill Bejeck (Jira)
Bill Bejeck created KAFKA-9976: -- Summary: Aggregates should reuse repartition nodes Key: KAFKA-9976 URL: https://issues.apache.org/jira/browse/KAFKA-9976 Project: Kafka Issue Type: Improvement

[GitHub] [kafka] abbccdda commented on pull request #8632: KAFKA-9972: Only commit tasks with valid states

2020-05-09 Thread GitBox
abbccdda commented on pull request #8632: URL: https://github.com/apache/kafka/pull/8632#issuecomment-626205161 Got 2/3 green build with only one test failure: ``` org.apache.kafka.streams.integration.EosBetaUpgradeIntegrationTest.shouldUpgradeFromEosAlphaToEosBeta[false] java.

[jira] [Commented] (KAFKA-9617) Replica Fetcher can mark partition as failed when max.message.bytes is changed

2020-05-09 Thread Ismael Juma (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-9617?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103396#comment-17103396 ] Ismael Juma commented on KAFKA-9617: Yeah, I think that's reasonable. [~showuon] are

[jira] [Commented] (KAFKA-9972) Corrupted standby task could be committed

2020-05-09 Thread John Roesler (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-9972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103400#comment-17103400 ] John Roesler commented on KAFKA-9972: - Hi Sophie, You hinted at a general solution,

[jira] [Commented] (KAFKA-9798) Flaky test: org.apache.kafka.streams.integration.QueryableStateIntegrationTest.shouldAllowConcurrentAccesses

2020-05-09 Thread John Roesler (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-9798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103406#comment-17103406 ] John Roesler commented on KAFKA-9798: - Funny you should ask my opinion, since I was j

[jira] [Commented] (KAFKA-7224) KIP-328: Add spill-to-disk for Suppression

2020-05-09 Thread John Roesler (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-7224?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103420#comment-17103420 ] John Roesler commented on KAFKA-7224: - Hi Maatari, Yeah, it probably seems beside th

[GitHub] [kafka] bbejeck commented on pull request #8504: KAFKA-9298: reuse mapped stream error in joins

2020-05-09 Thread GitBox
bbejeck commented on pull request #8504: URL: https://github.com/apache/kafka/pull/8504#issuecomment-626220068 @mjsax- Updated this to always reuse repartition graph node. Also, Aggregates follow a similar pattern to what joins used to do. IMHO we need to make the behavior consisten

[GitHub] [kafka] bbejeck opened a new pull request #8637: KAFKA-9976: Reuse repartition node in all cases

2020-05-09 Thread GitBox
bbejeck opened a new pull request #8637: URL: https://github.com/apache/kafka/pull/8637 If a `KGroupedStream` or `KGroupedTable` requires a repartition, reusing the same instance results in creating a new repartition topic. Unless the user provides a name via `Grouped`. However, we shou

[GitHub] [kafka] bbejeck commented on a change in pull request #8637: KAFKA-9976: Reuse repartition node in all cases

2020-05-09 Thread GitBox
bbejeck commented on a change in pull request #8637: URL: https://github.com/apache/kafka/pull/8637#discussion_r422544340 ## File path: streams/src/main/java/org/apache/kafka/streams/kstream/internals/GroupedStreamAggregateBuilder.java ## @@ -85,10 +85,8 @@ source

[GitHub] [kafka] bbejeck commented on pull request #8637: KAFKA-9976: Reuse repartition node in all cases

2020-05-09 Thread GitBox
bbejeck commented on pull request #8637: URL: https://github.com/apache/kafka/pull/8637#issuecomment-626233467 ping @mjsax and @vvcephei for review This is an automated message from the Apache Git Service. To respond to the m

[GitHub] [kafka] bbejeck edited a comment on pull request #8504: KAFKA-9298: reuse mapped stream error in joins

2020-05-09 Thread GitBox
bbejeck edited a comment on pull request #8504: URL: https://github.com/apache/kafka/pull/8504#issuecomment-626220068 @mjsax- Updated this to always reuse repartition graph node. Also, Aggregates follow a similar pattern to what joins used to do. IMHO we need to make the behavior co

[GitHub] [kafka] bbejeck edited a comment on pull request #8504: KAFKA-9298: reuse mapped stream error in joins

2020-05-09 Thread GitBox
bbejeck edited a comment on pull request #8504: URL: https://github.com/apache/kafka/pull/8504#issuecomment-626220068 @mjsax - Updated this to always reuse repartition graph node. Also, Aggregates follow a similar pattern to what joins used to do. IMHO we need to make the behavior c

[GitHub] [kafka] bbejeck edited a comment on pull request #8637: KAFKA-9976: Reuse repartition node in all cases for KGroupedStream and KGroupedTable aggregates

2020-05-09 Thread GitBox
bbejeck edited a comment on pull request #8637: URL: https://github.com/apache/kafka/pull/8637#issuecomment-626233467 ping @mjsax and @vvcephei for review relates to fix in https://github.com/apache/kafka/pull/8504 Thi

[GitHub] [kafka] jeffhuang26 opened a new pull request #8638: KAFAKA-9958: Added metrics support to Authorizer

2020-05-09 Thread GitBox
jeffhuang26 opened a new pull request #8638: URL: https://github.com/apache/kafka/pull/8638 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 t

[GitHub] [kafka] junrao commented on pull request #6915: KAFKA-8334 Executor to retry delayed operations failed to obtain lock

2020-05-09 Thread GitBox
junrao commented on pull request #6915: URL: https://github.com/apache/kafka/pull/6915#issuecomment-626248856 @chia7712 : Yes, the main issue is that `Partition.tryCompleteDelayedRequests()` is called through `ReplicaManager.appendRecords()` while a group lock is held in the caller. We ne

[GitHub] [kafka] jsancio opened a new pull request #8639: KAFKA-9962: Make the auth operations fields ignorable

2020-05-09 Thread GitBox
jsancio opened a new pull request #8639: URL: https://github.com/apache/kafka/pull/8639 *More detailed description of your change, if necessary. The PR title and PR message become the squashed commit message, so use a separate comment to ping reviewers.* *Summary of testing s

[GitHub] [kafka] jsancio commented on pull request #8639: KAFKA-9962: Make the auth operations fields ignorable

2020-05-09 Thread GitBox
jsancio commented on pull request #8639: URL: https://github.com/apache/kafka/pull/8639#issuecomment-626254232 @omkreddy When we merge this we need to cherry pick this to the versions enumerated in the Jira. This is an autom

[GitHub] [kafka] zhaohaidao commented on pull request #8550: KAFKA-9850 Move KStream#repartition operator validation during Topolo…

2020-05-09 Thread GitBox
zhaohaidao commented on pull request #8550: URL: https://github.com/apache/kafka/pull/8550#issuecomment-626255004 > Retest this please. @mjsax could you retest this? I tested cases in my laptop and the failed case passed -

[GitHub] [kafka] ijuma commented on pull request #8639: KAFKA-9962: Make the auth operations fields ignorable

2020-05-09 Thread GitBox
ijuma commented on pull request #8639: URL: https://github.com/apache/kafka/pull/8639#issuecomment-626256222 Thanks for the PR. I think we should update the admin client compatibility test to include this. This is an automat

[jira] [Commented] (KAFKA-9972) Corrupted standby task could be committed

2020-05-09 Thread Sophie Blee-Goldman (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-9972?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103577#comment-17103577 ] Sophie Blee-Goldman commented on KAFKA-9972: Not exactly, I was proposing to

[GitHub] [kafka] jsancio edited a comment on pull request #8639: KAFKA-9962: Make the auth operations fields ignorable

2020-05-09 Thread GitBox
jsancio edited a comment on pull request #8639: URL: https://github.com/apache/kafka/pull/8639#issuecomment-626254232 @omkreddy When we merge this, we need to cherry pick this to the versions enumerated in the Jira. This is

[GitHub] [kafka] jsancio commented on pull request #8639: KAFKA-9962: Make the auth operations fields ignorable

2020-05-09 Thread GitBox
jsancio commented on pull request #8639: URL: https://github.com/apache/kafka/pull/8639#issuecomment-626264546 > > > Thanks for the PR. I think we should update the admin client compatibility test to include this. @ijuma, I am not sure I follow. Do you mean these kind of test

[jira] [Commented] (KAFKA-9958) Expose Kafka Metrics in AuthorizerServerInfo

2020-05-09 Thread sats (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-9958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103616#comment-17103616 ] sats commented on KAFKA-9958: - [~jeffhuang0126] I think this fix should be applied to trunk t

[GitHub] [kafka] liukrimhrim commented on pull request #8630: KAFKA-9969: Exclude ConnectorClientConfigRequest from class loading isolation

2020-05-09 Thread GitBox
liukrimhrim commented on pull request #8630: URL: https://github.com/apache/kafka/pull/8630#issuecomment-626269096 > I've refactored the `PluginUtilsTest` to include more cases, and discovered one discrepancy for the `basic-auth-extension`. > > Based on the pattern from the other mod

[GitHub] [kafka] jeffhuang26 commented on pull request #8638: KAFAKA-9958: Added metrics support to Authorizer

2020-05-09 Thread GitBox
jeffhuang26 commented on pull request #8638: URL: https://github.com/apache/kafka/pull/8638#issuecomment-626269228 I am thinking we might move the class AuthorizerMetrics(metrics: Metrics) from AclAuthorizer.scala to the package org.kafka.server.authorizer, so that other Authorizer can reu

[jira] [Commented] (KAFKA-9958) Expose Kafka Metrics in AuthorizerServerInfo

2020-05-09 Thread Jeff Huang (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-9958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103638#comment-17103638 ] Jeff Huang commented on KAFKA-9958: --- I already raised a PR for this. [~sbellapu]  . Thi

[jira] [Comment Edited] (KAFKA-9958) Expose Kafka Metrics in AuthorizerServerInfo

2020-05-09 Thread Jeff Huang (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-9958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103638#comment-17103638 ] Jeff Huang edited comment on KAFKA-9958 at 5/10/20, 4:14 AM: -

[GitHub] [kafka] guozhangwang commented on pull request #8221: KAFKA-9561: update task input partitions after rebalance

2020-05-09 Thread GitBox
guozhangwang commented on pull request #8221: URL: https://github.com/apache/kafka/pull/8221#issuecomment-626271755 test this please This is an automated message from the Apache Git Service. To respond to the message, please

[GitHub] [kafka] guozhangwang commented on a change in pull request #8221: KAFKA-9561: update task input partitions after rebalance

2020-05-09 Thread GitBox
guozhangwang commented on a change in pull request #8221: URL: https://github.com/apache/kafka/pull/8221#discussion_r422583023 ## File path: streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamTask.java ## @@ -429,6 +421,15 @@ public void closeDirty() {

[jira] [Commented] (KAFKA-9798) Flaky test: org.apache.kafka.streams.integration.QueryableStateIntegrationTest.shouldAllowConcurrentAccesses

2020-05-09 Thread Guozhang Wang (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-9798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17103645#comment-17103645 ] Guozhang Wang commented on KAFKA-9798: -- Haha, fair point. I think the original motiv

[GitHub] [kafka] cmccabe opened a new pull request #8640: MINOR: Fix compare raw tagged fields

2020-05-09 Thread GitBox
cmccabe opened a new pull request #8640: URL: https://github.com/apache/kafka/pull/8640 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

[GitHub] [kafka] cmccabe commented on pull request #8628: KAFKA-9942: Fixes ConfigCommand client quotas w/ default users.

2020-05-09 Thread GitBox
cmccabe commented on pull request #8628: URL: https://github.com/apache/kafka/pull/8628#issuecomment-626273106 ok to test This is an automated message from the Apache Git Service. To respond to the message, please log on to G

[GitHub] [kafka] cmccabe commented on a change in pull request #8569: KIP-551: Expose disk read and write metrics

2020-05-09 Thread GitBox
cmccabe commented on a change in pull request #8569: URL: https://github.com/apache/kafka/pull/8569#discussion_r422584829 ## File path: core/src/main/scala/kafka/metrics/LinuxIoMetricsCollector.scala ## @@ -0,0 +1,96 @@ +/** + * Licensed to the Apache Software Foundation (ASF)

[GitHub] [kafka] cmccabe commented on a change in pull request #8569: KIP-551: Expose disk read and write metrics

2020-05-09 Thread GitBox
cmccabe commented on a change in pull request #8569: URL: https://github.com/apache/kafka/pull/8569#discussion_r422584924 ## File path: core/src/main/scala/kafka/metrics/LinuxIoMetricsCollector.scala ## @@ -0,0 +1,96 @@ +/** + * Licensed to the Apache Software Foundation (ASF)

[GitHub] [kafka] cmccabe commented on a change in pull request #8569: KIP-551: Expose disk read and write metrics

2020-05-09 Thread GitBox
cmccabe commented on a change in pull request #8569: URL: https://github.com/apache/kafka/pull/8569#discussion_r422584924 ## File path: core/src/main/scala/kafka/metrics/LinuxIoMetricsCollector.scala ## @@ -0,0 +1,96 @@ +/** + * Licensed to the Apache Software Foundation (ASF)

[GitHub] [kafka] guozhangwang commented on pull request #8641: MINOR: Remove allow concurrent test

2020-05-09 Thread GitBox
guozhangwang commented on pull request #8641: URL: https://github.com/apache/kafka/pull/8641#issuecomment-626274029 @mjsax @vvcephei This is an automated message from the Apache Git Service. To respond to the message, please

[GitHub] [kafka] guozhangwang opened a new pull request #8641: MINOR: Remove allow concurrent test

2020-05-09 Thread GitBox
guozhangwang opened a new pull request #8641: URL: https://github.com/apache/kafka/pull/8641 ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including up

[GitHub] [kafka] cmccabe commented on a change in pull request #8569: KIP-551: Expose disk read and write metrics

2020-05-09 Thread GitBox
cmccabe commented on a change in pull request #8569: URL: https://github.com/apache/kafka/pull/8569#discussion_r422585408 ## File path: core/src/main/scala/kafka/metrics/LinuxIoMetricsCollector.scala ## @@ -0,0 +1,96 @@ +/** + * Licensed to the Apache Software Foundation (ASF)

[GitHub] [kafka] cmccabe commented on a change in pull request #8569: KIP-551: Expose disk read and write metrics

2020-05-09 Thread GitBox
cmccabe commented on a change in pull request #8569: URL: https://github.com/apache/kafka/pull/8569#discussion_r422585559 ## File path: core/src/main/scala/kafka/metrics/LinuxIoMetricsCollector.scala ## @@ -0,0 +1,96 @@ +/** + * Licensed to the Apache Software Foundation (ASF)

[GitHub] [kafka] cmccabe commented on a change in pull request #8556: MINOR: Add a duplicate() method to Message classes

2020-05-09 Thread GitBox
cmccabe commented on a change in pull request #8556: URL: https://github.com/apache/kafka/pull/8556#discussion_r422586565 ## File path: generator/src/main/java/org/apache/kafka/message/MessageDataGenerator.java ## @@ -2112,6 +2131,83 @@ private void generateFieldHashCode(Field