linkedin / dynamometer

A tool for scale and performance testing of HDFS with a specific focus on the NameNode.
BSD 2-Clause "Simplified" License
131 stars 34 forks source link

Update parse start script to handle the case that fsimage txid is cov… #78

Closed fengnanli closed 5 years ago

fengnanli commented 5 years ago

Sometimes the edit logs doesn't end exactly with the txid from fsimage, so we need to find the proper range which covers this id and thus to pick the right edit log

fengnanli commented 5 years ago

@xkrogen Please review this one and thanks in advance!

xkrogen commented 5 years ago

Hey @fengnanli , thanks for reporting this! I am curious, when will it occur that the edits file does not match the fsimage txn ID? I was under the impression that it always will; I've never seen it differ on our cluster. Maybe there are changes in newer versions of Hadoop which cause this?

The code looks good. I have two minor comments:

fengnanli commented 5 years ago

@xkrogen In our cluster it seems there is never an edit log ending with the fsimage id. I am not sure why, and we are using 2.8.2. Comments applied. I am not bash expert either :)