Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-112283

Tomcat does not shut down after connecting to remote Elasticsearch 7

    Details

      Description

      Patch Availability

      • Connector to Elasticsearch 6: Bundled -> Fix Pack 7+
      • Connector to Elasticsearch 7: Marketplace -> To be released (v3.0.1 is still affected)

      Search Engines may cause tomcat to hang during the shutdown.sh process and never fully end its process. This can be revealed by checking if the java process is still running after the shutdown.sh command has been issued to tomcat after a sufficient waiting time. We currently are unable to reproduce this issue and no errors are generated in the logs, but when it does happen thread dumps will look like this:

      Start Level: Equinox Container: dc420add-9545-47f2-8d9b-2aa55aff02c8
      Java Stack
      at jdk.internal.misc.Unsafe.park(java.base@11.0.5/Native Method) 
      at java.util.concurrent.locks.LockSupport.parkNanos(java.base@11.0.5/LockSupport.java:234) 
      at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(java.base@11.0.5/AbstractQueuedSynchronizer.java:2211) 
      at com.liferay.portal.kernel.util.ServiceProxyFactory$AwaitServiceInvocationHandler.invoke(ServiceProxyFactory.java:250) 
      at com.sun.proxy.$Proxy250.createDestination(Unknown Source) 
      at com.liferay.portal.kernel.messaging.DestinationFactoryUtil.createDestination(DestinationFactoryUtil.java:29) 
      at com.liferay.portal.kernel.search.BaseSearchEngineConfigurator.createSearchReaderDestination(BaseSearchEngineConfigurator.java:149) 
      at com.liferay.portal.kernel.search.BaseSearchEngineConfigurator.getSearchReaderDestination(BaseSearchEngineConfigurator.java:278) 
      at com.liferay.portal.kernel.search.BaseSearchEngineConfigurator.destroySearchEngine(BaseSearchEngineConfigurator.java:209) 
      at com.liferay.portal.kernel.search.BaseSearchEngineConfigurator.destroy(BaseSearchEngineConfigurator.java:94) 
      at com.liferay.portal.search.elasticsearch7.internal.ElasticsearchEngineConfigurator.destroy(ElasticsearchEngineConfigurator.java:53) 
      at com.liferay.portal.search.internal.SearchEngineHelperImpl$1.removedService(SearchEngineHelperImpl.java:324) 
      at com.liferay.portal.search.internal.SearchEngineHelperImpl$1.removedService(SearchEngineHelperImpl.java:292) 
      at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:969) 
      at org.osgi.util.tracker.ServiceTracker$Tracked.customizerRemoved(ServiceTracker.java:1) 
      at org.osgi.util.tracker.AbstractTracked.untrack(AbstractTracked.java:341) 
      at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:911) 
      at org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:109) 
      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:891) 
      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:804) 
      at org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.unregister(ServiceRegistrationImpl.java:222) 
      at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.unregister(AbstractComponentManager.java:927) 
      at org.apache.felix.scr.impl.manager.AbstractComponentManager$3.unregister(AbstractComponentManager.java:892) 
      at org.apache.felix.scr.impl.manager.RegistrationManager.changeRegistration(RegistrationManager.java:135) 
      at org.apache.felix.scr.impl.manager.AbstractComponentManager.unregisterService(AbstractComponentManager.java:969)
      ..... 

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              linda.sui Linda Sui
              Reporter:
              joshua.cords Joshua Cords
              Participants of an Issue:
              Recent user:
              Jason Pince
              Engineering Assignee:
              André Ricardo Barreto de Oliveira
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved:
                Days since last comment:
                39 weeks, 2 days ago

                  Packages

                  Version Package
                  7.2.10 DXP FP7
                  7.2.X
                  7.3.3 CE GA4
                  7.3.10 DXP GA1
                  Master