Skip to content

Commit 2abb8cf

Browse files
Ladicekgsmet
authored andcommitted
SmallRye Fault Tolerance: update to 6.9.1
(cherry picked from commit 3fc755c)
1 parent aade31d commit 2abb8cf

File tree

4 files changed

+46
-3
lines changed

4 files changed

+46
-3
lines changed

bom/application/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
<smallrye-metrics.version>4.0.0</smallrye-metrics.version>
5353
<smallrye-open-api.version>4.0.10</smallrye-open-api.version>
5454
<smallrye-graphql.version>2.12.2</smallrye-graphql.version>
55-
<smallrye-fault-tolerance.version>6.9.0</smallrye-fault-tolerance.version>
55+
<smallrye-fault-tolerance.version>6.9.1</smallrye-fault-tolerance.version>
5656
<smallrye-jwt.version>4.6.1</smallrye-jwt.version>
5757
<smallrye-context-propagation.version>2.2.1</smallrye-context-propagation.version>
5858
<smallrye-reactive-streams-operators.version>1.0.13</smallrye-reactive-streams-operators.version>

docs/src/main/asciidoc/smallrye-fault-tolerance.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ implementation("io.quarkus:quarkus-smallrye-fault-tolerance")
576576
== Additional resources
577577

578578
SmallRye Fault Tolerance has more features than shown here.
579-
Please check the link:https://smallrye.io/docs/smallrye-fault-tolerance/6.9.0/index.html[SmallRye Fault Tolerance documentation] to learn about them.
579+
Please check the link:https://smallrye.io/docs/smallrye-fault-tolerance/6.9.1/index.html[SmallRye Fault Tolerance documentation] to learn about them.
580580

581581
In Quarkus, you can use the SmallRye Fault Tolerance optional features out of the box.
582582

@@ -608,7 +608,7 @@ quarkus.fault-tolerance.mp-compatibility=true
608608
----
609609
====
610610

611-
The link:https://smallrye.io/docs/smallrye-fault-tolerance/6.9.0/reference/programmatic-api.html[programmatic API] is present and integrated with the declarative, annotation-based API.
611+
The link:https://smallrye.io/docs/smallrye-fault-tolerance/6.9.1/reference/programmatic-api.html[programmatic API] is present and integrated with the declarative, annotation-based API.
612612
You can use the `Guard`, `TypedGuard` and `@ApplyGuard` APIs out of the box.
613613

614614
Support for Kotlin is present (assuming you use the Quarkus extension for Kotlin), so you can guard your `suspend` functions with fault tolerance annotations.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
package io.quarkus.smallrye.faulttolerance.test.retry.stackoverflow;
2+
3+
import jakarta.enterprise.context.ApplicationScoped;
4+
5+
import org.eclipse.microprofile.faulttolerance.Fallback;
6+
import org.eclipse.microprofile.faulttolerance.Retry;
7+
8+
@ApplicationScoped
9+
public class RetryStackOverflowService {
10+
@Retry(maxRetries = 10_000, jitter = 0)
11+
@Fallback(fallbackMethod = "fallback")
12+
public String hello() {
13+
throw new RuntimeException("trigger retry");
14+
}
15+
16+
public String fallback() {
17+
return "fallback";
18+
}
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package io.quarkus.smallrye.faulttolerance.test.retry.stackoverflow;
2+
3+
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
5+
import jakarta.inject.Inject;
6+
7+
import org.junit.jupiter.api.Test;
8+
import org.junit.jupiter.api.extension.RegisterExtension;
9+
10+
import io.quarkus.test.QuarkusUnitTest;
11+
12+
public class RetryStackOverflowTest {
13+
@RegisterExtension
14+
static final QuarkusUnitTest config = new QuarkusUnitTest()
15+
.withApplicationRoot(jar -> jar.addClass(RetryStackOverflowService.class));
16+
17+
@Inject
18+
RetryStackOverflowService service;
19+
20+
@Test
21+
public void test() {
22+
assertEquals("fallback", service.hello());
23+
}
24+
}

0 commit comments

Comments
 (0)