Skip to content

Commit

Permalink
fix: Choreographys successWith published when receive other event (#118)
Browse files Browse the repository at this point in the history
* fix: Choreography's successWith published when receive orchestrate event

* docs: Netx version 0.3.7 to 0.3.8
  • Loading branch information
devxb authored Mar 29, 2024
1 parent 2cecb89 commit 3134d93
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<br>

![version 0.3.7](https://img.shields.io/badge/version-0.3.7-black?labelColor=black&style=flat-square) ![jdk 17](https://img.shields.io/badge/minimum_jdk-17-orange?labelColor=black&style=flat-square) ![load-test](https://img.shields.io/badge/load%20test%2010%2C000%2C000-success-brightgreen?labelColor=black&style=flat-square)
![version 0.3.8](https://img.shields.io/badge/version-0.3.8-black?labelColor=black&style=flat-square) ![jdk 17](https://img.shields.io/badge/minimum_jdk-17-orange?labelColor=black&style=flat-square) ![load-test](https://img.shields.io/badge/load%20test%2010%2C000%2C000-success-brightgreen?labelColor=black&style=flat-square)
![redis--stream](https://img.shields.io/badge/-redis--stream-da2020?style=flat-square&logo=Redis&logoColor=white)

Redis-Stream을 지원하는 Saga frame work 입니다.
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kotlin.code.style=official

### Project ###
group=org.rooftop.netx
version=0.3.2
version=0.3.8
compatibility=17

### Sonarcloud ###
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ class TransactionCommitEvent internal constructor(
codec: Codec,
): TransactionEvent(transactionId, nodeName, group, event, codec) {

override fun copy(): TransactionEvent =
TransactionJoinEvent(transactionId, nodeName, group, event, codec)
override fun copy(): TransactionCommitEvent =
TransactionCommitEvent(transactionId, nodeName, group, event, codec)
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ class TransactionJoinEvent internal constructor(
codec: Codec,
) : TransactionEvent(transactionId, nodeName, group, event, codec) {

override fun copy(): TransactionEvent =
override fun copy(): TransactionJoinEvent =
TransactionJoinEvent(transactionId, nodeName, group, event, codec)
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ class TransactionRollbackEvent internal constructor(
codec: Codec,
) : TransactionEvent(transactionId, nodeName, group, event, codec) {

override fun copy(): TransactionEvent =
TransactionJoinEvent(transactionId, nodeName, group, event, codec)
override fun copy(): TransactionRollbackEvent =
TransactionRollbackEvent(transactionId, nodeName, group, event, cause, codec)
}
4 changes: 2 additions & 2 deletions src/main/kotlin/org/rooftop/netx/api/TransactionStartEvent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ class TransactionStartEvent internal constructor(
codec: Codec,
) : TransactionEvent(transactionId, nodeName, group, event, codec) {

override fun copy(): TransactionEvent =
TransactionJoinEvent(transactionId, nodeName, group, event, codec)
override fun copy(): TransactionStartEvent =
TransactionStartEvent(transactionId, nodeName, group, event, codec)
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ internal class MonoDispatchFunction(
.flatMap { function.call(handler, transactionEvent) }
.info("Call Mono TransactionHandler \"${name()}\" with transactionId \"${transactionEvent.transactionId}\"")
.switchIfEmpty(`continue`)
.doOnNext { publishNextTransaction(transactionEvent) }
.doOnNext {
if (isProcessable(transactionEvent)) {
publishNextTransaction(transactionEvent)
}
}
.onErrorResume {
if (isNoRollbackFor(it)) {
return@onErrorResume noRollbackFor
Expand Down

0 comments on commit 3134d93

Please sign in to comment.