Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
HBase >> mail # dev >> Calling o/s.flush() in HLog.sync()?

Copy link to this message
Calling o/s.flush() in HLog.sync()?
Looking at ProtobufLogWriter class, it looks like the call to flush() in
the sync method is a noop.


The underlying output stream is DFSOutputStream, which doesn't implement

And, it calls sync() anyway, which ensures the data is written to DN's

Previously with SequenceFile$Writer, it writes data to the outputstream
(using Writables#write), and invoke sync/hflush.

Is there a reason we have this call here? Please let me know if I miss any

Haosong Huang 2013-11-05, 09:08
Himanshu Vashishtha 2013-11-06, 01:22
Haosong Huang 2013-11-08, 14:57
Ted Yu 2013-11-07, 22:56
Jonathan Hsieh 2013-11-15, 07:37