accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ACCUMULO-3188) DfsLogger has inefficient seek in crypto case
Date Thu, 18 Dec 2014 19:00:14 GMT

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

Christopher Tubbs updated ACCUMULO-3188:
----------------------------------------
    Fix Version/s:     (was: 1.6.3)

> DfsLogger has inefficient seek in crypto case
> ---------------------------------------------
>
>                 Key: ACCUMULO-3188
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-3188
>             Project: Accumulo
>          Issue Type: Improvement
>          Components: tserver
>    Affects Versions: 1.6.1
>            Reporter: Josh Elser
>            Priority: Minor
>              Labels: newbie
>             Fix For: 1.7.0
>
>
> Noticed an inefficiency when opening an encrypted WAL and attempting to read any serialized
encryption parameters:
> {code:title=DfsLogger.java}
>           input.seek(0);
>           input.readFully(magicBufferV2);
> {code}
> Seeking back to 0 and then re-reading the length of the {{magicBufferV2}} is unnecessary
when the input stream can just be seeked to the length of {{magicBufferV2}}.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message