apache / apache/pulsar

[Transaction] Retry transaction immediately when fails without waiting for timeout

Open
#15,039 3 comments 0 reactions 1 assignee Claimed by @congbobo184 View on GitHub
lifecycle/stale Stale type/feature
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

**Is your feature request related to a problem? Please describe.**
I have an application which is required exactly_once which Transaction addresses this problem quite well.
But the application also need to process each transactions orderly [T1, T2, T3, ... etc]. In case transaction fails to commit, we want to retry the Transaction again right away.
Unfortunately Transaction doesn't support this as of now.

**Describe the solution you'd like**
allow to disable transaction timeout

**Additional context**
using pulsar: 2.9.1
- note from slack discussion with @congbobo184 :
link: https://apache-pulsar.slack.com/archives/C5Z4T36F7/p1640233608463000
"We will have optimizations in this area in the future, such as disconnecting and directly aborting the transaction created by this connection.
You cannot disable timeout. We will do a follow-up work on reconnecting or restarting then you can end related transaction."

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.