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

MintorService.stop() method called twice when flume is stop

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Node
    • None

    Description

      when flume stop, the MintorService.stop() method called twice, the code is following:

       

      public void stop() {
      	lifecycleLock.lock();
      	// stopAllComponents() method will call monitorServer.stop()
      	stopAllComponents();
      	try {
      	  supervisor.stop();
      	  if (monitorServer != null) {
      	  	// second call
      		monitorServer.stop();
      	  }
      	} finally {
      	    lifecycleLock.unlock();
      	}
      }
      
      
      private void stopAllComponents() {
      	if (this.materializedConfiguration != null) {
      	}
      
      	if (monitorServer != null) {
      		// first call
      		monitorServer.stop();
      	}
      }
      
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            ykgarfield yangkun
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: