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

Remove stored map of Procedure Handlers #4278

Merged
merged 5 commits into from
Dec 10, 2024
Merged

Conversation

gem-neo4j
Copy link
Contributor

@gem-neo4j gem-neo4j commented Dec 6, 2024

Instead of storing a map of the custom procedure handler to reference as a listener, which can cause a memory leak, common has been updated to find listeners and then add them. This means we can remove the map.

@gem-neo4j gem-neo4j force-pushed the dev_fix_for_procedure_handler branch from 9daa015 to 12bf776 Compare December 6, 2024 11:47
@vga91
Copy link
Contributor

vga91 commented Dec 6, 2024

Added a commit where I removed AvailabilityListener and used LifecycleAdapter methods for procedure refresh.
Similar to what was implemented in TriggerHandler and the others.

I gave a shot without the AvailabilityListener, but it seems to be necessary, unlike the other handlers.
Therefore this way sounds OK to me :)

…cept for the -SNAPSHOT prefix

This reverts commit c53f2c7.
@vga91 vga91 force-pushed the dev_fix_for_procedure_handler branch from 438b694 to 5114bf4 Compare December 6, 2024 16:58
@gem-neo4j gem-neo4j merged commit 3e219f8 into 5.26 Dec 10, 2024
5 checks passed
@gem-neo4j gem-neo4j deleted the dev_fix_for_procedure_handler branch December 10, 2024 08:00
gem-neo4j added a commit that referenced this pull request Dec 10, 2024
* Update to behave differently for APOC extended

---------

Co-authored-by: vga91 <[email protected]>
gem-neo4j added a commit that referenced this pull request Dec 10, 2024
* Remove stored map of Procedure Handlers (#4278)

Co-authored-by: vga91 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants