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

Etienne Chauchot edited comment on FLINK-25690 at 1/19/22, 1:44 PM:
--------------------------------------------------------------------

[~chesnay] [~trohrmann] I Migrated CassandraITCase to RetryExtension 
- tested it by manually throwing 2 NoHostHavailableException => retrial 
mechanism works perfectly!
- I also tested after methods to drop the table between retrials and it works 
perfectly.
- I will have to migrate CassandraITCase to junit 5 to use RetryExtension, I'll 
do so in [FLINK-25674|https://issues.apache.org/jira/browse/FLINK-25674]

So closing this ticket.

Thanks for the pointers guys !


was (Author: echauchot):
[~chesnay] [~trohrmann] Migrated CassandraITCase to RetryExtension and tested 
it by manually throwing 2 NoHostHavailableException => retrial mechanism works 
perfectly!
 I also tested after methods to drop the table between retrials and it works 
perfectly.
I will have to migrate CassandraITCase to junit 5 to use RetryExtension, I'll 
do so in [FLINK-25674|https://issues.apache.org/jira/browse/FLINK-25674]
So closing this ticket.
Thanks for the pointers guys !

> RetryRule should allow a callback to be called on exception and failure cases
> -----------------------------------------------------------------------------
>
>                 Key: FLINK-25690
>                 URL: https://issues.apache.org/jira/browse/FLINK-25690
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Etienne Chauchot
>            Assignee: Etienne Chauchot
>            Priority: Major
>              Labels: test
>
> RetryRule is a Flink junit rule that allows to retry tests when they 
> temporary fail (either by throwing an exception or by failing an assertion) 
> usually in case of load. In some cases, there is some treatment to be done 
> for the test to be idempotent when retried for example cleaning of created 
> data etc...
> Of course, this callback will be optional.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to