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

Improve FolderObserver ignored paths handling #3856

Merged
merged 1 commit into from
Oct 21, 2023

Conversation

wborn
Copy link
Member

@wborn wborn commented Oct 20, 2023

The FolderObserver needs to make sure that paths are properly handled for any parsers that are added at any moment by other threads during activation.

Fixes #3784
Fixes #3793


To test the fix, update the bundle on the Karaf console using one of these commands and then restart openHAB.

OH 4.0.x

bundle:update org.openhab.core.model.core https://github.com/wborn/openhab-core/releases/download/folder-observer-20231020/org.openhab.core.model.core-4.0.4-SNAPSHOT.jar

Recent OH 4.1.0-SNAPSHOTs or OH 4.1.0.M2

bundle:update org.openhab.core.model.core https://github.com/wborn/openhab-core/releases/download/folder-observer-20231020/org.openhab.core.model.core-4.1.0-SNAPSHOT.jar

The FolderObserver needs to make sure that paths are properly handled for any parsers that are added at any moment by other threads during activation.

Fixes openhab#3784
Fixes openhab#3793

Signed-off-by: Wouter Born <github@maindrain.net>
@wborn wborn added the bug An unexpected problem or unintended behavior of the Core label Oct 20, 2023
@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/all-things-are-gone-after-restarting-openhab/145076/27

@wborn wborn marked this pull request as ready for review October 20, 2023 19:03
@wborn wborn requested a review from a team as a code owner October 20, 2023 19:03
Copy link
Member

@J-N-K J-N-K left a comment

Choose a reason for hiding this comment

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

LGTM, that might help.

@J-N-K J-N-K merged commit f2c20af into openhab:main Oct 21, 2023
2 checks passed
@J-N-K J-N-K added this to the 4.1 milestone Oct 21, 2023
@lolodomo
Copy link
Contributor

Maybe something to backport in 4.0 ?

wborn added a commit that referenced this pull request Oct 21, 2023
The FolderObserver needs to make sure that paths are properly handled for any parsers that are added at any moment by other threads during activation.

Fixes #3784
Fixes #3793

Signed-off-by: Wouter Born <github@maindrain.net>
@wborn wborn added the patch A PR that has been cherry-picked to a patch release branch label Oct 21, 2023
@wborn wborn deleted the improve-ignored-paths-handling branch October 21, 2023 19:32
@wborn
Copy link
Member Author

wborn commented Oct 21, 2023

Maybe something to backport in 4.0 ?

Yes it would be nice to finally have this fixed so I've just cherry picked it.

@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/item-configuration-file-changes-not-detected-in-oh-4-0-4/151972/1

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 the Core patch A PR that has been cherry-picked to a patch release branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Textually defined things not available after restart JDBC DB flooded with items after some time of running
4 participants