GitHub user asdf2014 opened a pull request:
https://github.com/apache/zookeeper/pull/361
ZOOKEEPER-2892: Improve lazy initialize and close stream for
`PrepRequestProcessor`
Improve lazy initialize and close stream for `PrepRequestProcessor`
* Delay the initialization of `ChangeRecord` and `ReconfigRequest` variables
* Close the `ByteArrayOutputStream` I/O stream
@hanm PTAL
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/asdf2014/zookeeper ZOOKEEPER-2892
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zookeeper/pull/361.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #361
----
commit 3b053f2fe57b3b4bc52dac29134b6f68e7b48c6d
Author: asdf2014 <[email protected]>
Date: 2017-09-06T02:02:28Z
ZOOKEEPER-2892: Improve lazy initialize and close stream for
`PrepRequestProcessor`
----
---