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

[icalendar] Fix race condition while initialization of EventFilterHandler #9230

Merged

Conversation

daMihe
Copy link
Contributor

@daMihe daMihe commented Dec 4, 2020

Should fix #9029. The channels do not get updated as the known channels by the binding where only updated if Bridge was already online while initializing EventFilterHandler. Even if it does not fix the issue, the race condition is is fixed.

Also added a bit more output.

Signed-off-by: Michael Wodniok michi@noorganization.org

…dler

Should fix openhab#9029. The channels do not get updated as the known channels by the binding where only updated if Bridge was already online while initializing EventFilterHandler.
Also added a bit more output.

Signed-off-by: Michael Wodniok <michi@noorganization.org>
daMihe and others added 2 commits December 4, 2020 22:51
As suggested by @cpmeister

Signed-Off-By: Michael Wodniok <michi@noorganization.org>

Co-authored-by: Connor Petty <mistercpp2000@gmail.com>
…ed by @cpmeister

Signed-off-by: Michael Wodniok <michi@noorganization.org>
@cpmeister cpmeister merged commit de390b9 into openhab:main Dec 5, 2020
@cpmeister cpmeister added the bug An unexpected problem or unintended behavior of an add-on label Dec 5, 2020
@cpmeister cpmeister added this to the 3.0.0.M5 milestone Dec 5, 2020
chrisonline pushed a commit to chrisonline/openhab-addons that referenced this pull request Dec 7, 2020
…dler (openhab#9230)

* [icalendar] Fix race condition while initialization of EventFilterHandler

Should fix openhab#9029. The channels do not get updated as the known channels by the binding where only updated if Bridge was already online while initializing EventFilterHandler.
Also added a bit more output.

* [icalendar] use implicit conversion to string for logging

Signed-off-by: Michael Wodniok <michi@noorganization.org>
Co-authored-by: Connor Petty <mistercpp2000+gitsignoff@gmail.com>
Signed-off-by: Christian Grasser <info@christiangrasser.at>
@cweitkamp
Copy link
Contributor

@daMihe with my changes in #9227 the "race condition" is happening again. Therefore I reviewed your code and came up with a framework-based solution in #9337.

@daMihe daMihe deleted the 9029-fix-race-condition-initialization branch December 12, 2020 09:15
boehan pushed a commit to boehan/openhab-addons that referenced this pull request Apr 12, 2021
…dler (openhab#9230)

* [icalendar] Fix race condition while initialization of EventFilterHandler

Should fix openhab#9029. The channels do not get updated as the known channels by the binding where only updated if Bridge was already online while initializing EventFilterHandler.
Also added a bit more output.

* [icalendar] use implicit conversion to string for logging

Signed-off-by: Michael Wodniok <michi@noorganization.org>
Co-authored-by: Connor Petty <mistercpp2000+gitsignoff@gmail.com>
marcfischerboschio pushed a commit to bosch-io/openhab-addons that referenced this pull request May 5, 2022
…dler (openhab#9230)

* [icalendar] Fix race condition while initialization of EventFilterHandler

Should fix openhab#9029. The channels do not get updated as the known channels by the binding where only updated if Bridge was already online while initializing EventFilterHandler.
Also added a bit more output.

* [icalendar] use implicit conversion to string for logging

Signed-off-by: Michael Wodniok <michi@noorganization.org>
Co-authored-by: Connor Petty <mistercpp2000+gitsignoff@gmail.com>
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.

[icalendar] eventfilter not returning event informations
3 participants