New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZOOKEEPER-2892: Improve lazy initialize and close stream for `PrepRequestProcessor` #361

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@asdf2014
Member

asdf2014 commented Sep 6, 2017

Improve lazy initialize and close stream for PrepRequestProcessor

  • Delay the initialization of ChangeRecord and ReconfigRequest variables
  • Close the ByteArrayOutputStream I/O stream

@hanm PTAL

@asdf2014 asdf2014 force-pushed the asdf2014:ZOOKEEPER-2892 branch from 3b053f2 to 14ea808 Sep 6, 2017

@asdf2014

This comment has been minimized.

Member

asdf2014 commented Sep 6, 2017

Seems like jenkins cannot work normally? @hanm

GitHub pull request #361 to apache/zookeeper
[EnvInject] - Loading node environment variables.
ERROR: SEVERE ERROR occurs
org.jenkinsci.lib.envinject.EnvInjectException: java.io.IOException: Remote call on H5 failed
	at org.jenkinsci.plugins.envinject.EnvInjectListener.loadEnvironmentVariablesNode(EnvInjectListener.java:86)
	at org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:43)
	at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:528)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:448)
	at hudson.model.Run.execute(Run.java:1735)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:405)
Caused by: java.io.IOException: Remote call on H5 failed
	at hudson.remoting.Channel.call(Channel.java:838)
	at hudson.FilePath.act(FilePath.java:1081)
	at org.jenkinsci.plugins.envinject.service.EnvInjectActionSetter.addEnvVarsToRun(EnvInjectActionSetter.java:59)
	at org.jenkinsci.plugins.envinject.EnvInjectListener.loadEnvironmentVariablesNode(EnvInjectListener.java:83)
	... 7 more
Caused by: java.lang.OutOfMemoryError: Java heap space
ERROR: Step ?Archive the artifacts? failed: no workspace for PreCommit-ZOOKEEPER-github-pr-build #998
ERROR: Step ?Publish JUnit test result report? failed: no workspace for PreCommit-ZOOKEEPER-github-pr-build #998
[description-setter] Could not determine description.
Putting comment on the pull request
[EnvInject] - [ERROR] - SEVERE ERROR occurs: Remote call on H5 failed
Email was triggered for: Failure - Any
Sending email for trigger: Failure - Any
Sending email to: dev@zookeeper.apache.org
Warning: this build has no associated authentication, so build permissions may be lacking, and downstream projects which cannot even be seen by an anonymous user will be silently skipped
Finished: FAILURE
@hanm

This comment has been minimized.

Contributor

hanm commented Sep 6, 2017

Looks like a transient error, you can try retrigger Jenkins job by closing and reopening the pull request, or just generate a new commit hash (git commit --amend) and force push to remote.

@asdf2014

This comment has been minimized.

Member

asdf2014 commented Sep 6, 2017

Okay, I'll try it.

@asdf2014 asdf2014 closed this Sep 6, 2017

@asdf2014 asdf2014 reopened this Sep 6, 2017

@asdf2014

This comment has been minimized.

Member

asdf2014 commented Sep 6, 2017

@hanm It works, thx a lot. 👍

@hanm

Good optimizations, thanks for doing this @asdf2014.

There are some merge conflicts with top of master, caused by an earlier commit today. Please resolve the conflict and update this pull request, then I'll merge.

@asdf2014 asdf2014 force-pushed the asdf2014:ZOOKEEPER-2892 branch from 14ea808 to 33774bf Sep 12, 2017

@asdf2014 asdf2014 force-pushed the asdf2014:ZOOKEEPER-2892 branch from 33774bf to 2237131 Sep 12, 2017

@asdf2014

This comment has been minimized.

Member

asdf2014 commented Sep 12, 2017

@hanm Thanks for your suggestion. Conflicts has been fixed.

@asdf2014 asdf2014 closed this Sep 18, 2017

@asdf2014 asdf2014 reopened this Sep 18, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment