[
https://issues.apache.org/jira/browse/KAFKA-8748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16903574#comment-16903574
]
ASF GitHub Bot commented on KAFKA-8748:
---------------------------------------
ijuma commented on pull request #7182: KAFKA-8748: Fix flaky
DescribeLogDirsRequestTest#testDescribeLogDirsRequest
URL: https://github.com/apache/kafka/pull/7182
The introduction of KIP-480: Sticky Producer Partitioner had the
side effect that `generateAndProduceMessages` can often write
messages to a lower number of partitions to improve batching.
`testDescribeLogDirsRequest` (and potentially other tests) relies
on the messages being written somewhat uniformly to the topic
partitions. We fix the issue by including a monotonically
increasing key in the produced messages.
### 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:
[email protected]
> Flaky Test DescribeLogDirsRequestTest#testDescribeLogDirsRequest
> ----------------------------------------------------------------
>
> Key: KAFKA-8748
> URL: https://issues.apache.org/jira/browse/KAFKA-8748
> Project: Kafka
> Issue Type: Bug
> Components: core, unit tests
> Affects Versions: 2.4.0
> Reporter: Matthias J. Sax
> Assignee: Ismael Juma
> Priority: Critical
> Labels: flaky-test
>
> [https://builds.apache.org/job/kafka-pr-jdk11-scala2.12/6704/testReport/junit/kafka.server/DescribeLogDirsRequestTest/testDescribeLogDirsRequest/]
> {quote}java.lang.AssertionError at org.junit.Assert.fail(Assert.java:87) at
> org.junit.Assert.assertTrue(Assert.java:42) at
> org.junit.Assert.assertTrue(Assert.java:53) at
> kafka.server.DescribeLogDirsRequestTest.testDescribeLogDirsRequest(DescribeLogDirsRequestTest.scala:60){quote}
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)