Skip to content

Conversation

@marcosgopen
Copy link
Contributor

@marcosgopen marcosgopen commented Jan 23, 2026

Deregister xa resources helpers in stop method before terminating the recoveryManager

Please note: stop() is called before destroy()

@quarkus-bot

This comment has been minimized.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I added a question.

Comment on lines 59 to 80
recoveryManagerService = null;
// Do NOT set recoveryManagerService = null - maintain singleton pattern
// so datasources closing after destroy() can still properly deregister
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But this will leak the original class loader, won't it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, I'll update the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/narayana Transactions / Narayana

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Narayana transaction recovery stops work in DEV mode after hot reload

2 participants