[ 
https://issues.apache.org/jira/browse/OAK-10137?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nitin Gupta resolved OAK-10137.
-------------------------------
    Fix Version/s: 1.50.0
       Resolution: Fixed

> Static variable referenced from a non-static context
> ----------------------------------------------------
>
>                 Key: OAK-10137
>                 URL: https://issues.apache.org/jira/browse/OAK-10137
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>            Reporter: Nitin Gupta
>            Assignee: Nitin Gupta
>            Priority: Major
>             Fix For: 1.50.0
>
>
> https://github.com/apache/jackrabbit-oak/blame/trunk/oak-search-elastic/src/main/java/org/apache/jackrabbit/oak/plugins/index/elastic/index/ElasticBulkProcessorHandler.java#L188
> waitForESAcknowledgement is a static variable which is accessed from a 
> non-static context. It is set to true only at initialization, in a static 
> context. So if at some point it is set to false, it will never again become 
> true during the runtime of the JVM. And the BuikProcessor instance is not 
> static, so there may be many instances created in the same JVM execution



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to