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

Possible ConcurrentModificationException when events are queued

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Desktop-3.3.0 GA1
    • Fix Version/s: Desktop-3.4.0 GA1
    • Component/s: General
    • Labels:
      None

      Description

      15:03:59.944 TRACE [pool-9-thread-3] [SyncWatchEventProcessor:482] Processing Sync watch events
      15:03:59.947 DEBUG [pool-9-thread-3] [SyncWatchEventProcessor:677] Processing Sync watch event {"uiEvent":0,"eventType":"ENTRY_RENAME","filePathName":"/Users/deju/Documents/cloud-10-50-0-107.liferay.com (3)/Liferay/b1.txt","fileType":"file","previousFilePathName":"/Users/deju/Documents/cloud-10-50-0-107.liferay.com (3)/Liferay/.!38837!b1.txt","syncAccountId":1,"syncWatchEventId":241,"timestamp":1472076235879}
      15:04:21.924 TRACE [pool-9-thread-3] [BaseEvent:181] Processing event PatchFileEntryEvent file path /Users/deju/Documents/cloud-10-50-0-107.liferay.com (3)/Liferay/b1.txt
      15:04:21.939 DEBUG [pool-9-thread-3] [SyncWatchEventProcessor:677] Processing Sync watch event {"uiEvent":0,"eventType":"ENTRY_CREATE","filePathName":"/Users/deju/Documents/cloud-10-50-0-107.liferay.com (3)/Liferay/b1.txt","fileType":"file","previousFilePathName":null,"syncAccountId":1,"syncWatchEventId":242,"timestamp":1472076236843}
      15:04:21.940 DEBUG [pool-9-thread-3] [SyncWatchEventProcessor:695] Skipping outdated Sync watch event
      15:04:24.944 TRACE [pool-9-thread-3] [SyncWatchEventProcessor:482] Processing Sync watch events
      15:04:24.945 DEBUG [pool-9-thread-3] [SyncWatchEventProcessor:677] Processing Sync watch event {"uiEvent":0,"eventType":"ENTRY_CREATE","filePathName":"/Users/deju/Documents/cloud-10-50-0-107.liferay.com (3)/Liferay/b1.txt","fileType":"file","previousFilePathName":null,"syncAccountId":1,"syncWatchEventId":243,"timestamp":1472076240361}
      15:04:24.945 DEBUG [pool-9-thread-3] [SyncWatchEventProcessor:695] Skipping outdated Sync watch event
      15:04:24.945 DEBUG [pool-9-thread-3] [SyncWatchEventProcessor:677] Processing Sync watch event {"uiEvent":0,"eventType":"ENTRY_MODIFY","filePathName":"/Users/deju/Documents/cloud-10-50-0-107.liferay.com (3)/Liferay/b1.txt","fileType":"file","previousFilePathName":null,"syncAccountId":1,"syncWatchEventId":244,"timestamp":1472076243330}
      15:04:24.946 DEBUG [pool-9-thread-3] [SyncWatchEventProcessor:765] Queueing event ENTRY_MODIFY /Users/deju/Documents/cloud-10-50-0-107.liferay.com (3)/Liferay/b1.txt
      15:04:24.946 DEBUG [pool-9-thread-3] [SyncWatchEventProcessor:677] Processing Sync watch event {"uiEvent":0,"eventType":"ENTRY_CREATE","filePathName":"/Users/deju/Documents/cloud-10-50-0-107.liferay.com (3)/Liferay/b1.txt","fileType":"file","previousFilePathName":null,"syncAccountId":1,"syncWatchEventId":245,"timestamp":1472076243331}
      15:04:24.947 DEBUG [pool-9-thread-3] [SyncWatchEventProcessor:765] Queueing event ENTRY_CREATE /Users/deju/Documents/cloud-10-50-0-107.liferay.com (3)/Liferay/b1.txt
      15:04:24.947 DEBUG [pool-9-thread-3] [SyncWatchEventProcessor:677] Processing Sync watch event {"uiEvent":0,"eventType":"ENTRY_MODIFY","filePathName":"/Users/deju/Documents/cloud-10-50-0-107.liferay.com (3)/Liferay/b1.txt","fileType":"file","previousFilePathName":null,"syncAccountId":1,"syncWatchEventId":244,"timestamp":1472076243330}
      15:04:24.947 DEBUG [pool-9-thread-3] [SyncWatchEventProcessor:765] Queueing event ENTRY_MODIFY /Users/deju/Documents/cloud-10-50-0-107.liferay.com (3)/Liferay/b1.txt
      15:04:24.948 ERROR [pool-9-thread-3] [SyncWatchEventProcessor:145] null
      java.util.ConcurrentModificationException: null
             	at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
             	at java.util.ArrayList$Itr.next(ArrayList.java:851)
             	at com.liferay.sync.engine.file.system.SyncWatchEventProcessor.doRun(SyncWatchEventProcessor.java:508)
             	at com.liferay.sync.engine.file.system.SyncWatchEventProcessor.run(SyncWatchEventProcessor.java:142)
             	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
             	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
             	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
             	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
             	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
             	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
             	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            • Assignee:
              shinn.lok Shinn Lok
              Reporter:
              shinn.lok Shinn Lok
              Participants of an Issue:
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 13 weeks, 1 day ago

                Packages

                Version Package
                Desktop-3.4.0 GA1