You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Torsten Mielke (Jira)" <ji...@apache.org> on 2026/06/29 13:18:00 UTC

[jira] [Commented] (CAMEL-19531) camel-leveldb: replace Thread.sleep in tests

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

Torsten Mielke commented on CAMEL-19531:
----------------------------------------

[~orpiske] the {{camel-leveldb}} is marked as deprecated and is likely going to be removed soon. Is it worth investigating this ticket for {{camel-leveldb}}? It seems to me, this can be skipped as the component will not be around for a longer time.

> camel-leveldb: replace Thread.sleep in tests
> --------------------------------------------
>
>                 Key: CAMEL-19531
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19531
>             Project: Camel
>          Issue Type: Task
>          Components: camel-leveldb, tests
>    Affects Versions: 4.0.0
>            Reporter: Otavio Rodolfo Piske
>            Priority: Minor
>              Labels: easy, help-wanted
>
> We have many tests which use Thread.sleep for synchronization. This is bug prone and can introduce flakiness when running on environments with different capacities.
> Ideally we should replace these with:
>  * [Awaitility|http://www.awaitility.org/]
>  * Java's native syncronization mechanism (Latches, Phasers, Locks, etc)
>  * Nothing (i.e.; in some cases the sleep can simply be removed)
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)