You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Konrad Windszus (Jira)" <ji...@apache.org> on 2022/07/18 11:20:00 UTC
[jira] [Resolved] (OAK-9840) Race condition in MountInfoProviderService
[ https://issues.apache.org/jira/browse/OAK-9840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Konrad Windszus resolved OAK-9840.
----------------------------------
Fix Version/s: 1.46.0
Resolution: Fixed
Fixed in https://github.com/apache/jackrabbit-oak/commit/455080db72224b6b563dcfbe86f9991d15cb6433.
> Race condition in MountInfoProviderService
> ------------------------------------------
>
> Key: OAK-9840
> URL: https://issues.apache.org/jira/browse/OAK-9840
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: composite
> Affects Versions: 1.44.0
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Priority: Major
> Fix For: 1.46.0
>
>
> The MountInfoConfig is bound reluctantly in https://github.com/apache/jackrabbit-oak/blob/c424e1c179092594c365034c7b3f6eceb6cf2b42/oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/MountInfoProviderService.java#L129, apart from that the check in https://github.com/apache/jackrabbit-oak/blob/c424e1c179092594c365034c7b3f6eceb6cf2b42/oak-store-composite/src/main/java/org/apache/jackrabbit/oak/composite/MountInfoProviderService.java#L140 is incorrect as it returns {{true}} if all found info configs are part of the array {{expectedMounts}} but what is intended is rather that it only returns true if all entries in the array are contained at least once in the bound configs.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)