Uploaded image for project: 'Spring Integration'
  1. Spring Integration
  2. INT-4382

Deadlock in FileWritingMessageHandler

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 5.0 GA, 4.3.13
    • Fix Version/s: 5.0.1, 4.3.14
    • Component/s: File Support
    • Labels:

      Description

      build	18-Jan-2018 21:21:20	Found one Java-level deadlock:
      build	18-Jan-2018 21:21:20	=============================
      build	18-Jan-2018 21:21:20	"ThreadPoolTaskScheduler-1":
      build	18-Jan-2018 21:21:20	  waiting for ownable synchronizer 0x00000000fe63b5b8, (a java.util.concurrent.locks.ReentrantLock$NonfairSync),
      build	18-Jan-2018 21:21:20	  which is held by "Test worker"
      build	18-Jan-2018 21:21:20	"Test worker":
      build	18-Jan-2018 21:21:20	  waiting to lock monitor 0x00007f0fac005878 (object 0x00000000fe8a1c28, a org.springframework.integration.file.FileWritingMessageHandler),
      build	18-Jan-2018 21:21:20	  which is held by "ThreadPoolTaskScheduler-1"
      build	18-Jan-2018 21:21:20	
      build	18-Jan-2018 21:21:20	Java stack information for the threads listed above:
      build	18-Jan-2018 21:21:20	===================================================
      build	18-Jan-2018 21:21:20	"ThreadPoolTaskScheduler-1":
      build	18-Jan-2018 21:21:20		at sun.misc.Unsafe.park(Native Method)
      build	18-Jan-2018 21:21:20		- parking to wait for  <0x00000000fe63b5b8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
      build	18-Jan-2018 21:21:20		at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175)
      build	18-Jan-2018 21:21:20		at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:836)
      build	18-Jan-2018 21:21:20		at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireInterruptibly(AbstractQueuedSynchronizer.java:897)
      build	18-Jan-2018 21:21:20		at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireInterruptibly(AbstractQueuedSynchronizer.java:1222)
      build	18-Jan-2018 21:21:20		at java.util.concurrent.locks.ReentrantLock.lockInterruptibly(ReentrantLock.java:335)
      build	18-Jan-2018 21:21:20		at org.springframework.integration.file.FileWritingMessageHandler$FileState.close(FileWritingMessageHandler.java:950)
      build	18-Jan-2018 21:21:20		at org.springframework.integration.file.FileWritingMessageHandler$FileState.access$1000(FileWritingMessageHandler.java:924)
      build	18-Jan-2018 21:21:20		at org.springframework.integration.file.FileWritingMessageHandler$Flusher.run(FileWritingMessageHandler.java:987)
      build	18-Jan-2018 21:21:20		- locked <0x00000000fe8a1c28> (a org.springframework.integration.file.FileWritingMessageHandler)
      build	18-Jan-2018 21:21:20		at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
      build	18-Jan-2018 21:21:20		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      build	18-Jan-2018 21:21:20		at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
      build	18-Jan-2018 21:21:20		at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
      build	18-Jan-2018 21:21:20		at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
      build	18-Jan-2018 21:21:20		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      build	18-Jan-2018 21:21:20		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      build	18-Jan-2018 21:21:20		at java.lang.Thread.run(Thread.java:748)
      build	18-Jan-2018 21:21:20	"Test worker":
      build	18-Jan-2018 21:21:20		at org.springframework.integration.file.FileWritingMessageHandler.getFileState(FileWritingMessageHandler.java)
      build	18-Jan-2018 21:21:20		- waiting to lock <0x00000000fe8a1c28> (a org.springframework.integration.file.FileWritingMessageHandler)
      build	18-Jan-2018 21:21:20		at org.springframework.integration.file.FileWritingMessageHandler.access$200(FileWritingMessageHandler.java:106)
      build	18-Jan-2018 21:21:20		at org.springframework.integration.file.FileWritingMessageHandler$3.whileLocked(FileWritingMessageHandler.java:672)
      build	18-Jan-2018 21:21:20		at org.springframework.integration.util.WhileLockedProcessor.doWhileLocked(WhileLockedProcessor.java:52)
      build	18-Jan-2018 21:21:20		at org.springframework.integration.file.FileWritingMessageHandler.handleStringMessage(FileWritingMessageHandler.java:700)
      build	18-Jan-2018 21:21:20		at org.springframework.integration.file.FileWritingMessageHandler.handleRequestMessage(FileWritingMessageHandler.java:463)
      build	18-Jan-2018 21:21:20		at org.springframework.integration.handler.AbstractReplyProducingMessageHandler.handleMessageInternal(AbstractReplyProducingMessageHandler.java:109)
      build	18-Jan-2018 21:21:20		at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:127)
      build	18-Jan-2018 21:21:20		at org.springframework.integration.file.FileWritingMessageHandlerTests.noFlushAppend(FileWritingMessageHandlerTests.java:544)
      build	18-Jan-2018 21:21:20		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      build	18-Jan-2018 21:21:20		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      build	18-Jan-2018 21:21:20		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      build	18-Jan-2018 21:21:20		at java.lang.reflect.Method.invoke(Method.java:498)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                grussell Gary Russell
                Reporter:
                grussell Gary Russell
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: