Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-10137

Static variable referenced from a non-static context

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.50.0
    • None
    • None

    Description

      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

      Attachments

        Activity

          People

            ngupta Nitin Gupta
            ngupta Nitin Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: