Uploaded image for project: 'PUBLIC - Liferay Sync'
  1. PUBLIC - Liferay Sync
  2. SYNC-1794

Liferay Sync may get stuck processing a file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Desktop-3.4.4 GA5
    • Fix Version/s: Desktop-3.4.5 GA6
    • Component/s: General
    • Labels:
      None

      Description

      If Liferay Sync tries to operate on a file that is locked by another process, the Sync client will sometimes get stuck in the midst of processing. The only way to resume processing is to exit the app and restart.

      An exception similar to the following will appear in the log:

      14:04:50.314 DEBUG [pool-19-thread-1] [BaseHandler:81] Handling exception java.io.IOException: The process cannot access the file because another process has locked a portion of the file
      14:04:50.314 ERROR [pool-19-thread-1] [BaseHandler:140] The process cannot access the file because another process has locked a portion of the file
      java.io.IOException: The process cannot access the file because another process has locked a portion of the file
      	at java.io.FileInputStream.readBytes(Native Method)
      	at java.io.FileInputStream.read(Unknown Source)
      	at org.apache.http.entity.mime.content.FileBody.writeTo(FileBody.java:120)
      	at com.liferay.sync.engine.session.Session$5.writeTo(Session.java:567)
      	at org.apache.http.entity.mime.AbstractMultipartForm.doWriteTo(AbstractMultipartForm.java:134)
      	at org.apache.http.entity.mime.AbstractMultipartForm.writeTo(AbstractMultipartForm.java:157)
      	at org.apache.http.entity.mime.MultipartFormEntity.writeTo(MultipartFormEntity.java:113)
      	at com.liferay.sync.engine.session.SyncManagedHttpClientConnection.sendRequestEntity(SyncManagedHttpClientConnection.java:85)
      	at org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:162)
      	at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:238)
      	at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
      	at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:271)
      	at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
      	at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
      	at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:71)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:220)
      	at com.liferay.sync.engine.session.Session.execute(Session.java:343)
      	at com.liferay.sync.engine.session.Session$2.run(Session.java:311)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)
      

        Attachments

          Activity

            People

            • Assignee:
              dennis.ju Dennis Ju
              Reporter:
              dennis.ju Dennis Ju
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 7 weeks, 3 days ago

                Packages

                Version Package
                Desktop-3.4.5 GA6