Hi all, Have a doubt with expected behavior in case of RollingUpgrade and rollback.
Scenario: 1. file was being written before rolling upgrade started and written some bytes, say X, with hsync(). 2. Rolling upgrade done and writer continued to write and added some more bytes and file closed with X+Y bytes. 3. Now rollback done. i. Current state of the File is UNDERCONSTRUCTION. Ii. getFileStatus() returns with size X. BUT in replicas there is a FINALIZED replica with size X+Y. iii. recoverLease() on the file closes the file with X+Y bytes. Question: What should be the size here after rollback + recoverLease()? Since user always writes with hsync(), application might have some other track of how much bytes written. But now, extra bytes are seen after rollback. Is this correct? -vinay