[ https://issues.apache.org/jira/browse/ZOOKEEPER-4031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17252587#comment-17252587 ]
maoling commented on ZOOKEEPER-4031: ------------------------------------ [~nsnhuang] *"storedFiles"* stored files is the list of files greater than the zxid we are looking for and a log file includes/contains that zxid transaction log entry. For example: we have the followings ten logs: {code:java} -rw-r--r-- 1 wenba wheel 64M 12 1 18:14 log.ab00000001 -rw-r--r-- 1 wenba wheel 64M 12 1 18:20 log.ad00000001 (743029342209) -rw-r--r-- 1 wenba wheel 64M 12 5 18:17 log.af00000001 (751619276801) -rw-r--r-- 1 wenba wheel 64M 12 5 18:39 log.b100000001 -rw-r--r-- 1 wenba wheel 64M 12 5 18:51 log.b700000001 -rw-r--r-- 1 wenba wheel 64M 12 6 18:16 log.b900000001 -rw-r--r-- 1 wenba wheel 128M 12 12 17:59 log.bc00000001 -rw-r--r-- 1 wenba wheel 128M 12 12 18:05 log.bd000157b0 -rw-r--r-- 1 wenba wheel 64M 12 12 18:12 log.bd0002ac56 -rw-r--r-- 1 wenba wheel 64M 12 12 18:23 log.bd0003ba65{code} Note: the zxid of the log naming is the smallest zxid of that log file Now zxid is: 743029345678, the file we should iterate is from the log.ad00000001 to log.bd0003ba65, otherwise we will miss the data ranging from 743029345678 to 751619276801. > Why we would “add the last logfile that is less than the zxid” in > FileTxnLog:653 > ---------------------------------------------------------------------------------- > > Key: ZOOKEEPER-4031 > URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4031 > Project: ZooKeeper > Issue Type: Improvement > Components: server > Reporter: huangwenbo > Priority: Minor > -- This message was sent by Atlassian Jira (v8.3.4#803005)