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

2022-08-02 Thread GitBox
mdedetrich commented on PR #12475: URL: https://github.com/apache/kafka/pull/12475#issuecomment-1203547014 @divijvaidya This is one of the first PR's in adding the linting/formatting using scalafmt/scalafix for the Scala sources within Kafka if you want to have a look. @cadonna Do you want

[GitHub] [kafka] showuon commented on pull request #12452: KAFKA-14122: Fix flaky test DynamicBrokerReconfigurationTest#testKeyStoreAlter

2022-08-02 Thread GitBox
showuon commented on PR #12452: URL: https://github.com/apache/kafka/pull/12452#issuecomment-1203545154 Thanks @divijvaidya for fixing it! Thanks for @mimaison 's review! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use

[GitHub] [kafka] guozhangwang commented on pull request #12468: KAFKA-13877: Fix flakiness in RackAwarenessIntegrationTest

2022-08-02 Thread GitBox
guozhangwang commented on PR #12468: URL: https://github.com/apache/kafka/pull/12468#issuecomment-1203477606 Thanks @divijvaidya , I've fixed the mistakenly modified code logic. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub

[GitHub] [kafka] guozhangwang commented on pull request #12476: K14130: Reduce RackAwarenesssTest to unit Test

2022-08-02 Thread GitBox
guozhangwang commented on PR #12476: URL: https://github.com/apache/kafka/pull/12476#issuecomment-1203398110 ping @vvcephei for a quick review. -- 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] guozhangwang opened a new pull request, #12476: K14130: Reduce RackAwarenesssTest to unit Test

2022-08-02 Thread GitBox
guozhangwang opened a new pull request, #12476: URL: https://github.com/apache/kafka/pull/12476 While working on [KAFKA-13877](https://issues.apache.org/jira/browse/KAFKA-13877), I feel it's an overkill to introduce the whole test class as an integration test, since all we need is to just

[jira] [Commented] (KAFKA-14104) Perform CRC validation on KRaft Batch Records and Snapshots

