[
https://issues.apache.org/jira/browse/OAK-10921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17860392#comment-17860392
]
Rishabh Daim commented on OAK-10921:
------------------------------------
Below are 2 options that can be used to avoid race-condition:
# I would propose that we make both AEM fullGC cycle & OAK-RUN fullGC cycle
mutually exclusive and this would avoid any race condition while reset fullGC
vars from OAK run while AEM fullGC is running.
# We could change the API used to update fullGC vars from AEM fullGC cycle
from createOrUpdate to findAndUpdate and for very first cycle set them inside
[VersionGCRecommendations|https://github.com/apache/jackrabbit-oak/blob/trunk/oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/VersionGCRecommendations.java#L161-L185]
class
> Fix race condition while resetting fullGC variables from oak-run
> ----------------------------------------------------------------
>
> Key: OAK-10921
> URL: https://issues.apache.org/jira/browse/OAK-10921
> Project: Jackrabbit Oak
> Issue Type: Task
> Reporter: Rishabh Daim
> Assignee: Rishabh Daim
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)