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

AssertionError for DocumentLibraryConvertProcessTest

    Description

    Testray

    Jenkins

         [exec] com.liferay.document.library.convert.test.DocumentLibraryConvertProcessTest > testMigrateDLAndDeleteFilesInSourceStore FAILED
         [exec]     com.liferay.portal.convert.ConvertException: com.liferay.portal.kernel.exception.SystemException: java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.document.library.internal.convert.document.library.DLFileVersionDLStoreConvertProcess, message=Unable to migrate 1
         [exec]     	at com.liferay.portal.convert.BaseConvertProcess.convert(BaseConvertProcess.java:70)
         [exec]     	at com.liferay.document.library.convert.test.DocumentLibraryConvertProcessTest.tearDown(DocumentLibraryConvertProcessTest.java:120)
         [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         [exec]     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec]     	at java.lang.reflect.Method.invoke(Method.java:498)
         [exec]     	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
         [exec]     	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
         [exec]     	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
         [exec]     	at org.junit.internal.runners.statements.RunAfters.invokeMethod(RunAfters.java:46)
         [exec]     	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:33)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:237)
         [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:316)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
         [exec]     	at java.lang.Thread.run(Thread.java:745)
         [exec]     Caused by: com.liferay.portal.kernel.exception.SystemException: java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.document.library.internal.convert.document.library.DLFileVersionDLStoreConvertProcess, message=Unable to migrate 1
         [exec]     	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.doPerformActions(DefaultActionableDynamicQuery.java:340)
         [exec]     	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:86)
         [exec]     	at com.liferay.document.library.internal.convert.document.library.DLFileVersionDLStoreConvertProcess._transfer(DLFileVersionDLStoreConvertProcess.java:92)
         [exec]     	at com.liferay.document.library.internal.convert.document.library.DLFileVersionDLStoreConvertProcess.move(DLFileVersionDLStoreConvertProcess.java:51)
         [exec]     	at com.liferay.portal.convert.documentlibrary.DocumentLibraryConvertProcess.migrateDLStoreConvertProcesses(DocumentLibraryConvertProcess.java:153)
         [exec]     	at com.liferay.portal.convert.documentlibrary.DocumentLibraryConvertProcess.doConvert(DocumentLibraryConvertProcess.java:109)
         [exec]     	at com.liferay.portal.convert.BaseConvertProcess.convert(BaseConvertProcess.java:58)
         [exec]     	... 34 more
         [exec]     Caused by: java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.document.library.internal.convert.document.library.DLFileVersionDLStoreConvertProcess, message=Unable to migrate 1
         [exec]     	at com.liferay.portal.test.rule.LogAssertionTestRule$LogAppender.append(LogAssertionTestRule.java:330)
         [exec]     	at org.apache.logging.log4j.core.config.AppenderControl.tryCallAppender(AppenderControl.java:156)
         [exec]     	at org.apache.logging.log4j.core.config.AppenderControl.callAppender0(AppenderControl.java:129)
         [exec]     	at org.apache.logging.log4j.core.config.AppenderControl.callAppenderPreventRecursion(AppenderControl.java:120)
         [exec]     	at org.apache.logging.log4j.core.config.AppenderControl.callAppender(AppenderControl.java:84)
         [exec]     	at org.apache.logging.log4j.core.config.LoggerConfig.callAppenders(LoggerConfig.java:540)
         [exec]     	at org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:498)
         [exec]     	at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:481)
         [exec]     	at org.apache.logging.log4j.core.config.LoggerConfig.logParent(LoggerConfig.java:531)
         [exec]     	at org.apache.logging.log4j.core.config.LoggerConfig.processLogEvent(LoggerConfig.java:500)
         [exec]     	at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:481)
         [exec]     	at org.apache.logging.log4j.core.config.LoggerConfig.log(LoggerConfig.java:456)
         [exec]     	at org.apache.logging.log4j.core.config.AwaitCompletionReliabilityStrategy.log(AwaitCompletionReliabilityStrategy.java:82)
         [exec]     	at org.apache.logging.log4j.core.Logger.log(Logger.java:161)
         [exec]     	at org.apache.logging.log4j.spi.AbstractLogger.tryLogMessage(AbstractLogger.java:2205)
         [exec]     	at org.apache.logging.log4j.spi.AbstractLogger.logMessageTrackRecursion(AbstractLogger.java:2159)
         [exec]     	at org.apache.logging.log4j.spi.AbstractLogger.logMessageSafely(AbstractLogger.java:2142)
         [exec]     	at org.apache.logging.log4j.spi.AbstractLogger.logMessage(AbstractLogger.java:1994)
         [exec]     	at org.apache.logging.log4j.spi.AbstractLogger.logIfEnabled(AbstractLogger.java:1852)
         [exec]     	at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:58)
         [exec]     	at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
         [exec]     	at com.liferay.portal.log.LogContextLogWrapper.error(LogContextLogWrapper.java:62)
         [exec]     	at com.liferay.document.library.internal.convert.document.library.DLFileVersionDLStoreConvertProcess.lambda$_transfer$0(DLFileVersionDLStoreConvertProcess.java:86)
         [exec]     	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performAction(DefaultActionableDynamicQuery.java:394)
         [exec]     	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:306)
         [exec]     	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:268)
         [exec]     	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.doPerformActions(DefaultActionableDynamicQuery.java:326)
         [exec]     	... 40 more
         [exec]     Caused by: com.liferay.portal.kernel.exception.SystemException: com.liferay.document.library.kernel.exception.NoSuchFileException: {companyId=20100, repositoryId=42103, fileName=1, cause=java.io.FileNotFoundException: /opt/dev/projects/github/liferay-portal/bundles/data/document_library/20100/42103/1/1.0 (No such file or directory)}
         [exec]     	at com.liferay.portal.convert.documentlibrary.DLStoreConvertProcess.transferFile(DLStoreConvertProcess.java:52)
         [exec]     	at com.liferay.document.library.internal.convert.document.library.DLFileVersionDLStoreConvertProcess.lambda$_transfer$0(DLFileVersionDLStoreConvertProcess.java:80)
         [exec]     	... 44 more
         [exec]     Caused by: com.liferay.document.library.kernel.exception.NoSuchFileException: {companyId=20100, repositoryId=42103, fileName=1, cause=java.io.FileNotFoundException: /opt/dev/projects/github/liferay-portal/bundles/data/document_library/20100/42103/1/1.0 (No such file or directory)}
         [exec]     	at com.liferay.portal.store.file.system.FileSystemStore.getFileAsStream(FileSystemStore.java:140)
         [exec]     	at com.liferay.portal.store.file.system.safe.file.name.SafeFileNameStore.getFileAsStream(SafeFileNameStore.java:93)
         [exec]     	at com.liferay.change.tracking.store.internal.CTStore.getFileAsStream(CTStore.java:139)
         [exec]     	at com.liferay.portal.convert.documentlibrary.DLStoreConvertProcess.transferFile(DLStoreConvertProcess.java:40)
         [exec]     	... 45 more
         [exec]     Caused by: java.io.FileNotFoundException: /opt/dev/projects/github/liferay-portal/bundles/data/document_library/20100/42103/1/1.0 (No such file or directory)
         [exec]     	at java.io.FileInputStream.open0(Native Method)
         [exec]     	at java.io.FileInputStream.open(FileInputStream.java:195)
         [exec]     	at java.io.FileInputStream.<init>(FileInputStream.java:138)
         [exec]     	at com.liferay.portal.store.file.system.FileSystemStore.getFileAsStream(FileSystemStore.java:137)
         [exec]     	... 48 more
    

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            yvonne.han Yvonne Han
            Reporter:
            nicholas.kwon Nicholas Kwon
            Participants of an Issue:
            Recent user:
            Enterprise Release HU
            Engineering Assignee:
            Beck Liu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              5 weeks ago

                Packages

                Version Package
                7.3.X
                Master