You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "A. Sophie Blee-Goldman (Jira)" <ji...@apache.org> on 2021/05/03 21:14:00 UTC

[jira] [Commented] (KAFKA-12747) Flaky Test RocksDBStoreTest.shouldReturnUUIDsWithStringPrefix

    [ https://issues.apache.org/jira/browse/KAFKA-12747?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17338612#comment-17338612 ] 

A. Sophie Blee-Goldman commented on KAFKA-12747:
------------------------------------------------

Looks like this test is flaky because it assumes no two UUIDs have the same prefix, where the prefix is only the first four digits of the UUID (which of course greatly cuts down on the UUID's probability of uniqueness). We can fix this up by just testing both UUIDs to see if the prefix should apply to just one of the entries in the RocksDBStore, or both.

> Flaky Test RocksDBStoreTest.shouldReturnUUIDsWithStringPrefix
> -------------------------------------------------------------
>
>                 Key: KAFKA-12747
>                 URL: https://issues.apache.org/jira/browse/KAFKA-12747
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>            Reporter: A. Sophie Blee-Goldman
>            Priority: Major
>              Labels: flaky-test, newbie, newbie++, unit-test
>
> Stacktrace
> java.lang.AssertionError: 
> Expected: is <1>
>      but: was <2>
> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
> 	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
> 	at org.apache.kafka.streams.state.internals.RocksDBStoreTest.shouldReturnUUIDsWithStringPrefix(RocksDBStoreTest.java:463)
> https://ci-builds.apache.org/blue/organizations/jenkins/Kafka%2Fkafka-pr/detail/PR-10597/10/tests/



--
This message was sent by Atlassian Jira
(v8.3.4#803005)