Read/Write Replication: WaR1 policy: read() requires a successfully acquired lease #235
From michael....@gmail.com on November 30, 2011 10:56:15
What steps will reproduce the problem? 1. Setup a XtreemFS system with two OSDs and set the default replication policy for the volume to "WaR1" and the replication factor to 2.
However, the current implementation does try to acquire a lease in this case and this does fail as no majority is present, the read() does fail.
In case of a WaR1 read(), execute a local read() only. If a write() follows, upgrade the file state in the OSD and acquire the lease first before executing the write().
Original issue: http://code.google.com/p/xtreemfs/issues/detail?id=235