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

NetcatSource stop() function returns when client still connected to the source, and can still write to it.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Sinks+Sources
    • None

    Description

      Previous behavior(commit: 48edaf2) :

      • netcat source runner.stop blocked till the accept handler exited when the nc client connected to it closed the connection
        (logs: [DEBUG - org.apache.flume.source.NetcatSource.stop(NetcatSource.java:208)] Waiting for handler service to stop)

      New behavior(commit: 39aba18):

      • netcat source runner.stop returns but a connected a client can still write to it, while a new source started up for the same agent due to reconfiguration. Note that a new client can startup on the same port as the old netcat source with no bind exception.

      Attachments

        1. FLUME-1084-2.patch
          3 kB
          Hari Shreedharan

        Activity

          People

            hshreedharan Hari Shreedharan
            hshreedharan Hari Shreedharan
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: