Re: About HDFS consistency model

2017-08-01 Thread Hongxu Ma
/browse/HDFS-265 , https://issues.apache.org/jira/browse/HDFS-744 etc. I know there may be some windy conversations, but the good thing about open-source is that all these deliberations are for everyone to see. HTH Ravi. On Mon, Jul 31, 2017 at 3:13 AM, Hongxu Ma mailto:inte...@outlook.com

About HDFS consistency model

2017-07-31 Thread Hongxu Ma
Hi Dev In short, is there a full introduction to hdfs consistency model? I have already read some miscellaneous stuffs, e.g. - some simple scenario - read+read, ok - write+write, forbidden (guaranteed be lease) - design doc of append, truncate - hflush/hsync - top pages of google "hdfs con

Re: Does hdfs support concurrent append?

2017-07-26 Thread Hongxu Ma
Thanks Ravi, clear! 在 27/07/2017 03:51, Ravi Prakash 写道: Hi Hongxu! That is correct. At any point there can only be 1 writer. This is enforced by requiring the writer to acquire leases. There may be multiple readers. HTH Ravi On Wed, Jul 26, 2017 at 12:31 AM, Hongxu Ma mailto:inte

Does hdfs support concurrent append?

2017-07-26 Thread Hongxu Ma
Hi hdfs-dev Question as the subject. I googled some pages and wrote a test program to validate it. Seems doesn't support (my test program gave: No lease on XXX error message). Just for confirmation, thanks. -- Regards, Hongxu.