Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-37402

[DATA CENTER] lucene-sort-mapper is not working on multiple clusters

XMLWordPrintable

      If we have a plugin using the lucene-sort-mapper, when switching nodes we get the following exception:

      java.lang.IllegalStateException: Cannot retrieve plugin module before it is enabled: PluginModuleHolder[(unknown; not enabled)]
      at com.atlassian.confluence.plugin.module.PluginModuleHolder.getModule(PluginModuleHolder.java:102)
      	at com.atlassian.confluence.plugin.descriptor.search.AbstractLuceneMapperModuleDescriptor.getModule(AbstractLuceneMapperModuleDescriptor.java:58)
      

      Workaround

      The workaround is enabling and disabling the plugin in the other node which fixes it until the next use of the lucene-sort-mapper which will break it again.

      I've create a simple component that fires the PluginEnabledEvent which makes it work, but this should be fixed on Atlassian's side.

      Please find attached the full stacktrace plus the test component that I used to fix it.

      We've disabled this feature and will be waiting for a fix from Atlassian to re-enable it.

        1. RateLogging.java
          0.5 kB
          Rafael Franco
        2. stack_trace.txt
          46 kB
          Rafael Franco

              drizzuto David Rizzuto
              3c7c04d87d93 Rafael Franco
              Votes:
              12 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: