You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Josh Elser (JIRA)" <ji...@apache.org> on 2014/09/30 21:38:35 UTC
[jira] [Created] (ACCUMULO-3188) DfsLogger has inefficient seek in
crypto case
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)