accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Created] (ACCUMULO-3188) DfsLogger has inefficient seek in crypto case
Date Tue, 30 Sep 2014 19:38:35 GMT
Josh Elser created ACCUMULO-3188:
------------------------------------

             Summary: 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
             Fix For: 1.6.2, 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