hadoop-hdfs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vinayakumar B <vinayakumar...@huawei.com>
Subject RollingUpgrade Rollback openfiles issue
Date Thu, 25 May 2017 13:09:58 GMT

Hi all,

Have a doubt with expected behavior in case of RollingUpgrade and rollback.


1. file was being written before rolling upgrade started and written some bytes, say X, with
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.

   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?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message