[jira] [Assigned] (KAFKA-13991) Add Admin.updateFeatures() API.

2022-08-23 Thread dengziming (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] dengziming reassigned KAFKA-13991: -- Assignee: dengziming > Add Admin.updateFeatures() API. > --- > >

[GitHub] [kafka] dengziming commented on a diff in pull request #12103: KAFKA-13850: Show missing record type in MetadataShell

2022-08-23 Thread GitBox
dengziming commented on code in PR #12103: URL: https://github.com/apache/kafka/pull/12103#discussion_r860398372 ## shell/src/main/java/org/apache/kafka/shell/MetadataNodeManager.java: ## @@ -333,6 +339,34 @@ private void handleCommitImpl(MetadataRecordType type, ApiMessage

[GitHub] [kafka] dengziming commented on a diff in pull request #12103: KAFKA-13850: Show missing record type in MetadataShell

2022-08-23 Thread GitBox
dengziming commented on code in PR #12103: URL: https://github.com/apache/kafka/pull/12103#discussion_r953285444 ## shell/src/main/java/org/apache/kafka/shell/MetadataNodeManager.java: ## @@ -333,6 +357,36 @@ private void handleCommitImpl(MetadataRecordType type, ApiMessage

[jira] [Resolved] (KAFKA-13981) metadata shell doesn't recognize some new record types

2022-08-23 Thread Luke Chen (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luke Chen resolved KAFKA-13981. --- Resolution: Duplicate > metadata shell doesn't recognize some new record types >

[GitHub] [kafka] showuon commented on a diff in pull request #12103: KAFKA-13850: Show missing record type in MetadataShell

2022-08-23 Thread GitBox
showuon commented on code in PR #12103: URL: https://github.com/apache/kafka/pull/12103#discussion_r953271661 ## shell/src/test/java/org/apache/kafka/shell/MetadataNodeManagerTest.java: ## @@ -336,4 +403,43 @@ public void testProducerIdsRecord() { 11000 + "",

[GitHub] [kafka] showuon closed pull request #12334: KAFKA-13981: Adding new record type handler in metadata shell

2022-08-23 Thread GitBox
showuon closed pull request #12334: KAFKA-13981: Adding new record type handler in metadata shell URL: https://github.com/apache/kafka/pull/12334 -- 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

[GitHub] [kafka] showuon commented on pull request #12103: KAFKA-13850: Show missing record type in MetadataShell

2022-08-23 Thread GitBox
showuon commented on PR #12103: URL: https://github.com/apache/kafka/pull/12103#issuecomment-1225101791 @jsancio , I think we should make this fix into v3.3, WDYT? @dengziming , could you help confirm if this patch contain all record types we have now? Thanks. -- This is an automated

[GitHub] [kafka] showuon commented on a diff in pull request #12548: MINOR: A few cleanups for DescribeQuorum APIs

2022-08-23 Thread GitBox
showuon commented on code in PR #12548: URL: https://github.com/apache/kafka/pull/12548#discussion_r953262169 ## raft/src/test/java/org/apache/kafka/raft/LeaderStateTest.java: ## @@ -302,21 +302,112 @@ public void testGetNonLeaderFollowersByFetchOffsetDescending() { }

[GitHub] [kafka] dengziming commented on pull request #12294: KAFKA-13990: KRaft controller should return right features in ApiVersionResponse

2022-08-23 Thread GitBox
dengziming commented on PR #12294: URL: https://github.com/apache/kafka/pull/12294#issuecomment-1225097010 This is an issue of big influence since it will prevent us from upgrading KRaft cluster, also ping @hachikuji @mumrah -- This is an automated message from the Apache Git Service.

[GitHub] [kafka] dengziming opened a new pull request, #12553: KAFKA-13991: Add Admin.updateFeatures with default options

2022-08-23 Thread GitBox
dengziming opened a new pull request, #12553: URL: https://github.com/apache/kafka/pull/12553 *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.* We have

[GitHub] [kafka] guozhangwang commented on pull request #12552: MINOR: Improve javadocs for offset retention

2022-08-23 Thread GitBox
guozhangwang commented on PR #12552: URL: https://github.com/apache/kafka/pull/12552#issuecomment-1225023208 cc @hachikuji @vcrfxia for reviews. -- 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

[GitHub] [kafka] guozhangwang opened a new pull request, #12552: MINOR: Improve javadocs for offset retention

2022-08-23 Thread GitBox
guozhangwang opened a new pull request, #12552: URL: https://github.com/apache/kafka/pull/12552 Our docs for offset retention has been outdated and hence needs to be updated. Also I think it's better to indicate how we handle offsets when delete-topics and delete-groups. ###

[GitHub] [kafka] hachikuji commented on a diff in pull request #12548: MINOR: A few cleanups for DescribeQuorum APIs

2022-08-23 Thread GitBox
hachikuji commented on code in PR #12548: URL: https://github.com/apache/kafka/pull/12548#discussion_r953193355 ## clients/src/main/java/org/apache/kafka/clients/admin/QuorumInfo.java: ## @@ -125,15 +135,15 @@ public long logEndOffset() { * @return The value of the

[GitHub] [kafka] jsancio commented on a diff in pull request #12548: MINOR: A few cleanups for DescribeQuorum APIs

2022-08-23 Thread GitBox
jsancio commented on code in PR #12548: URL: https://github.com/apache/kafka/pull/12548#discussion_r953190262 ## clients/src/main/java/org/apache/kafka/clients/admin/QuorumInfo.java: ## @@ -125,15 +135,15 @@ public long logEndOffset() { * @return The value of the

[jira] [Updated] (KAFKA-14177) Correctly support older kraft versions without FeatureLevelRecord

2022-08-23 Thread Jose Armando Garcia Sancio (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jose Armando Garcia Sancio updated KAFKA-14177: --- Fix Version/s: 3.3.0 > Correctly support older kraft versions

[jira] [Updated] (KAFKA-13950) Resource leak at multiple places in the code

2022-08-23 Thread Jose Armando Garcia Sancio (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jose Armando Garcia Sancio updated KAFKA-13950: --- Fix Version/s: 3.4.0 (was: 3.3.0)

[jira] [Assigned] (KAFKA-14178) NoOpRecord incorrectly causes high controller queue time metric

2022-08-23 Thread Jose Armando Garcia Sancio (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jose Armando Garcia Sancio reassigned KAFKA-14178: -- Assignee: David Arthur > NoOpRecord incorrectly causes high

[GitHub] [kafka] mdedetrich commented on pull request #12475: MINOR; Update scalafmt to latest version

2022-08-23 Thread GitBox
mdedetrich commented on PR #12475: URL: https://github.com/apache/kafka/pull/12475#issuecomment-1224985118 @ijuma So I have some good news, I managed to completely the solve the underlying problem upstream (see https://github.com/diffplug/spotless/issues/1273#issuecomment-1224978741). The

[GitHub] [kafka] hachikuji commented on a diff in pull request #12548: MINOR: A few cleanups for DescribeQuorum APIs

2022-08-23 Thread GitBox
hachikuji commented on code in PR #12548: URL: https://github.com/apache/kafka/pull/12548#discussion_r953181785 ## raft/src/main/java/org/apache/kafka/raft/LeaderState.java: ## @@ -313,43 +312,70 @@ private ReplicaState getReplicaState(int remoteNodeId) { return state;

[GitHub] [kafka] hachikuji commented on a diff in pull request #12548: MINOR: A few cleanups for DescribeQuorum APIs

2022-08-23 Thread GitBox
hachikuji commented on code in PR #12548: URL: https://github.com/apache/kafka/pull/12548#discussion_r953179732 ## raft/src/main/java/org/apache/kafka/raft/LeaderState.java: ## @@ -359,31 +385,46 @@ private boolean isVoter(int remoteNodeId) { private static class

[GitHub] [kafka] hachikuji commented on a diff in pull request #12548: MINOR: A few cleanups for DescribeQuorum APIs

2022-08-23 Thread GitBox
hachikuji commented on code in PR #12548: URL: https://github.com/apache/kafka/pull/12548#discussion_r953178449 ## raft/src/main/java/org/apache/kafka/raft/LeaderState.java: ## @@ -204,50 +198,80 @@ private boolean updateHighWatermark() { return false; } +

[GitHub] [kafka] hachikuji commented on a diff in pull request #12548: MINOR: A few cleanups for DescribeQuorum APIs

2022-08-23 Thread GitBox
hachikuji commented on code in PR #12548: URL: https://github.com/apache/kafka/pull/12548#discussion_r953176589 ## clients/src/main/java/org/apache/kafka/clients/admin/QuorumInfo.java: ## @@ -125,15 +135,15 @@ public long logEndOffset() { * @return The value of the

[GitHub] [kafka] jsancio commented on a diff in pull request #12548: MINOR: A few cleanups for DescribeQuorum APIs

2022-08-23 Thread GitBox
jsancio commented on code in PR #12548: URL: https://github.com/apache/kafka/pull/12548#discussion_r953171207 ## raft/src/main/java/org/apache/kafka/raft/LeaderState.java: ## @@ -313,43 +312,70 @@ private ReplicaState getReplicaState(int remoteNodeId) { return state;

[GitHub] [kafka] hachikuji commented on pull request #12548: KAFKA-14142; Expose kraft high watermark update time in quorum command

2022-08-23 Thread GitBox
hachikuji commented on PR #12548: URL: https://github.com/apache/kafka/pull/12548#issuecomment-1224954292 Just a general note, I'm repurposing this patch as a general cleanup of the new DescribeQuorum APIs. I changed my mind about `HighWatermarkUpdateTimeMs`. I think it can be inferred

[GitHub] [kafka] cmccabe commented on a diff in pull request #12513: KAFKA-14177: Correctly support older kraft versions without FeatureLevelRecord

2022-08-23 Thread GitBox
cmccabe commented on code in PR #12513: URL: https://github.com/apache/kafka/pull/12513#discussion_r952893463 ## metadata/src/main/java/org/apache/kafka/metadata/bootstrap/BootstrapDirectory.java: ## @@ -0,0 +1,134 @@ +/* + * Licensed to the Apache Software Foundation (ASF)

[jira] [Commented] (KAFKA-13950) Resource leak at multiple places in the code

2022-08-23 Thread Divij Vaidya (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17583873#comment-17583873 ] Divij Vaidya commented on KAFKA-13950: -- This is not a release blocking bug. Please feel free to

[GitHub] [kafka] mumrah opened a new pull request, #12551: KAFKA-14178 Don't record queue time for deferred events

2022-08-23 Thread GitBox
mumrah opened a new pull request, #12551: URL: https://github.com/apache/kafka/pull/12551 Adds a simple "deferred" boolean to ControllerWriteEvent which will prevent the event from updating the controller queue time upon running. -- This is an automated message from the Apache Git

[jira] [Commented] (KAFKA-14178) NoOpRecord incorrectly causes high controller queue time metric

2022-08-23 Thread Colin McCabe (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17583854#comment-17583854 ] Colin McCabe commented on KAFKA-14178: -- it seems like in general, deferred events should not

[jira] [Created] (KAFKA-14178) NoOpRecord incorrectly causes high controller queue time metric

2022-08-23 Thread David Arthur (Jira)
David Arthur created KAFKA-14178: Summary: NoOpRecord incorrectly causes high controller queue time metric Key: KAFKA-14178 URL: https://issues.apache.org/jira/browse/KAFKA-14178 Project: Kafka

[GitHub] [kafka] jsancio commented on pull request #12550: MINOR; Update upgrade documentation for 3.3

2022-08-23 Thread GitBox
jsancio commented on PR #12550: URL: https://github.com/apache/kafka/pull/12550#issuecomment-1224875175 > LGTM. We also need to upgrade docs/upgrade.html. Do you plan to do it separately? Thank you @dajac . I updated `docs/upgrade.html` in this PR. Can you please take a look. --

[GitHub] [kafka] wcarlson5 commented on a diff in pull request #12549: KAFKA-10199: Introduce task registry

2022-08-23 Thread GitBox
wcarlson5 commented on code in PR #12549: URL: https://github.com/apache/kafka/pull/12549#discussion_r952998259 ## streams/src/main/java/org/apache/kafka/streams/processor/internals/TaskManager.java: ## @@ -1575,7 +1576,7 @@ void addTask(final Task task) {

[GitHub] [kafka] jsancio opened a new pull request, #12550: MINOR; Update upgrade documentation for 3.3

2022-08-23 Thread GitBox
jsancio opened a new pull request, #12550: URL: https://github.com/apache/kafka/pull/12550 ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade

[GitHub] [kafka] cadonna commented on pull request #12549: KAFKA-10199: Introduce task registry

2022-08-23 Thread GitBox
cadonna commented on PR #12549: URL: https://github.com/apache/kafka/pull/12549#issuecomment-1224477175 Call for review: @wcarlson5 @lihaosky -- 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

[GitHub] [kafka] cadonna opened a new pull request, #12549: KAFKA-10199: Introduce task registry

2022-08-23 Thread GitBox
cadonna opened a new pull request, #12549: URL: https://github.com/apache/kafka/pull/12549 Currently the task manager stores the tasks it manages in an internally. We recently extracted the code to store and retrieve tasks into its own class Tasks. However, the task manager creates

[GitHub] [kafka] C0urante commented on pull request #12478: KAFKA-13952 fix RetryWithToleranceOperator to respect infinite retries configuration

2022-08-23 Thread GitBox
C0urante commented on PR #12478: URL: https://github.com/apache/kafka/pull/12478#issuecomment-1224470640 Yeah, we can make assertions on when/how often `await` is called. If necessary, we can also manually advance the mock time by invoking `Sleep` on it in our testing logic when we're

[GitHub] [kafka] jolshan commented on a diff in pull request #12543: KAFKA-10149: Allow auto preferred leader election for partitions are not being reassigned

2022-08-23 Thread GitBox
jolshan commented on code in PR #12543: URL: https://github.com/apache/kafka/pull/12543#discussion_r952935878 ## core/src/test/scala/unit/kafka/controller/ControllerIntegrationTest.scala: ## @@ -490,6 +490,41 @@ class ControllerIntegrationTest extends QuorumTestHarness {

[GitHub] [kafka] jolshan commented on a diff in pull request #12501: KAFKA-14097: Separate configuration for producer ID expiry

2022-08-23 Thread GitBox
jolshan commented on code in PR #12501: URL: https://github.com/apache/kafka/pull/12501#discussion_r952935241 ## core/src/test/scala/other/kafka/StressTestLog.scala: ## @@ -50,7 +50,7 @@ object StressTestLog { time = time, maxTransactionTimeoutMs = 5 * 60 * 1000,

[GitHub] [kafka] jolshan commented on a diff in pull request #12501: KAFKA-14097: Separate configuration for producer ID expiry

2022-08-23 Thread GitBox
jolshan commented on code in PR #12501: URL: https://github.com/apache/kafka/pull/12501#discussion_r952934587 ## core/src/main/scala/kafka/server/KafkaConfig.scala: ## @@ -534,6 +537,9 @@ object KafkaConfig { val TransactionsAbortTimedOutTransactionCleanupIntervalMsProp =

[jira] [Commented] (KAFKA-13950) Resource leak at multiple places in the code

2022-08-23 Thread Jose Armando Garcia Sancio (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17583768#comment-17583768 ] Jose Armando Garcia Sancio commented on KAFKA-13950: Hey [~divijvaidya] , Thanks for

[jira] [Updated] (KAFKA-6527) Transient failure in DynamicBrokerReconfigurationTest.testDefaultTopicConfig

2022-08-23 Thread Jose Armando Garcia Sancio (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-6527?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jose Armando Garcia Sancio updated KAFKA-6527: -- Fix Version/s: 3.4.0 (was: 3.3.0) > Transient

[jira] [Commented] (KAFKA-6527) Transient failure in DynamicBrokerReconfigurationTest.testDefaultTopicConfig

2022-08-23 Thread Jose Armando Garcia Sancio (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-6527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17583765#comment-17583765 ] Jose Armando Garcia Sancio commented on KAFKA-6527: --- This test is getting skipped.

[jira] [Updated] (KAFKA-7957) Flaky Test DynamicBrokerReconfigurationTest#testMetricsReporterUpdate

2022-08-23 Thread Jose Armando Garcia Sancio (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-7957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jose Armando Garcia Sancio updated KAFKA-7957: -- Fix Version/s: 3.4.0 (was: 3.3.0) > Flaky Test

[jira] [Commented] (KAFKA-7957) Flaky Test DynamicBrokerReconfigurationTest#testMetricsReporterUpdate

2022-08-23 Thread Jose Armando Garcia Sancio (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-7957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17583764#comment-17583764 ] Jose Armando Garcia Sancio commented on KAFKA-7957: --- This test is currently getting

[jira] [Updated] (KAFKA-8280) Flaky Test DynamicBrokerReconfigurationTest#testUncleanLeaderElectionEnable

2022-08-23 Thread Jose Armando Garcia Sancio (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-8280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jose Armando Garcia Sancio updated KAFKA-8280: -- Fix Version/s: 3.4.0 (was: 3.3.0) > Flaky Test

[jira] [Commented] (KAFKA-8280) Flaky Test DynamicBrokerReconfigurationTest#testUncleanLeaderElectionEnable

2022-08-23 Thread Jose Armando Garcia Sancio (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-8280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17583763#comment-17583763 ] Jose Armando Garcia Sancio commented on KAFKA-8280: --- This test is currently getting

[jira] [Updated] (KAFKA-13421) Fix ConsumerBounceTest#testRollingBrokerRestartsWithSmallerMaxGroupSizeConfigDisruptsBigGroup

2022-08-23 Thread Jose Armando Garcia Sancio (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jose Armando Garcia Sancio updated KAFKA-13421: --- Fix Version/s: 3.4.0 (was: 3.3.0) > Fix >

[jira] [Commented] (KAFKA-13421) Fix ConsumerBounceTest#testRollingBrokerRestartsWithSmallerMaxGroupSizeConfigDisruptsBigGroup

2022-08-23 Thread Jose Armando Garcia Sancio (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13421?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17583760#comment-17583760 ] Jose Armando Garcia Sancio commented on KAFKA-13421: This test is currently getting

[jira] [Updated] (KAFKA-13736) Flaky kafka.network.SocketServerTest.closingChannelWithBufferedReceives

2022-08-23 Thread Jose Armando Garcia Sancio (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jose Armando Garcia Sancio updated KAFKA-13736: --- Fix Version/s: 3.4.0 (was: 3.3.0) > Flaky

[GitHub] [kafka] cmccabe commented on a diff in pull request #12513: KAFKA-14177: Correctly support older kraft versions without FeatureLevelRecord

2022-08-23 Thread GitBox
cmccabe commented on code in PR #12513: URL: https://github.com/apache/kafka/pull/12513#discussion_r952893463 ## metadata/src/main/java/org/apache/kafka/metadata/bootstrap/BootstrapDirectory.java: ## @@ -0,0 +1,134 @@ +/* + * Licensed to the Apache Software Foundation (ASF)

[GitHub] [kafka] cmccabe commented on a diff in pull request #12513: KAFKA-14177: Correctly support older kraft versions without FeatureLevelRecord

2022-08-23 Thread GitBox
cmccabe commented on code in PR #12513: URL: https://github.com/apache/kafka/pull/12513#discussion_r952882843 ## metadata/src/main/java/org/apache/kafka/controller/QuorumController.java: ## @@ -1118,6 +1059,65 @@ private void updateWriteOffset(long offset) { } }

[GitHub] [kafka] yashmayya commented on pull request #12478: KAFKA-13952 fix RetryWithToleranceOperator to respect infinite retries configuration

2022-08-23 Thread GitBox
yashmayya commented on PR #12478: URL: https://github.com/apache/kafka/pull/12478#issuecomment-1224289212 >Why construct the latches in Worker? Wouldn't it be cleaner to create them in the RetryWithToleranceOperator constructor and expose a method in that class to count down the latch,

[GitHub] [kafka] divijvaidya commented on pull request #12465: KAFKA-12950: Replace EasyMock and PowerMock with Mockito for KafkaStreamsTest

2022-08-23 Thread GitBox
divijvaidya commented on PR #12465: URL: https://github.com/apache/kafka/pull/12465#issuecomment-1224288795 @cadonna requesting your review on this PR related to streams. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12228: KAFKA-13950: Fix resource leaks

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12228: URL: https://github.com/apache/kafka/pull/12228#discussion_r952819611 ## clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslClientAuthenticator.java: ## @@ -342,6 +342,7 @@ public void

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12228: KAFKA-13950: Fix resource leaks

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12228: URL: https://github.com/apache/kafka/pull/12228#discussion_r952810999 ## core/src/main/java/kafka/server/builders/ReplicaManagerBuilder.java: ## @@ -147,11 +147,14 @@ public ReplicaManagerBuilder setThreadNamePrefix(String

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12228: KAFKA-13950: Fix resource leaks

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12228: URL: https://github.com/apache/kafka/pull/12228#discussion_r952807299 ## clients/src/main/java/org/apache/kafka/common/network/PlaintextChannelBuilder.java: ## @@ -54,12 +54,18 @@ public void configure(Map configs) throws

[GitHub] [kafka] mimaison merged pull request #12473: KAFKA-13133: Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-23 Thread GitBox
mimaison merged PR #12473: URL: https://github.com/apache/kafka/pull/12473 -- 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:

[GitHub] [kafka] mimaison commented on pull request #12473: KAFKA-13133: Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-23 Thread GitBox
mimaison commented on PR #12473: URL: https://github.com/apache/kafka/pull/12473#issuecomment-1224259431 Tests passed locally, the CI failure `KRaftClusterTest > testCreateClusterAndCreateListDeleteTopic() FAILED` is unrelated. Merging to trunk. -- This is an automated message from the

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12473: KAFKA-13133: Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12473: URL: https://github.com/apache/kafka/pull/12473#discussion_r952781430 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java: ## @@ -141,89 +142,52 @@ public class AbstractHerderTest { private

[jira] [Created] (KAFKA-14177) Correctly support older kraft versions without FeatureLevelRecord

2022-08-23 Thread Colin McCabe (Jira)
Colin McCabe created KAFKA-14177: Summary: Correctly support older kraft versions without FeatureLevelRecord Key: KAFKA-14177 URL: https://issues.apache.org/jira/browse/KAFKA-14177 Project: Kafka

[GitHub] [kafka] mimaison commented on a diff in pull request #12473: KAFKA-13133: Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-23 Thread GitBox
mimaison commented on code in PR #12473: URL: https://github.com/apache/kafka/pull/12473#discussion_r952775683 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java: ## @@ -141,89 +142,52 @@ public class AbstractHerderTest { private

[GitHub] [kafka] C0urante commented on pull request #12478: KAFKA-13952 fix RetryWithToleranceOperator to respect infinite retries configuration

2022-08-23 Thread GitBox
C0urante commented on PR #12478: URL: https://github.com/apache/kafka/pull/12478#issuecomment-1224225930 Why construct the latches in `Worker`? Wouldn't it be cleaner to create them in the `RetryWithToleranceOperator` constructor and expose a method in that class to count down the latch,

[jira] [Resolved] (KAFKA-14160) Streamline clusterId retrieval in Connect

2022-08-23 Thread Mickael Maison (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14160?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mickael Maison resolved KAFKA-14160. Fix Version/s: 3.4.0 Reviewer: Chris Egerton Resolution: Fixed >

[GitHub] [kafka] mimaison merged pull request #12536: KAFKA-14160: Streamline clusterId retrieval in Connect

2022-08-23 Thread GitBox
mimaison merged PR #12536: URL: https://github.com/apache/kafka/pull/12536 -- 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:

[GitHub] [kafka] mimaison commented on a diff in pull request #12536: KAFKA-14160: Streamline clusterId retrieval in Connect

2022-08-23 Thread GitBox
mimaison commented on code in PR #12536: URL: https://github.com/apache/kafka/pull/12536#discussion_r952748560 ## connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConfig.java: ## @@ -306,6 +310,35 @@ protected static ConfigDef baseConfigDef() {

[jira] [Created] (KAFKA-14176) Reduce visibility of WorkerConfig.lookupKafkaClusterId

2022-08-23 Thread Mickael Maison (Jira)
Mickael Maison created KAFKA-14176: -- Summary: Reduce visibility of WorkerConfig.lookupKafkaClusterId Key: KAFKA-14176 URL: https://issues.apache.org/jira/browse/KAFKA-14176 Project: Kafka

[jira] [Assigned] (KAFKA-13952) Infinite retry timeout is not working

2022-08-23 Thread Yash Mayya (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13952?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yash Mayya reassigned KAFKA-13952: -- Assignee: Yash Mayya > Infinite retry timeout is not working >

[jira] [Updated] (KAFKA-14134) Replace EasyMock with Mockito for WorkerConnectorTest

2022-08-23 Thread Yash Mayya (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yash Mayya updated KAFKA-14134: --- Reviewer: Chris Egerton > Replace EasyMock with Mockito for WorkerConnectorTest >

[jira] [Updated] (KAFKA-14012) passing a "method" into the `Utils.closeQuietly` method cause NPE

2022-08-23 Thread Chris Egerton (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Egerton updated KAFKA-14012: -- Reviewer: Chris Egerton > passing a "method" into the `Utils.closeQuietly` method cause NPE >

[jira] [Updated] (KAFKA-14007) Connect header converters are never closed

2022-08-23 Thread Chris Egerton (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Egerton updated KAFKA-14007: -- Reviewer: Chris Egerton > Connect header converters are never closed >

[jira] [Updated] (KAFKA-14095) Improve handling of sync offset failures in MirrorMaker

2022-08-23 Thread Chris Egerton (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Egerton updated KAFKA-14095: -- Reviewer: Chris Egerton > Improve handling of sync offset failures in MirrorMaker >

[jira] [Updated] (KAFKA-13809) FileStreamSinkConnector and FileStreamSourceConnector should propagate full configuration to tasks

2022-08-23 Thread Chris Egerton (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13809?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Egerton updated KAFKA-13809: -- Reviewer: Chris Egerton > FileStreamSinkConnector and FileStreamSourceConnector should

[jira] [Resolved] (KAFKA-13971) Atomicity violations caused by improper usage of ConcurrentHashMap

2022-08-23 Thread Chris Egerton (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13971?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Egerton resolved KAFKA-13971. --- Fix Version/s: 3.4.0 Reviewer: Chris Egerton Resolution: Fixed > Atomicity

[jira] [Updated] (KAFKA-14147) Some map objects in KafkaConfigBackingStore grow in size monotonically

2022-08-23 Thread Chris Egerton (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Egerton updated KAFKA-14147: -- Reviewer: Chris Egerton > Some map objects in KafkaConfigBackingStore grow in size

[jira] [Commented] (KAFKA-14162) HoistField and MaskField SMTs should not return immutable maps/lists

2022-08-23 Thread Chris Egerton (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14162?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17583654#comment-17583654 ] Chris Egerton commented on KAFKA-14162: --- It was noted during PR review that we also add immutable

[GitHub] [kafka] C0urante merged pull request #12502: KAFKA-14162: HoistField SMT should not return an immutable map for schemaless key/value

2022-08-23 Thread GitBox
C0urante merged PR #12502: URL: https://github.com/apache/kafka/pull/12502 -- 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] [Updated] (KAFKA-14162) HoistField and MaskField SMTs should not return immutable maps/lists

2022-08-23 Thread Chris Egerton (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Egerton updated KAFKA-14162: -- Summary: HoistField and MaskField SMTs should not return immutable maps/lists (was:

[GitHub] [kafka] C0urante commented on a diff in pull request #12536: KAFKA-14160: Streamline clusterId retrieval in Connect

2022-08-23 Thread GitBox
C0urante commented on code in PR #12536: URL: https://github.com/apache/kafka/pull/12536#discussion_r952686683 ## connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConfig.java: ## @@ -306,6 +310,35 @@ protected static ConfigDef baseConfigDef() {

[GitHub] [kafka] C0urante commented on a diff in pull request #12536: KAFKA-14160: Streamline clusterId retrieval in Connect

2022-08-23 Thread GitBox
C0urante commented on code in PR #12536: URL: https://github.com/apache/kafka/pull/12536#discussion_r952685256 ## connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConfig.java: ## @@ -409,6 +412,13 @@ public String groupId() { return null; } +

[GitHub] [kafka] mimaison commented on pull request #12504: KAFKA-14149: Fix DynamicBrokerReconfigurationTest in 3.2

2022-08-23 Thread GitBox
mimaison commented on PR #12504: URL: https://github.com/apache/kafka/pull/12504#issuecomment-1224110047 @cmccabe @mumrah Can you take a look at this and confirm this makes sense? Thanks -- This is an automated message from the Apache Git Service. To respond to the message, please log on

[GitHub] [kafka] yashmayya commented on pull request #12478: KAFKA-13952 fix RetryWithToleranceOperator to respect infinite retries configuration

2022-08-23 Thread GitBox
yashmayya commented on PR #12478: URL: https://github.com/apache/kafka/pull/12478#issuecomment-1224095732 Thanks @C0urante, that makes sense. I think we can maintain a `Map` in the `Worker` class (let's say `taskCancelLatch`) which gets populated in the task builder (with the

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12473: KAFKA-13133: Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12473: URL: https://github.com/apache/kafka/pull/12473#discussion_r952631224 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java: ## @@ -556,28 +473,24 @@ public void

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12473: KAFKA-13133: Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12473: URL: https://github.com/apache/kafka/pull/12473#discussion_r952630756 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java: ## @@ -556,28 +473,24 @@ public void

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12473: KAFKA-13133: Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12473: URL: https://github.com/apache/kafka/pull/12473#discussion_r952614033 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java: ## @@ -141,89 +142,52 @@ public class AbstractHerderTest { private

[GitHub] [kafka] mdedetrich commented on a diff in pull request #12534: MINOR; Use underscore for variable initialization in Scala sources

2022-08-23 Thread GitBox
mdedetrich commented on code in PR #12534: URL: https://github.com/apache/kafka/pull/12534#discussion_r952585957 ## core/src/main/scala/kafka/server/ControllerServer.scala: ## @@ -78,18 +78,18 @@ class ControllerServer( val awaitShutdownCond = lock.newCondition() var

[GitHub] [kafka] yashmayya commented on a diff in pull request #11890: KAFKA-13731: Allow standalone workers to be started without providing any connector configurations

2022-08-23 Thread GitBox
yashmayya commented on code in PR #11890: URL: https://github.com/apache/kafka/pull/11890#discussion_r952576537 ## docs/connect.html: ## @@ -283,7 +283,7 @@ REST API ssl.client.auth -The REST API is used not only by users to monitor / manage Kafka

[jira] [Updated] (KAFKA-14133) Remaining EasyMock to Mockito tests

2022-08-23 Thread Yash Mayya (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yash Mayya updated KAFKA-14133: --- Description: {color:#de350b}There are tests which use both PowerMock and EasyMock. I have put

[jira] [Updated] (KAFKA-14133) Remaining EasyMock to Mockito tests

2022-08-23 Thread Yash Mayya (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yash Mayya updated KAFKA-14133: --- Description: {color:#de350b}There are tests which use both PowerMock and EasyMock. I have put

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12473: KAFKA-13133: Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12473: URL: https://github.com/apache/kafka/pull/12473#discussion_r952566247 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java: ## @@ -412,38 +334,32 @@ public void testBuildRestartPlanForNoRestart() {

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12473: KAFKA-13133: Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12473: URL: https://github.com/apache/kafka/pull/12473#discussion_r952561099 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java: ## @@ -141,89 +142,52 @@ public class AbstractHerderTest { private

[jira] [Updated] (KAFKA-13060) Replace EasyMock and PowerMock with Mockito in WorkerGroupMemberTest.java

2022-08-23 Thread Divij Vaidya (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13060?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Divij Vaidya updated KAFKA-13060: - Fix Version/s: 3.4.0 > Replace EasyMock and PowerMock with Mockito in

[GitHub] [kafka] mimaison commented on a diff in pull request #12534: MINOR; Use underscore for variable initialization in Scala sources

2022-08-23 Thread GitBox
mimaison commented on code in PR #12534: URL: https://github.com/apache/kafka/pull/12534#discussion_r952554375 ## core/src/main/scala/kafka/server/ControllerServer.scala: ## @@ -78,18 +78,18 @@ class ControllerServer( val awaitShutdownCond = lock.newCondition() var

[GitHub] [kafka] mimaison commented on a diff in pull request #12536: KAFKA-14160: Streamline clusterId retrieval in Connect

2022-08-23 Thread GitBox
mimaison commented on code in PR #12536: URL: https://github.com/apache/kafka/pull/12536#discussion_r952552570 ## connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConfig.java: ## @@ -409,6 +412,13 @@ public String groupId() { return null; } +

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12473: KAFKA-13133: Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12473: URL: https://github.com/apache/kafka/pull/12473#discussion_r952546082 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java: ## @@ -236,31 +200,21 @@ public void connectorStatus() {

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12459: KAFKA-13036: Replace EasyMock and PowerMock with Mockito for RocksDBMetricsRecorderTest

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12459: URL: https://github.com/apache/kafka/pull/12459#discussion_r952469065 ## streams/src/test/java/org/apache/kafka/streams/state/internals/metrics/RocksDBMetricsRecorderTest.java: ## @@ -279,449 +310,335 @@ public void

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12459: KAFKA-13036: Replace EasyMock and PowerMock with Mockito for RocksDBMetricsRecorderTest

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12459: URL: https://github.com/apache/kafka/pull/12459#discussion_r952467932 ## streams/src/test/java/org/apache/kafka/streams/state/internals/metrics/RocksDBMetricsRecorderTest.java: ## @@ -279,449 +310,335 @@ public void

[GitHub] [kafka] ashmeet13 commented on pull request #12414: KAFKA-14073 Logging the reason for Snapshot

2022-08-23 Thread GitBox
ashmeet13 commented on PR #12414: URL: https://github.com/apache/kafka/pull/12414#issuecomment-1223889368 Thanks @dengziming for the review. @jsancio could you please have a look at this PR? -- This is an automated message from the Apache Git Service. To respond to the message, please

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12459: KAFKA-13036: Replace EasyMock and PowerMock with Mockito for RocksDBMetricsRecorderTest

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12459: URL: https://github.com/apache/kafka/pull/12459#discussion_r952440600 ## streams/src/test/java/org/apache/kafka/streams/state/internals/metrics/RocksDBMetricsRecorderTest.java: ## @@ -279,449 +310,335 @@ public void

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12459: KAFKA-13036: Replace EasyMock and PowerMock with Mockito for RocksDBMetricsRecorderTest

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12459: URL: https://github.com/apache/kafka/pull/12459#discussion_r952440334 ## streams/src/test/java/org/apache/kafka/streams/state/internals/metrics/RocksDBMetricsRecorderTest.java: ## @@ -279,449 +310,335 @@ public void

[GitHub] [kafka] dengziming commented on pull request #12548: KAFKA-14142; Expose kraft high watermark update time in quorum command

2022-08-23 Thread GitBox
dengziming commented on PR #12548: URL: https://github.com/apache/kafka/pull/12548#issuecomment-1223860360 > Also, some `MetadataQuorumCommandTest` tests failed due to this change. FYI. This is a very simple problem, we changed the output of the tool so the assertion in the test

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12459: KAFKA-13036: Replace EasyMock and PowerMock with Mockito for RocksDBMetricsRecorderTest

2022-08-23 Thread GitBox
divijvaidya commented on code in PR #12459: URL: https://github.com/apache/kafka/pull/12459#discussion_r952411639 ## streams/src/test/java/org/apache/kafka/streams/state/internals/metrics/RocksDBMetricsRecorderTest.java: ## @@ -279,449 +310,335 @@ public void

  1   2   >