2022-08-02 Thread Niket Goel (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17574434#comment-17574434 ] Niket Goel commented on KAFKA-14104: PR here – https://github.com/apache/kafka/pull/

[GitHub] [kafka] niket-goel closed pull request #12457: WIP -- added some CRC checking

2022-08-02 Thread GitBox
niket-goel closed pull request #12457: WIP -- added some CRC checking URL: https://github.com/apache/kafka/pull/12457 -- 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 unsubsc

[GitHub] [kafka] cmccabe merged pull request #12467: KAFKA-14129: KRaft must check manual assignments for createTopics are contiguous

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

[GitHub] [kafka] cmccabe commented on pull request #12400: KAFKA-13648: KRaft ClusterInstance does not allow for deferred start

2022-08-02 Thread GitBox
cmccabe commented on PR #12400: URL: https://github.com/apache/kafka/pull/12400#issuecomment-1203275395 This does look right to me but let me check with @mumrah . Thanks, @blcksrx -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitH

[jira] [Assigned] (KAFKA-13187) Replace EasyMock and PowerMock with Mockito for DistributedHerderTest

2022-08-02 Thread Dalibor Plavcic (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13187?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dalibor Plavcic reassigned KAFKA-13187: --- Assignee: Dalibor Plavcic (was: YI-CHEN WANG) > Replace EasyMock and PowerMock wit

[GitHub] [kafka] dplavcic commented on a diff in pull request #12449: KAFKA-12947 [WIP]: Replace EasyMock and PowerMock with Mockito for StreamsMetricsImplTest

2022-08-02 Thread GitBox
dplavcic commented on code in PR #12449: URL: https://github.com/apache/kafka/pull/12449#discussion_r936038290 ## streams/src/test/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImplTest.java: ## @@ -1293,43 +1259,42 @@ private void verifyMetric(final St

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

2022-08-02 Thread GitBox
yashmayya commented on code in PR #12473: URL: https://github.com/apache/kafka/pull/12473#discussion_r936007323 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java: ## @@ -141,89 +141,51 @@ public class AbstractHerderTest { private fina

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

2022-08-02 Thread GitBox
mdedetrich commented on code in PR #12475: URL: https://github.com/apache/kafka/pull/12475#discussion_r936009435 ## checkstyle/.scalafmt.conf: ## @@ -12,7 +12,10 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific

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

2022-08-02 Thread GitBox
mdedetrich commented on code in PR #12475: URL: https://github.com/apache/kafka/pull/12475#discussion_r936006142 ## checkstyle/.scalafmt.conf: ## @@ -12,7 +12,10 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific

[GitHub] [kafka] yashmayya closed pull request #12474: KAFKA-13133 Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-02 Thread GitBox
yashmayya closed pull request #12474: KAFKA-13133 Replace EasyMock and PowerMock with Mockito for AbstractHerderTest URL: https://github.com/apache/kafka/pull/12474 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL

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

2022-08-02 Thread GitBox
yashmayya commented on PR #12474: URL: https://github.com/apache/kafka/pull/12474#issuecomment-1203190905 https://github.com/apache/kafka/pull/12473 got here first, closing this one :) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to

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

2022-08-02 Thread GitBox
mdedetrich commented on code in PR #12475: URL: https://github.com/apache/kafka/pull/12475#discussion_r936005663 ## build.gradle: ## @@ -30,7 +30,7 @@ buildscript { } plugins { - id 'com.diffplug.spotless' version '5.12.5' + id 'com.diffplug.spotless' version '6.9.0' Revi

[GitHub] [kafka] mdedetrich opened a new pull request, #12475: MINOR; Update scalafmt to latest version

2022-08-02 Thread GitBox
mdedetrich opened a new pull request, #12475: URL: https://github.com/apache/kafka/pull/12475 Updates scalafmt to the latest version. This not only means migrating the checkstyle/.scalafmt.conf file but updating spotless as well. Due to improvements in the new version of scalafmt, it no

[GitHub] [kafka] yashmayya opened a new pull request, #12474: KAFKA-13133 Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-02 Thread GitBox
yashmayya opened a new pull request, #12474: URL: https://github.com/apache/kafka/pull/12474 - Builds on top off https://github.com/apache/kafka/pull/11137 by @wycc which seems to have gone stale (so they should be credited as a co-author if this PR is merged) - Rebased onto latest `

[GitHub] [kafka] dplavcic commented on a diff in pull request #12449: KAFKA-12947 [WIP]: Replace EasyMock and PowerMock with Mockito for StreamsMetricsImplTest

2022-08-02 Thread GitBox
dplavcic commented on code in PR #12449: URL: https://github.com/apache/kafka/pull/12449#discussion_r935984902 ## streams/src/test/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImplTest.java: ## @@ -1293,43 +1252,41 @@ private void verifyMetric(final St

[GitHub] [kafka] dplavcic commented on a diff in pull request #12449: KAFKA-12947 [WIP]: Replace EasyMock and PowerMock with Mockito for StreamsMetricsImplTest

2022-08-02 Thread GitBox
dplavcic commented on code in PR #12449: URL: https://github.com/apache/kafka/pull/12449#discussion_r935983777 ## streams/src/test/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImplTest.java: ## @@ -736,42 +705,34 @@ public void shouldProvideCorrectStri

[GitHub] [kafka] dplavcic commented on a diff in pull request #12449: KAFKA-12947 [WIP]: Replace EasyMock and PowerMock with Mockito for StreamsMetricsImplTest

2022-08-02 Thread GitBox
dplavcic commented on code in PR #12449: URL: https://github.com/apache/kafka/pull/12449#discussion_r935986979 ## streams/src/test/java/org/apache/kafka/streams/kstream/internals/graph/TableSourceNodeTest.java: ## @@ -23,41 +23,39 @@ import org.apache.kafka.streams.kstream.inte

[GitHub] [kafka] dplavcic commented on a diff in pull request #12449: KAFKA-12947 [WIP]: Replace EasyMock and PowerMock with Mockito for StreamsMetricsImplTest

2022-08-02 Thread GitBox
dplavcic commented on code in PR #12449: URL: https://github.com/apache/kafka/pull/12449#discussion_r935981217 ## streams/src/test/java/org/apache/kafka/streams/processor/internals/metrics/StreamsMetricsImplTest.java: ## @@ -192,23 +180,23 @@ public boolean matches(final Object

[GitHub] [kafka] cmccabe commented on a diff in pull request #12467: KAFKA-14129: KRaft must check manual assignments for createTopics are contiguous

2022-08-02 Thread GitBox
cmccabe commented on code in PR #12467: URL: https://github.com/apache/kafka/pull/12467#discussion_r935931468 ## core/src/main/scala/kafka/server/BrokerServer.scala: ## @@ -81,6 +81,8 @@ class BrokerServer( val controllerQuorumVotersFuture: CompletableFuture[util.Map[Integer,

[GitHub] [kafka] C0urante commented on a diff in pull request #12472: KAFKA-14134: Replace EasyMock with Mockito for WorkerConnectorTest

2022-08-02 Thread GitBox
C0urante commented on code in PR #12472: URL: https://github.com/apache/kafka/pull/12472#discussion_r935923454 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerConnectorTest.java: ## @@ -120,43 +101,26 @@ public void testInitializeFailure() { work

[GitHub] [kafka] C0urante merged pull request #11615: KAFKA-13546: Do not fail connector if default topic creation group is explicitly specified

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

[jira] [Resolved] (KAFKA-14122) Flaky test DynamicBrokerReconfigurationTest.testKeyStoreAlter

2022-08-02 Thread Mickael Maison (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14122?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mickael Maison resolved KAFKA-14122. Resolution: Fixed > Flaky test DynamicBrokerReconfigurationTest.testKeyStoreAlter > --

[GitHub] [kafka] mimaison merged pull request #12452: KAFKA-14122: Fix flaky test DynamicBrokerReconfigurationTest#testKeyStoreAlter

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

[GitHub] [kafka] C0urante commented on a diff in pull request #12418: KAFKA-13414: Replace PowerMock/EasyMock with Mockito in connect.storage.KafkaOffsetBackingStoreTest

2022-08-02 Thread GitBox
C0urante commented on code in PR #12418: URL: https://github.com/apache/kafka/pull/12418#discussion_r934915520 ## connect/runtime/src/test/java/org/apache/kafka/connect/storage/KafkaOffsetBackingStoreTest.java: ## @@ -142,97 +163,90 @@ public void testStartStop() throws Exceptio

[jira] [Commented] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Divij Vaidya (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17574326#comment-17574326 ] Divij Vaidya commented on KAFKA-14132: -- [~christo_lolov] I am picking up tests 1-5

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

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

[jira] [Commented] (KAFKA-13133) Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-02 Thread Divij Vaidya (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17574323#comment-17574323 ] Divij Vaidya commented on KAFKA-13133: -- [~ijuma] I have created a new PR on top of

[GitHub] [kafka] divijvaidya opened a new pull request, #12473: KAFKA-13133: Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-02 Thread GitBox
divijvaidya opened a new pull request, #12473: URL: https://github.com/apache/kafka/pull/12473 This PR is created on top of abandoned PR https://github.com/apache/kafka/pull/11137. I have added the previous author's comment in this PR for attribution. I have also addressed the pending comme

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

2022-08-02 Thread GitBox
divijvaidya commented on PR #12465: URL: https://github.com/apache/kafka/pull/12465#issuecomment-1202976734 @ijuma Please review when you get a chance. This would help us take a step forward in getting rid of easymock/powermock dependency. -- This is an automated message from the Apache G

[jira] [Commented] (KAFKA-13840) KafkaConsumer is unable to recover connection to group coordinator after commitOffsetsAsync exception

2022-08-02 Thread Kyle R Stehbens (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17574313#comment-17574313 ] Kyle R Stehbens commented on KAFKA-13840: - Hi, we rolled back our Kafka client t

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

2022-08-02 Thread GitBox
divijvaidya commented on PR #12459: URL: https://github.com/apache/kafka/pull/12459#issuecomment-1202942487 @dplavcic I have added the test coverage report to the description of this ticket. This revision is ready for your review now. Thanks again for your patience and spending time in revi

[jira] [Assigned] (KAFKA-13133) Replace EasyMock and PowerMock with Mockito for AbstractHerderTest

2022-08-02 Thread Divij Vaidya (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Divij Vaidya reassigned KAFKA-13133: Assignee: Divij Vaidya (was: YI-CHEN WANG) > Replace EasyMock and PowerMock with Mockito

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

2022-08-02 Thread GitBox
divijvaidya commented on code in PR #11137: URL: https://github.com/apache/kafka/pull/11137#discussion_r935719219 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/AbstractHerderTest.java: ## @@ -135,90 +133,75 @@ private final int generation = 5; priva

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

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov reassigned KAFKA-14133: - Assignee: Christo Lolov > Remaining EasyMock to Mockito tests > ---

[jira] [Assigned] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov reassigned KAFKA-14132: - Assignee: Christo Lolov > Remaining PowerMock to Mockito tests > --

[jira] [Commented] (KAFKA-13840) KafkaConsumer is unable to recover connection to group coordinator after commitOffsetsAsync exception

2022-08-02 Thread Martijn Visser (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13840?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17574260#comment-17574260 ] Martijn Visser commented on KAFKA-13840: Is there any progress to report on this

[jira] [Assigned] (KAFKA-13065) Replace EasyMock with Mockito for BasicAuthSecurityRestExtensionTest

2022-08-02 Thread Divij Vaidya (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Divij Vaidya reassigned KAFKA-13065: Assignee: dengziming (was: Chun-Hao Tang) Resolution: Fixed > Replace EasyMock wit

[jira] [Commented] (KAFKA-13065) Replace EasyMock with Mockito for BasicAuthSecurityRestExtensionTest

2022-08-02 Thread Divij Vaidya (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13065?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17574257#comment-17574257 ] Divij Vaidya commented on KAFKA-13065: -- Note that this test `BasicAuthSecurityRestE

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12472: KAFKA-14134: Replace EasyMock with Mockito for WorkerConnectorTest

2022-08-02 Thread GitBox
divijvaidya commented on code in PR #12472: URL: https://github.com/apache/kafka/pull/12472#discussion_r935646206 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerConnectorTest.java: ## @@ -26,28 +26,32 @@ import org.apache.kafka.connect.source.SourceConn

[GitHub] [kafka] divijvaidya commented on a diff in pull request #12472: KAFKA-14134: Replace EasyMock with Mockito for WorkerConnectorTest

2022-08-02 Thread GitBox
divijvaidya commented on code in PR #12472: URL: https://github.com/apache/kafka/pull/12472#discussion_r935609616 ## connect/runtime/src/test/java/org/apache/kafka/connect/runtime/WorkerConnectorTest.java: ## @@ -60,15 +64,15 @@ public class WorkerConnectorTest extends EasyMockS

[jira] [Updated] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14132: -- Description: {color:#DE350B}Some of the tests below use EasyMock as well. For those migrate b

[jira] [Updated] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14132: -- Description: {color:#DE350B}Some of the tests below use EasyMock as well. For those migrate b

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

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov 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-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14133: -- Description: {color:#DE350B}There are tests which use both PowerMock and EasyMock. I have put

[jira] [Updated] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14132: -- Description: {color:#DE350B}Some of the tests below use EasyMock as well. For those migrate b

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

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

[GitHub] [kafka] yashmayya commented on pull request #12472: KAFKA-14134: Replace EasyMock with Mockito for WorkerConnectorTest

2022-08-02 Thread GitBox
yashmayya commented on PR #12472: URL: https://github.com/apache/kafka/pull/12472#issuecomment-1202563314 @mimaison or @C0urante could you please take a look? The changes are fairly straightforward for this one. -- This is an automated message from the Apache Git Service. To respond to th

[GitHub] [kafka] yashmayya opened a new pull request, #12472: KAFKA-14134: Replace EasyMock with Mockito for WorkerConnectorTest

2022-08-02 Thread GitBox
yashmayya opened a new pull request, #12472: URL: https://github.com/apache/kafka/pull/12472 https://issues.apache.org/jira/browse/KAFKA-14134 From https://issues.apache.org/jira/browse/KAFKA-7438: > Development of EasyMock and PowerMock has stagnated while Mockito continues to

[jira] [Updated] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14132: -- Description: {color:#DE350B}Some of the tests below use EasyMock as well. For those migrate b

[jira] [Updated] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14132: -- Description: {color:#DE350B}Some of the tests below use EasyMock as well. For those migrate b

[jira] [Updated] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14132: -- Description: {color:#DE350B}Some of the tests below use EasyMock as well. For those migrate b

[jira] [Updated] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14132: -- Description: {color:#DE350B}Some of the tests below use EasyMock as well. For those migrate b

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

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

[jira] [Updated] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14132: -- Description: {color:#DE350B}Some of the tests below use EasyMock as well. For those migrate b

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

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

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

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14133: -- Description: *There are tests which use both PowerMock and EasyMock. I have put those in http

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

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14133: -- Description: *There are tests which use both PowerMock and EasyMock. I have put those in http

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

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14133: -- Description: A list of tests which still require to be moved from EasyMock to Mockito as of 2

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

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14133: -- Description: A list of tests which still require to be moved from EasyMock to Mockito as of 2

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

2022-08-02 Thread Yash Mayya (Jira)
Yash Mayya created KAFKA-14134: -- Summary: Replace EasyMock with Mockito for WorkerConnectorTest Key: KAFKA-14134 URL: https://issues.apache.org/jira/browse/KAFKA-14134 Project: Kafka Issue Type:

[GitHub] [kafka] showuon commented on pull request #12452: KAFKA-14122: Fix flaky test DynamicBrokerReconfigurationTest#testKeyStoreAlter

2022-08-02 Thread GitBox
showuon commented on PR #12452: URL: https://github.com/apache/kafka/pull/12452#issuecomment-1202503504 Sorry, was quite busy recently. I'll take a look this week. Thanks for helping fix it! -- This is an automated message from the Apache Git Service. To respond to the message, please log

[jira] [Updated] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14132: -- Description: A list of tests which still require to be moved from PowerMock to Mockito as of

[jira] [Updated] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14132: -- Description: A list of tests which still require to be moved from PowerMock to Mockito as of

[jira] [Commented] (KAFKA-14122) Flaky test DynamicBrokerReconfigurationTest.testKeyStoreAlter

2022-08-02 Thread Divij Vaidya (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17574225#comment-17574225 ] Divij Vaidya commented on KAFKA-14122: -- [~showuon] please review...this flaky test

[jira] [Updated] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14132: -- Description: A list of tests which still require to be moved from PowerMock to Mockito as of

[jira] [Updated] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Christo Lolov updated KAFKA-14132: -- Description: A list of tests which still require to be moved from PowerMock to Mockito as of

[jira] [Commented] (KAFKA-14122) Flaky test DynamicBrokerReconfigurationTest.testKeyStoreAlter

2022-08-02 Thread Divij Vaidya (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17574223#comment-17574223 ] Divij Vaidya commented on KAFKA-14122: -- Another build failure: [https://ci-builds.

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

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

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

2022-08-02 Thread GitBox
divijvaidya commented on code in PR #12459: URL: https://github.com/apache/kafka/pull/12459#discussion_r935547915 ## streams/src/test/java/org/apache/kafka/streams/state/internals/metrics/RocksDBMetricsRecorderTest.java: ## @@ -36,22 +38,23 @@ import org.rocksdb.StatsLevel; im

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

2022-08-02 Thread Christo Lolov (Jira)
Christo Lolov created KAFKA-14133: - Summary: Remaining EasyMock to Mockito tests Key: KAFKA-14133 URL: https://issues.apache.org/jira/browse/KAFKA-14133 Project: Kafka Issue Type: Sub-task

[jira] [Created] (KAFKA-14132) Remaining PowerMock to Mockito tests

2022-08-02 Thread Christo Lolov (Jira)
Christo Lolov created KAFKA-14132: - Summary: Remaining PowerMock to Mockito tests Key: KAFKA-14132 URL: https://issues.apache.org/jira/browse/KAFKA-14132 Project: Kafka Issue Type: Sub-task

[GitHub] [kafka] jsancio merged pull request #12236: MINOR: Use right enum value for broker registration change

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

[GitHub] [kafka] mdedetrich commented on pull request #12471: MINOR; Use underscore for variable initialization in BrokerServer

2022-08-02 Thread GitBox
mdedetrich commented on PR #12471: URL: https://github.com/apache/kafka/pull/12471#issuecomment-1202384578 Yes there is, its called scalafix. Would just have to integrate it into gradle. There is also scalafix which works on the context free grammar linting fixes, I noticed there is a confi

[GitHub] [kafka] divijvaidya commented on pull request #12452: KAFKA-14122: Fix flaky test DynamicBrokerReconfigurationTest#testKeyStoreAlter

2022-08-02 Thread GitBox
divijvaidya commented on PR #12452: URL: https://github.com/apache/kafka/pull/12452#issuecomment-1202383303 @guozhangwang please take a look into this flaky test fix if you get a chance. -- This is an automated message from the Apache Git Service. To respond to the message, please log on

[GitHub] [kafka] divijvaidya commented on pull request #12471: MINOR; Use underscore for variable initialization in BrokerServer

2022-08-02 Thread GitBox
divijvaidya commented on PR #12471: URL: https://github.com/apache/kafka/pull/12471#issuecomment-1202378703 Thank you for the review. Looks good. One question though (which does not have to be addressed part of this PR), do we have a linter for scala that can enforce such best practices?

[jira] [Assigned] (KAFKA-13513) Flaky test AdjustStreamThreadCountTest

2022-08-02 Thread Matthew de Detrich (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13513?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matthew de Detrich reassigned KAFKA-13513: -- Assignee: Matthew de Detrich > Flaky test AdjustStreamThreadCountTest > -

[jira] [Assigned] (KAFKA-14014) Flaky test NamedTopologyIntegrationTest.shouldAllowRemovingAndAddingNamedTopologyToRunningApplicationWithMultipleNodesAndResetsOffsets()

2022-08-02 Thread Matthew de Detrich (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-14014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Matthew de Detrich reassigned KAFKA-14014: -- Assignee: Matthew de Detrich > Flaky test > NamedTopologyIntegrationTest.sho

[jira] [Commented] (KAFKA-13995) Does Kafka support Network File System (NFS)? Is it recommended in Production?

2022-08-02 Thread Devarshi Shah (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17574163#comment-17574163 ] Devarshi Shah commented on KAFKA-13995: --- Yes, we are also having similar kind of s

[GitHub] [kafka] kkolyan commented on pull request #7670: KAFKA-7016: Not hide the stack trace for ApiException

2022-08-02 Thread GitBox
kkolyan commented on PR #7670: URL: https://github.com/apache/kafka/pull/7670#issuecomment-1202250617 what's up with this PR? it seems easy. -- 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 sp

[jira] [Commented] (KAFKA-9837) New RPC for notifying controller of failed replica

2022-08-02 Thread Igor Soarez (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-9837?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17574156#comment-17574156 ] Igor Soarez commented on KAFKA-9837: I've put together a proposal to associate partit

[GitHub] [kafka] dengziming commented on a diff in pull request #12467: KAFKA-14129: KRaft must check manual assignments for createTopics are contiguous

2022-08-02 Thread GitBox
dengziming commented on code in PR #12467: URL: https://github.com/apache/kafka/pull/12467#discussion_r935283700 ## core/src/main/scala/kafka/server/BrokerServer.scala: ## @@ -81,6 +81,8 @@ class BrokerServer( val controllerQuorumVotersFuture: CompletableFuture[util.Map[Integ

[GitHub] [kafka] mdedetrich opened a new pull request, #12471: MINOR; Use underscore for variable initialization in BrokerServer

2022-08-02 Thread GitBox
mdedetrich opened a new pull request, #12471: URL: https://github.com/apache/kafka/pull/12471 In Scala its standard practice to use _ whenever you are initializing variables. In regards to implementation, for object references _ initialization maps to null so there is no chance in behav

[jira] [Commented] (KAFKA-13530) Flaky test ReplicaManagerTest

2022-08-02 Thread Matthew de Detrich (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-13530?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17574099#comment-17574099 ] Matthew de Detrich commented on KAFKA-13530: Okay so I have done some testin

[GitHub] [kafka] devdavidkarlsson opened a new pull request, #12470: Update WordCountTransformerDemo comments

2022-08-02 Thread GitBox
devdavidkarlsson opened a new pull request, #12470: URL: https://github.com/apache/kafka/pull/12470 Update documentation comments in the demo code, after switch to the newer processor API (replacing the TransformerDemo) ### Committer Checklist (excluded from commit message) - [ x]

[GitHub] [kafka] mdedetrich commented on pull request #11478: KAFKA-13299: Accept duplicate listener on port for IPv4/IPv6

2022-08-02 Thread GitBox
mdedetrich commented on PR #11478: URL: https://github.com/apache/kafka/pull/11478#issuecomment-1202139295 Actually following on from my previous comment (assuming its correct), the currently existing `MultipleListenersWithSameSecurityProtocolBaseTest ` tests are already covering what would

[jira] [Commented] (KAFKA-7883) Add schema.namespace support to SetSchemaMetadata SMT in Kafka Connect

2022-08-02 Thread Michael Negodaev (Jira)
[ https://issues.apache.org/jira/browse/KAFKA-7883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17574079#comment-17574079 ] Michael Negodaev commented on KAFKA-7883: - Hi all, I've created KIP-855 for this