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

Deleting and adding file with same name may break syncing

    Details

    • Type: Regression Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Desktop-3.0.10 GA2
    • Fix Version/s: Desktop-3.0.11 GA3
    • Component/s: General
    • Labels:
      None

      Description

      Regression of SYNC-1498. SYNC-1498 fixed one issue, but now may cause the following exception in the logs and prevent further syncing:

      16:08:08.206 ERROR [pool-14-thread-5] [BaseHandler:145] Comparison method violates its general contract!
      java.lang.IllegalArgumentException: Comparison method violates its general contract!
      at java.util.TimSort.mergeHi(Unknown Source) ~[na:1.8.0_66]
      at java.util.TimSort.mergeAt(Unknown Source) ~[na:1.8.0_66]
      at java.util.TimSort.mergeForceCollapse(Unknown Source) ~[na:1.8.0_66]
      at java.util.TimSort.sort(Unknown Source) ~[na:1.8.0_66]
      at java.util.Arrays.sort(Unknown Source) ~[na:1.8.0_66]
      at java.util.ArrayList.sort(Unknown Source) ~[na:1.8.0_66]
      at java.util.Collections.sort(Unknown Source) ~[na:1.8.0_66]
      at com.liferay.sync.engine.documentlibrary.handler.GetSyncDLObjectUpdateHandler.processResponse(GetSyncDLObjectUpdateHandler.java:202) ~[com.liferay.sync.engine-3.0.10.jar:na]
      at com.liferay.sync.engine.documentlibrary.handler.BaseJSONHandler.doHandleResponse(BaseJSONHandler.java:321) [com.liferay.sync.engine-3.0.10.jar:na]
      at com.liferay.sync.engine.documentlibrary.handler.BaseJSONHandler.handleResponse(BaseJSONHandler.java:287) [com.liferay.sync.engine-3.0.10.jar:na]
      at com.liferay.sync.engine.documentlibrary.handler.BaseJSONHandler.handleResponse(BaseJSONHandler.java:52) [com.liferay.sync.engine-3.0.10.jar:na]
      at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222) [httpclient-4.5.1.jar:4.5.1]
      at com.liferay.sync.engine.session.Session.execute(Session.java:303) [com.liferay.sync.engine-3.0.10.jar:na]
      at com.liferay.sync.engine.documentlibrary.event.BaseEvent.executePost(BaseEvent.java:120) [com.liferay.sync.engine-3.0.10.jar:na]
      at com.liferay.sync.engine.documentlibrary.event.GetSyncDLObjectUpdateEvent.processRequest(GetSyncDLObjectUpdateEvent.java:82) [com.liferay.sync.engine-3.0.10.jar:na]
      at com.liferay.sync.engine.documentlibrary.event.BaseEvent.run(BaseEvent.java:172) [com.liferay.sync.engine-3.0.10.jar:na]
      at com.liferay.sync.engine.documentlibrary.util.FileEventUtil.getUpdates(FileEventUtil.java:286) [com.liferay.sync.engine-3.0.10.jar:na]
      at com.liferay.sync.engine.SyncEngine$2.doRun(SyncEngine.java:355) [com.liferay.sync.engine-3.0.10.jar:na]
      at com.liferay.sync.engine.SyncEngine$2.run(SyncEngine.java:325) [com.liferay.sync.engine-3.0.10.jar:na]
      at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [na:1.8.0_66]
      at java.util.concurrent.FutureTask.runAndReset(Unknown Source) [na:1.8.0_66]
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source) [na:1.8.0_66]
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) [na:1.8.0_66]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_66]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.8.0_66]
      at java.lang.Thread.run(Unknown Source) [na:1.8.0_66]

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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