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

[enocean] Fix concurrency exception on startup #11408

Merged
merged 2 commits into from
Oct 20, 2021

Conversation

DrRSatzteil
Copy link
Contributor

Signed-off-by: Thomas Lauterbach [email protected]

This PR fixed a ConcurrentModificationException on startup preventing some child things of the bridge to not come online. See https://community.openhab.org/t/new-openhab2-enocean-binding/39917/1059?u=drrsatzteil

Signed-off-by: Thomas Lauterbach <[email protected]>
@DrRSatzteil DrRSatzteil requested a review from fruggy83 as a code owner October 18, 2021 19:08
@openhab-bot
Copy link
Collaborator

This pull request has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/new-openhab2-enocean-binding/39917/1059

@DrRSatzteil DrRSatzteil changed the title Fix concurrency exception on startup [eonicean] Fix concurrency exception on startup Oct 18, 2021
@DrRSatzteil DrRSatzteil changed the title [eonicean] Fix concurrency exception on startup [enocean] Fix concurrency exception on startup Oct 18, 2021
@DrRSatzteil
Copy link
Contributor Author

I just realised that there's also an open issue: #11393

* synchronized access to listeners and eventListeners collections of EnOceanTransceiver
* reverted ConcurrentHashMap change as NULL-Key is required

Fixes openhab#11393

Signed-off-by: Daniel Weber <[email protected]>
@fruggy83
Copy link
Contributor

@DrRSatzteil
Thanks for your work. However I had to revert your changes as I need null keys, too. Result is the same.

@kaikreuzer kaikreuzer added rebuild Triggers Jenkins PR build and removed rebuild Triggers Jenkins PR build labels Oct 19, 2021
@kaikreuzer kaikreuzer added the bug An unexpected problem or unintended behavior of an add-on label Oct 20, 2021
@kaikreuzer kaikreuzer added this to the 3.2 milestone Oct 20, 2021
@kaikreuzer kaikreuzer merged commit 9cc3f44 into openhab:main Oct 20, 2021
@DrRSatzteil DrRSatzteil deleted the concurrenthashmap branch October 20, 2021 22:23
dschoepel pushed a commit to dschoepel/openhab-addons that referenced this pull request Nov 9, 2021
* made listeners a ConcurrentHashMap
* synchronized access to listeners and eventListeners collections of EnOceanTransceiver
* reverted ConcurrentHashMap change as NULL-Key is required

Fixes openhab#11393

Also-by: Daniel Weber <[email protected]>
Signed-off-by: Thomas Lauterbach <[email protected]>
Signed-off-by: Dave J Schoepel <[email protected]>
NickWaterton pushed a commit to NickWaterton/openhab-addons that referenced this pull request Dec 30, 2021
* made listeners a ConcurrentHashMap
* synchronized access to listeners and eventListeners collections of EnOceanTransceiver
* reverted ConcurrentHashMap change as NULL-Key is required

Fixes openhab#11393

Also-by: Daniel Weber <[email protected]>
Signed-off-by: Thomas Lauterbach <[email protected]>
Signed-off-by: Nick Waterton <[email protected]>
nemerdaud pushed a commit to nemerdaud/openhab-addons that referenced this pull request Jan 28, 2022
* made listeners a ConcurrentHashMap
* synchronized access to listeners and eventListeners collections of EnOceanTransceiver
* reverted ConcurrentHashMap change as NULL-Key is required

Fixes openhab#11393

Also-by: Daniel Weber <[email protected]>
Signed-off-by: Thomas Lauterbach <[email protected]>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
* made listeners a ConcurrentHashMap
* synchronized access to listeners and eventListeners collections of EnOceanTransceiver
* reverted ConcurrentHashMap change as NULL-Key is required

Fixes openhab#11393

Also-by: Daniel Weber <[email protected]>
Signed-off-by: Thomas Lauterbach <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants