Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Flume >> mail # user >> will memory channel lose data when stop flume?


Copy link to this message
-
Re: will memory channel lose data when stop flume?
Memory Channel will lose the data in memory if the application restarts. If the config is changed and the channel is restarted the data will still be available.

Thanks,
Hari
On Wednesday, December 4, 2013 at 7:47 PM, Shangan Chen wrote:

> When I check the code in Application, I found the stop logic doesn't guarantee the memory channel is drained out. It seems to stop component randomly as components are stored in a map. So events in memory channel might be lost when stopping flume. This can also happen in reload mode. Am I right ?
>    
>    Runtime.getRuntime().addShutdownHook(new Thread("agent-shutdown-hook") {
>         @Override
>         public void run() {
>           appReference.stop();
>         }
>       });
>
>   public synchronized void stop() {
>     supervisor.stop();
>     if(monitorServer != null) {
>       monitorServer.stop();
>     }
>
>   }
>
> --
> have a good day!
> chenshang'an
>

NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB