HADOOP-11674. oneByteBuf in CryptoInputStream and CryptoOutputStream should be non static. (Sean Busbey via yliu)
(cherry picked from commit b569c3ab1c
)
This commit is contained in:
parent
5a6755cc0f
commit
bb1b87f3b8
|
@ -45,6 +45,9 @@ Release 2.6.1 - UNRELEASED
|
||||||
HADOOP-11604. Prevent ConcurrentModificationException while closing domain
|
HADOOP-11604. Prevent ConcurrentModificationException while closing domain
|
||||||
sockets during shutdown of DomainSocketWatcher thread. (cnauroth)
|
sockets during shutdown of DomainSocketWatcher thread. (cnauroth)
|
||||||
|
|
||||||
|
HADOOP-11674. oneByteBuf in CryptoInputStream and CryptoOutputStream
|
||||||
|
should be non static. (Sean Busbey via yliu)
|
||||||
|
|
||||||
Release 2.6.0 - 2014-11-18
|
Release 2.6.0 - 2014-11-18
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
|
|
@ -60,7 +60,7 @@ public class CryptoInputStream extends FilterInputStream implements
|
||||||
Seekable, PositionedReadable, ByteBufferReadable, HasFileDescriptor,
|
Seekable, PositionedReadable, ByteBufferReadable, HasFileDescriptor,
|
||||||
CanSetDropBehind, CanSetReadahead, HasEnhancedByteBufferAccess,
|
CanSetDropBehind, CanSetReadahead, HasEnhancedByteBufferAccess,
|
||||||
ReadableByteChannel {
|
ReadableByteChannel {
|
||||||
private static final byte[] oneByteBuf = new byte[1];
|
private final byte[] oneByteBuf = new byte[1];
|
||||||
private final CryptoCodec codec;
|
private final CryptoCodec codec;
|
||||||
private final Decryptor decryptor;
|
private final Decryptor decryptor;
|
||||||
private final int bufferSize;
|
private final int bufferSize;
|
||||||
|
|
|
@ -45,7 +45,7 @@ import com.google.common.base.Preconditions;
|
||||||
@InterfaceStability.Evolving
|
@InterfaceStability.Evolving
|
||||||
public class CryptoOutputStream extends FilterOutputStream implements
|
public class CryptoOutputStream extends FilterOutputStream implements
|
||||||
Syncable, CanSetDropBehind {
|
Syncable, CanSetDropBehind {
|
||||||
private static final byte[] oneByteBuf = new byte[1];
|
private final byte[] oneByteBuf = new byte[1];
|
||||||
private final CryptoCodec codec;
|
private final CryptoCodec codec;
|
||||||
private final Encryptor encryptor;
|
private final Encryptor encryptor;
|
||||||
private final int bufferSize;
|
private final int bufferSize;
|
||||||
|
|
Loading…
Reference in New Issue