You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/02/14 09:46:10 UTC
[GitHub] [kafka] tang7526 opened a new pull request #10124: MINOR: apply Utils.isBlank to code base
tang7526 opened a new pull request #10124:
URL: https://github.com/apache/kafka/pull/10124
apply Utils.isBlank to code base
### Committer Checklist (excluded from commit message)
- [ ] Verify design and implementation
- [ ] Verify test coverage and CI build status
- [ ] Verify documentation (including upgrade notes)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [kafka] chia7712 commented on pull request #10124: MINOR: apply Utils.isBlank to code base
Posted by GitBox <gi...@apache.org>.
chia7712 commented on pull request #10124:
URL: https://github.com/apache/kafka/pull/10124#issuecomment-782552393
`kafka.admin.ListConsumerGroupTest.testListConsumerGroupsWithStates()` unrelated error
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [kafka] tang7526 commented on a change in pull request #10124: MINOR: apply Utils.isBlank to code base
Posted by GitBox <gi...@apache.org>.
tang7526 commented on a change in pull request #10124:
URL: https://github.com/apache/kafka/pull/10124#discussion_r575919779
##########
File path: clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java
##########
@@ -1106,11 +1107,13 @@ public void assign(Collection<TopicPartition> partitions) {
} else if (partitions.isEmpty()) {
this.unsubscribe();
} else {
- for (TopicPartition tp : partitions) {
+ partitions.forEach(tp -> {
Review comment:
OK. I have reverted un-related changes.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [kafka] chia7712 merged pull request #10124: MINOR: apply Utils.isBlank to code base
Posted by GitBox <gi...@apache.org>.
chia7712 merged pull request #10124:
URL: https://github.com/apache/kafka/pull/10124
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [kafka] chia7712 commented on pull request #10124: MINOR: apply Utils.isBlank to code base
Posted by GitBox <gi...@apache.org>.
chia7712 commented on pull request #10124:
URL: https://github.com/apache/kafka/pull/10124#issuecomment-780347504
@tang7526 Thanks for your patch. Could you fix following code also?
1. https://github.com/apache/kafka/blob/trunk/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/isolation/Plugins.java#L448
1. https://github.com/apache/kafka/blob/trunk/clients/src/test/java/org/apache/kafka/common/security/oauthbearer/internals/unsecured/OAuthBearerScopeUtilsTest.java#L31
1. https://github.com/apache/kafka/blob/trunk/connect/api/src/test/java/org/apache/kafka/connect/data/ValuesTest.java#L914
1. https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/network/SocketServer.scala#L642
1. https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/KafkaServer.scala#L473
1. https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/utils/Log4jController.scala#L74
1. https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/utils/Log4jController.scala#L83
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [kafka] chia7712 commented on a change in pull request #10124: MINOR: apply Utils.isBlank to code base
Posted by GitBox <gi...@apache.org>.
chia7712 commented on a change in pull request #10124:
URL: https://github.com/apache/kafka/pull/10124#discussion_r575890707
##########
File path: clients/src/main/java/org/apache/kafka/clients/consumer/KafkaConsumer.java
##########
@@ -1106,11 +1107,13 @@ public void assign(Collection<TopicPartition> partitions) {
} else if (partitions.isEmpty()) {
this.unsubscribe();
} else {
- for (TopicPartition tp : partitions) {
+ partitions.forEach(tp -> {
Review comment:
It would be nice to make related changes only :)
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [kafka] tang7526 commented on pull request #10124: MINOR: apply Utils.isBlank to code base
Posted by GitBox <gi...@apache.org>.
tang7526 commented on pull request #10124:
URL: https://github.com/apache/kafka/pull/10124#issuecomment-780658142
> @tang7526 Thanks for your patch. Could you fix following code also?
>
> 1. https://github.com/apache/kafka/blob/trunk/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/isolation/Plugins.java#L448
> 2. https://github.com/apache/kafka/blob/trunk/clients/src/test/java/org/apache/kafka/common/security/oauthbearer/internals/unsecured/OAuthBearerScopeUtilsTest.java#L31
> 3. https://github.com/apache/kafka/blob/trunk/connect/api/src/test/java/org/apache/kafka/connect/data/ValuesTest.java#L914
> 4. https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/network/SocketServer.scala#L642
> 5. https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/server/KafkaServer.scala#L473
> 6. https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/utils/Log4jController.scala#L74
> 7. https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/utils/Log4jController.scala#L83
@chia7712 Done
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org