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

Inexplicable multi-hour pauses during publishing to live

    Details

      Description

      Steps to reproduce

      1) Create an empty site s1 and page p1 to s1
      2) Deploy the DataManipulator
      3) Navigate to My Sites / s1
      4) Select Admin / Content / Data Manipulator (Content)
      5) Under entry type select Journal, set journal-journal-article-count=5000, journal-journal-article-update-level=2 and click Save
      6) Create another empty site s2
      7) Note the site ID (mine is 10534) of s2
      8) Go to the settings of s1; underneath Staging select Remote Live and perform the following setup.

      Remote Host/IP: 127.0.0.1
      Remote Port: 8080
      Remote Site ID: 10534

      9) From s1 initiate publish to live (s2)
      10/a) You should notice that publication seems to hang
      10/b) If you take a thread dump, you can see that one thread hang at the following stack trace.

      "http-bio-7070-exec-10" - Thread t@350
        java.lang.Thread.State: RUNNABLE
         at java.lang.Class.getInterfaces(Native Method)
         at org.hibernate.intercept.FieldInterceptionHelper.extractFieldInterceptor(FieldInterceptionHelper.java:69)
         at org.hibernate.intercept.FieldInterceptionHelper.clearDirty(FieldInterceptionHelper.java:105)
         at org.hibernate.event.def.DefaultFlushEntityEventListener.isUpdateNecessary(DefaultFlushEntityEventListener.java:235)
         at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:154)
         at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:219)
         at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99)
         at org.hibernate.event.def.DefaultAutoFlushEventListener.onAutoFlush(DefaultAutoFlushEventListener.java:58)
         at org.hibernate.impl.SessionImpl.autoFlushIfRequired(SessionImpl.java:1185)
         at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1261)
         at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102)
         at com.liferay.portal.dao.orm.hibernate.QueryImpl.list(QueryImpl.java:101)
         at com.liferay.portal.dao.orm.hibernate.QueryImpl.list(QueryImpl.java:92)
         at com.liferay.portal.kernel.dao.orm.QueryUtil.list(QueryUtil.java:194)
         at com.liferay.portal.kernel.dao.orm.QueryUtil.list(QueryUtil.java:162)
         at com.liferay.portlet.journal.service.persistence.JournalArticlePersistenceImpl.findByG_A_ST(JournalArticlePersistenceImpl.java:14214)
         ...
         at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.getLatestArticle(JournalArticleLocalServiceImpl.java:1534)
         at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.getLatestVersion(JournalArticleLocalServiceImpl.java:1607)
         at com.liferay.portlet.journal.service.impl.JournalArticleLocalServiceImpl.isLatestVersion(JournalArticleLocalServiceImpl.java:1728)
         ...
         at com.liferay.portlet.journal.service.JournalArticleLocalServiceUtil.isLatestVersion(JournalArticleLocalServiceUtil.java:834)
         at com.liferay.portlet.journal.lar.JournalPortletDataHandlerImpl.doExportData(JournalPortletDataHandlerImpl.java:2745)
         at com.liferay.portal.kernel.lar.BasePortletDataHandler.exportData(BasePortletDataHandler.java:78)
         at com.liferay.portal.lar.PortletExporter.exportPortletData(PortletExporter.java:1094)
         at com.liferay.portal.lar.PortletExporter.exportPortlet(PortletExporter.java:885)
         at com.liferay.portal.lar.LayoutExporter.doExportLayoutsAsFile(LayoutExporter.java:525)
         at com.liferay.portal.lar.LayoutExporter.exportLayoutsAsFile(LayoutExporter.java:191)
         at com.liferay.portal.service.impl.LayoutLocalServiceImpl.exportLayoutsAsFile(LayoutLocalServiceImpl.java:747)
         ...
         at com.liferay.portal.kernel.staging.StagingUtil.publishToRemote(StagingUtil.java:319)
         at com.liferay.portlet.layoutsadmin.action.EditLayoutsAction.processAction(EditLayoutsAction.java:226)
         ...
         at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:559)
         at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:536)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
         ...
         at java.lang.Thread.run(Thread.java:662)
      

        Attachments

        1. create all the things for master.war
          96 kB
        2. jstack
          8 kB
        3. jstack2
          9 kB
        4. jstack3
          8 kB
        5. jstack4
          10 kB

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 35 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 M1