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] [Resolved] (ACCUMULO-3188) DfsLogger has inefficient seek in crypto case
Date Fri, 19 Dec 2014 22:23:15 GMT

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

Christopher Tubbs resolved ACCUMULO-3188.
-----------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.6.2
         Assignee: Christopher Tubbs

> 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
>            Assignee: Christopher Tubbs
>            Priority: Minor
>              Labels: newbie
>             Fix For: 1.6.2, 1.7.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> 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