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

A thread dump is printed in the log every 10 minutes while performing an upgrade

    Details

      Description

      Steps to reproduce it:

      1. Execute ant nightly (I haven't tested it with ant all)
      2. Execute the upgrade for a database whose upgrade process takes at least 10 minutes.

      Results:
      Every ten minutes a thread dump is printed in the log:

      2018-08-09 13:22:29.885 INFO  [default-4][LoggingTimer:39] Completed com.liferay.portal.upgrade.util.ParallelUpgradeSchemaUtil$CallableSQLExecutor#call#update-6.1.1-6.2.0-expando.sql in 2224 ms
      2018-08-09 13:22:42.799 INFO  [default-8][LoggingTimer:39] Completed com.liferay.portal.upgrade.util.ParallelUpgradeSchemaUtil$CallableSQLExecutor#call#update-6.1.1-6.2.0-wiki.sql in 15129 ms
      Thread dump for portal startup after waited 600000ms:
      
      
      2018-08-09 15:32:00
      Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.171-b11 mixed mode):
      
      "[jstack -l 23429]-StdErr" #99 daemon prio=5 os_prio=0 tid=0x00007f0dc0013000 nid=0x5c53 runnable [0x00007f0dabefd000]
         java.lang.Thread.State: RUNNABLE
              at java.io.FileInputStream.readBytes(Native Method)
              at java.io.FileInputStream.read(FileInputStream.java:255)
              at java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
              at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
              - locked <0x00000005f81c4a40> (a java.lang.UNIXProcess$ProcessPipeInputStream)
              at java.io.FilterInputStream.read(FilterInputStream.java:107)
              at com.liferay.petra.io.StreamUtil._transferByteArray(StreamUtil.java:166)
              at com.liferay.petra.io.StreamUtil.transfer(StreamUtil.java:122)
              at com.liferay.petra.io.StreamUtil.transfer(StreamUtil.java:89)
              at com.liferay.petra.io.StreamUtil.transfer(StreamUtil.java:67)
              at com.liferay.petra.process.CollectorOutputProcessor._collect(CollectorOutputProcessor.java:51)
              at com.liferay.petra.process.CollectorOutputProcessor.processStdErr(CollectorOutputProcessor.java:36)
              at com.liferay.petra.process.CollectorOutputProcessor.processStdErr(CollectorOutputProcessor.java:26)
              at com.liferay.petra.process.ProcessUtil$ProcessStdErrCallable.call(ProcessUtil.java:207)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.lang.Thread.run(Thread.java:748)
      
         Locked ownable synchronizers:
              - None
      ...
      

      Expected results:
      No thread dumps are shown in the log during the upgrade process.

      Technical explanation:
      The module which prints these thread dumps is com.liferay.portal.startup.monitor.jar (which was built for the CI tests) but it shouldn't be deployed with ant nightly or ant all, only on demand.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                28 weeks, 6 days ago