Re: [PR] KAFKA-16211: Inconsistent config values in CreateTopicsResult and DescribeConfigsResult [kafka]

2024-04-28 Thread via GitHub


chia7712 commented on PR #15696:
URL: https://github.com/apache/kafka/pull/15696#issuecomment-2081646079

   > or would like me to add a new test in the test class for the function?
   
   this one. Normally, the patch related to bug fix needs to offer the test to 
prove the bug does get fixed :)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] KAFKA-16211: Inconsistent config values in CreateTopicsResult and DescribeConfigsResult [kafka]

2024-04-26 Thread via GitHub


infantlikesprogramming commented on PR #15696:
URL: https://github.com/apache/kafka/pull/15696#issuecomment-2079935542

   @chia7712 Thank you! The cluster that I deployed in Kraft (locally) consists 
of 3 controllers and 4 brokers, using standard configurations from the 
config/kraft folder. There is a slight modification to the value of 
log.segment.bytes of the 4th broker to 286870912. Would you like me to include 
the files for my test cluster and test file, or would like me to add a new test 
in the test class for the function?
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] KAFKA-16211: Inconsistent config values in CreateTopicsResult and DescribeConfigsResult [kafka]

2024-04-24 Thread via GitHub


chia7712 commented on PR #15696:
URL: https://github.com/apache/kafka/pull/15696#issuecomment-2075243743

   > Thanks for the reply. I have tried the following code and received the 
results. Each time I run the code, the DescribeTopicsResult gives a different 
configurations of the brokers in my cluster.
   
   That is great. Could you include that in this PR to be the test to prove 
your fix gets work


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] KAFKA-16211: Inconsistent config values in CreateTopicsResult and DescribeConfigsResult [kafka]

2024-04-19 Thread via GitHub


infantlikesprogramming commented on PR #15696:
URL: https://github.com/apache/kafka/pull/15696#issuecomment-2067538939

   @chia7712 Thanks for the reply. I have tried the following code and received 
the results. Each time I run the code, the `DescribeTopicsResult` gives a 
different configurations of the brokers in my cluster. 
   
![image](https://github.com/apache/kafka/assets/60119105/04bb4ae3-98f6-4540-8b18-652ad67f00b7)
   
![image](https://github.com/apache/kafka/assets/60119105/00a7f8c0-ddd2-4098-8a14-03a6173a8cf3)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] KAFKA-16211: Inconsistent config values in CreateTopicsResult and DescribeConfigsResult [kafka]

2024-04-12 Thread via GitHub


chia7712 commented on PR #15696:
URL: https://github.com/apache/kafka/pull/15696#issuecomment-2051050590

   > Considering describeTopics(), should we note that it should only be used 
with the resource of type BROKER at this momment?
   
   not sure whether the issue is related to `describeTopics`. It seems to me 
the issue is that the configs returned by `createTopics` is different to 
`describeConfigs`. And `DescribeTopicsResult` does not carry the configs at all.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] KAFKA-16211: Inconsistent config values in CreateTopicsResult and DescribeConfigsResult [kafka]

2024-04-11 Thread via GitHub


infantlikesprogramming commented on PR #15696:
URL: https://github.com/apache/kafka/pull/15696#issuecomment-2050163816

   @chia7712 Thank you for reviewing my PR. I have updated the branch. 
Considering describeTopics(), should we note that it should only be used with 
the resource of type BROKER at this momment?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



Re: [PR] KAFKA-16211: Inconsistent config values in CreateTopicsResult and DescribeConfigsResult [kafka]

2024-04-11 Thread via GitHub


chia7712 commented on PR #15696:
URL: https://github.com/apache/kafka/pull/15696#issuecomment-2049112737

   @infantlikesprogramming thanks for this patch. could you include test case 
provided by @dengziming (https://issues.apache.org/jira/browse/KAFKA-16211)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



[PR] KAFKA-16211: Inconsistent config values in CreateTopicsResult and DescribeConfigsResult [kafka]

2024-04-10 Thread via GitHub


infantlikesprogramming opened a new pull request, #15696:
URL: https://github.com/apache/kafka/pull/15696

   *When creating a topic in KRaft cluster, a config value returned by 
createTopics() is different than what you get from describeConfigs().​*
   
   *My guess from reading the code is that describeTopics() will send the 
request to a specified broker if the config resource is broker 
(ConfigResouce.Type.BROKER). In the case that the config resource is topic 
(ConfigResouce.Type.TOPIC), then a broker will be assigned using 
LeastLoadBrokerOrActiveKController() (in KafkaAdminClient), which in this 
situation will assign the "least loaded" broker. I have tested this and, 
indeed, each time I use describeConfigs() with the ConfigResource's type being 
"TOPIC", a different broker's static configuration may be returned. My question 
is: Is it supposed to be the way describeConfigs() should be used with the 
configResource's type being ConfigResouce.Type.TOPIC? Or even, are we supposed 
to use describeConfig() with configResource's type being 
ConfigResouce.Type.TOPIC instead of strictly with ConfigResouce.Type.BROKER?
   
   I have also added some comments in the code for my understanding of the 
logic of describeConfigs() *
   
   ### 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.

To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org