Uploaded image for project: 'Flume'
  1. Flume
  2. FLUME-2786

It will enter a deadlock state when modify the conf file before I stop flume-ng

Attach filesAttach ScreenshotVotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.6.0
    • 1.8.1, 1.9.0
    • Master
    • None
    • Important

    Description

      When modify the conf fileļ¼Œand then I stop the flume-ng, It will enter a deadlock state.

      jstack result:

      "agent-shutdown-hook" prio=10 tid=0x00007f2e26419800 nid=0x333ae waiting on condition [0x0000000042c16000]

      java.lang.Thread.State: TIMED_WAITING (parking)

      at sun.misc.Unsafe.park(Native Method)

      • parking to wait for <0x00000000eaff3df8> (a java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject)

      at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:226)

      at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2082)

      at java.util.concurrent.ThreadPoolExecutor.awaitTermination(ThreadPoolExecutor.java:1468)

      at java.util.concurrent.Executors$DelegatedExecutorService.awaitTermination(Executors.java:635)

      at org.apache.flume.node.PollingPropertiesFileConfigurationProvider.stop(PollingPropertiesFileConfigurationProvider.java:87)

      at org.apache.flume.lifecycle.LifecycleSupervisor.stop(LifecycleSupervisor.java:106)

      • locked <0x00000000eaf2daa0> (a org.apache.flume.lifecycle.LifecycleSupervisor)

      at org.apache.flume.node.Application.stop(Application.java:93)

      • locked <0x00000000eaf3c580> (a org.apache.flume.node.Application)

      at org.apache.flume.node.Application$1.run(Application.java:348)

      "conf-file-poller-0" prio=10 tid=0x00007f2e2e8cd000 nid=0x21819 waiting for monitor entry [0x0000000041e3f000]
      java.lang.Thread.State: BLOCKED (on object monitor)
      at org.apache.flume.node.Application.handleConfigurationEvent(Application.java:88)

      • waiting to lock <0x00000000eaf3c580> (a org.apache.flume.node.Application)

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            godfreyhe godfrey he
            Votes:
            1 Vote for this issue
            Watchers:
            8 Stop watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment