zookeeper-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enrico Olivelli (Jira)" <j...@apache.org>
Subject [jira] [Updated] (ZOOKEEPER-1520) A txn log record with a corrupt sentinel byte looks like EOF
Date Fri, 06 Sep 2019 15:45:06 GMT

     [ https://issues.apache.org/jira/browse/ZOOKEEPER-1520?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Enrico Olivelli updated ZOOKEEPER-1520:
---------------------------------------
    Fix Version/s:     (was: 3.5.6)

> A txn log record with a corrupt sentinel byte looks like EOF
> ------------------------------------------------------------
>
>                 Key: ZOOKEEPER-1520
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1520
>             Project: ZooKeeper
>          Issue Type: Bug
>          Components: server
>    Affects Versions: 3.3.5
>         Environment: all
>            Reporter: Bill Bridge
>            Assignee: Bill Bridge
>            Priority: Minor
>              Labels: newbie, patch
>             Fix For: 3.6.0, 3.5.7
>
>         Attachments: ZOOKEEPER-1520.patch, ant.out, checkout.out, init.out, init.out
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> In Util.readTxnBytes() the sentinel is compared with 0x42 and if it does not match then
the record is considered partially written and thus the EOF. However if it is a partial record
the sentinel should be 0x00 since that is what the log is initialized with. Any other value
would indicate corruption and should throw an IOException rather than indicate EOF. See [ZOOKEEPER-1453|https://issues.apache.org/jira/browse/ZOOKEEPER-1453]
for a related issue. 



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Mime
View raw message