Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WFTC-136] Memory leak, remove XAResourceRecovery when reload #172

Merged
merged 1 commit into from
Sep 22, 2023

Conversation

marcosgopen
Copy link
Contributor

@marcosgopen marcosgopen changed the title Memory leak, remove XAResourceRecovery when reload [WFTC-136] Memory leak, remove XAResourceRecovery when reload Sep 22, 2023
Copy link

@mmusgrov mmusgrov left a comment

Choose a reason for hiding this comment

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

Yes this is a nice fix and I definitely approve of it!


public void removeXAResourceRecovery(XAResourceRecoveryRegistry registry) {
registry.removeXAResourceRecovery(xaResourceRecovery);

Choose a reason for hiding this comment

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

Superfluous blank line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@@ -77,6 +78,7 @@ public abstract class JBossLocalTransactionProvider implements LocalTransactionP
private final ConcurrentSkipListSet<XidKey> timeoutSet = new ConcurrentSkipListSet<>();
private final ConcurrentMap<SimpleXid, Entry> known = new ConcurrentHashMap<>();
private final FileSystemXAResourceRegistry fileSystemXAResourceRegistry;
private XAResourceRecovery xaResourceRecovery;
Copy link
Contributor

Choose a reason for hiding this comment

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

this field can be final.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks @chengfang for your review! I addressed your comment.

@chengfang
Copy link
Contributor

all 6 checks passed.

@chengfang chengfang merged commit 910bf13 into wildfly:master Sep 22, 2023
@chengfang
Copy link
Contributor

@marcosgopen @mmusgrov thanks!

chengfang pushed a commit to chengfang/wildfly-transaction-client that referenced this pull request Sep 26, 2023
chengfang added a commit that referenced this pull request Sep 27, 2023
…173)

Co-authored-by: Marco Sappé Griot <105230883+marcosgopen@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants