Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

[REEF-807] Set JVM max memory limit used in testsuites properly #540

Closed
wants to merge 1 commit into from

Conversation

dongjoon-hyun
Copy link
Member

This PR upgrades Maven surefire plugin and sets the proper value of JVM
max memory limit for it in order to recover JDK 1.7 Apache Jenkins builds.

JIRA:
REEF-807

Pull Request:
This closes #

@dongjoon-hyun
Copy link
Member Author

Hi, @taegeonum . Could you merge this PR? I think you are the best person to merge this. :)

@taegeonum
Copy link
Contributor

@dongjoon-hyun It looks good to me. I will merge it.

@bchocho
Copy link
Contributor

bchocho commented Oct 6, 2015

@taegeonum can we test it on the build servers with java 1.7?

@taegeonum
Copy link
Contributor

@dafrista Yes. But, I found that the root cause of the OutOfMemory error is because of the outdated java 1.7 version in Jenkins. When I changed the java 1.7 to different version of 1.7 in Jenkins, the OOM is resolved.

However, regardless of the OOM, I think it is valuable to change surefire version to latest version and set the max memory limit.

@bchocho
Copy link
Contributor

bchocho commented Oct 6, 2015

That's interesting. Just for the record, what version of 1.7 is/was causing problems? It would be nice to have that information in case others run into this problem.

I agree these changes are good regardless of the OOM. It would be even nicer to confirm that they solve the issue the JIRA was originally for.

@taegeonum
Copy link
Contributor

@dafrista Unfortunately, I don't know the exact version causing the problem. Jenkins just shows /home/jenkins/tools/java/latest1.7/bin/java ( It looks like latest1.7 is not current latest version)

When I changed the java from latest1.7 to /home/jenkins/jenkins-slave/tools/hudson.model.JDK/jdk-1.7u51/bin/java, OOM is resolved.

@bchocho
Copy link
Contributor

bchocho commented Oct 6, 2015

Thanks. Does the OOM still appear with this fix running latest1.7?

@taegeonum
Copy link
Contributor

@dafrista Yes, it is. I think it would be good to change the contents of the issue REEF-807, because it is not actually resolve the OOM. @dongjoon-hyun What do you think?

@dongjoon-hyun
Copy link
Member Author

Could you point out OOM log in Apache Jenkins with latest JDK 1.7?

@dongjoon-hyun
Copy link
Member Author

@taegeonum , I can not find correct build log. As I reported yesterday, the rebuild command in Jenkins does not apply my patch. Please look at the most recent log.

https://builds.apache.org/job/Reef-pull-request-ubuntu/637/consoleFull

@dongjoon-hyun
Copy link
Member Author

I'm sure that my patch will resolve that issue. Could you test correctly again?

The following two build is just building master branch. (You can see surefire version is 1.7, not 1.8.1 in my patch)

https://builds.apache.org/job/Reef-pull-request-ubuntu/637/consoleFull
(/home/jenkins/jenkins-slave/tools/hudson.model.JDK/jdk-1.7u51/bin/java)

https://builds.apache.org/job/Reef-pull-request-ubuntu/636/consoleFull (/home/jenkins/tools/java/latest1.7/bin/java)

@dongjoon-hyun
Copy link
Member Author

I leave some comments in Github.

For the recording purpose, I'm sure that my patch resolve that issue
correctly. Could you test again?

The following your builds are just building master branch.
You can see surefire version is 1.7, not 1.8.1 in my patch.

https://builds.apache.org/job/Reef-pull-request-ubuntu/637/consoleFull
(/home/jenkins/jenkins-slave/tools/hudson.model.JDK/jdk-1.7u51/bin/java)

https://builds.apache.org/job/Reef-pull-request-ubuntu/636/consoleFull

(/home/jenkins/tools/java/latest1.7/bin/java)

Warmly,

Dongjoon.

On Tue, Oct 6, 2015 at 11:31 AM, Tae-Geon Um notifications@github.com
wrote:

@dafrista https://github.com/dafrista Yes, it is. I think it would be
good to change the contents of the issue REEF-807, because it is not
actually resolve the OOM. @dongjoon-hyun
https://github.com/dongjoon-hyun What do you think?


Reply to this email directly or view it on GitHub
#540 (comment)
.

@taegeonum
Copy link
Contributor

@dongjoon-hyun Thanks! As you pointed, the rebuild is not working correctly. I will let you know if is resolved.

@dongjoon-hyun
Copy link
Member Author

Hi, Tae-Geon. I think I can help you.

Could you guide me to get a login id for Apache Jenkins?

Dongjoon.

On Tue, Oct 6, 2015 at 12:18 PM, Tae-Geon Um notifications@github.com
wrote:

@dongjoon-hyun https://github.com/dongjoon-hyun Thanks! As you pointed,
the rebuild is not working correctly. I will let you know if is resolved.


Reply to this email directly or view it on GitHub
#540 (comment)
.

@taegeonum
Copy link
Contributor

Thanks a lot!
According to https://wiki.apache.org/general/Jenkins, you should ask our PMC chair to execute the command:

modify_appgroups.pl hudson-jobadmin --add=<Apache username>

Hi Chris,

Could you help Dongjoon to get a Jenkins account?

Thanks,
Taegeon

On Oct 6, 2015, at 2:00 PM, Dongjoon Hyun notifications@github.com wrote:

Hi, Tae-Geon. I think I can help you.

Could you guide me to get a login id for Apache Jenkins?

Dongjoon.

On Tue, Oct 6, 2015 at 12:18 PM, Tae-Geon Um notifications@github.com
wrote:

@dongjoon-hyun https://github.com/dongjoon-hyun Thanks! As you pointed,
the rebuild is not working correctly. I will let you know if is resolved.


Reply to this email directly or view it on GitHub
#540 (comment)
.


Reply to this email directly or view it on GitHub #540 (comment).

@dongjoon-hyun
Copy link
Member Author

Thank you. I think I had better send an email him directly.
By the way, Chris Douglas or Chris Mattmann?

@taegeonum
Copy link
Contributor

Chris Douglas.
I’ve already sent the email to him.

FYI: I’ve got an email from apache build team. It seems that pull request plugin is not working with rebuild.

Begin forwarded message:

From: Andrew Bayer andrew.bayer@gmail.com
Subject: Re: Jenkins rebuild does not build same branch?
Date: October 6, 2015 at 3:21:50 PM GMT+9
To: "builds@apache.org" builds@apache.org
Reply-To: builds@apache.org

The pull request plugin is a bit weird with rebuilds - I'll investigate to
see if I can find more details.

On Tuesday, October 6, 2015, Tae-Geon Um taegeonum@gmail.com wrote:

Hi all,

When I triggered rebuild, the rebuild does not build same branch.

In the origin pull request build,
https://builds.apache.org/job/Reef-pull-request-ubuntu/629/ <
https://builds.apache.org/job/Reef-pull-request-ubuntu/629/>
Merging refs/tags/changes/629

git rev-parse refs/tags/changes/629^{commit} # timeout=10
git merge 7ff182a # timeout=10
git rev-parse master^{commit} # timeout=10
Checking out Revision 7ff182a (master)
git config core.sparsecheckout # timeout=10
git checkout -f 7ff182a
git rev-parse origin/master^{commit} # timeout=10
git rev-list b9b8dca # timeout=10

It checks out 7ff182a

However, when I rebuilt the pull request,
https://builds.apache.org/job/Reef-pull-request-ubuntu/634/
Checking out Revision b9b8dca
(origin/master)

git config core.sparsecheckout # timeout=10
git checkout -f b9b8dca
git rev-list b9b8dca # timeout=10

It checks out b9b8dca

Is there anyone who knows the reason?

Thanks in advance.
Taegeon.

On Oct 6, 2015, at 2:40 PM, Dongjoon Hyun notifications@github.com wrote:

Thank you. I think I had better send an email him directly.
By the way, Chris Douglas or Chris Mattmann?


Reply to this email directly or view it on GitHub #540 (comment).

@taegeonum
Copy link
Contributor

Thanks a lot. :)

On Tuesday, 6 October 2015, Tae-Geon Um taegeonum@gmail.com wrote:

Chris Douglas.
I’ve already sent the email to him.

FYI: I’ve got an email from apache build team. It seems that pull request
plugin is not working with rebuild.

Begin forwarded message:

_From: *Andrew Bayer <andrew.bayer@gmail.com
javascript:_e(%7B%7D,'cvml','andrew.bayer@gmail.com');>
*Subject: _Re: Jenkins rebuild does not build same branch?
*Date: *October 6, 2015 at 3:21:50 PM GMT+9
*To: *"builds@apache.org
javascript:_e(%7B%7D,'cvml','builds@apache.org');" <builds@apache.org
javascript:_e(%7B%7D,'cvml','builds@apache.org');>
*Reply-To: *builds@apache.org
javascript:_e(%7B%7D,'cvml','builds@apache.org');

The pull request plugin is a bit weird with rebuilds - I'll investigate to
see if I can find more details.

On Tuesday, October 6, 2015, Tae-Geon Um <taegeonum@gmail.com
javascript:_e(%7B%7D,'cvml','taegeonum@gmail.com');> wrote:

Hi all,

When I triggered rebuild, the rebuild does not build same branch.

In the origin pull request build,
https://builds.apache.org/job/Reef-pull-request-ubuntu/629/ <
https://builds.apache.org/job/Reef-pull-request-ubuntu/629/>
Merging refs/tags/changes/629

git rev-parse refs/tags/changes/629^{commit} # timeout=10
git merge 7ff182a # timeout=10
git rev-parse master^{commit} # timeout=10

Checking out Revision 7ff182a (master)

git config core.sparsecheckout # timeout=10
git checkout -f 7ff182a
git rev-parse origin/master^{commit} # timeout=10
git rev-list b9b8dca # timeout=10

It checks out 7ff182a

However, when I rebuilt the pull request,
https://builds.apache.org/job/Reef-pull-request-ubuntu/634/
Checking out Revision b9b8dca
(origin/master)

git config core.sparsecheckout # timeout=10
git checkout -f b9b8dca
git rev-list b9b8dca # timeout=10

It checks out b9b8dca

Is there anyone who knows the reason?

Thanks in advance.
Taegeon.

On Oct 6, 2015, at 2:40 PM, Dongjoon Hyun <notifications@github.com
javascript:_e(%7B%7D,'cvml','notifications@github.com');> wrote:

Thank you. I think I had better send an email him directly.
By the way, Chris Douglas or Chris Mattmann?


Reply to this email directly or view it on GitHub
#540 (comment)
.

@taegeonum
Copy link
Contributor

Done -C

On Mon, Oct 5, 2015 at 10:18 PM, Tae-Geon Um taegeonum@gmail.com wrote:

Thanks a lot!
According to https://wiki.apache.org/general/Jenkins, you should ask our
PMC chair to execute the command:

modify_appgroups.pl hudson-jobadmin --add=<Apache username>

Hi Chris,

Could you help Dongjoon to get a Jenkins account?

Thanks,
Taegeon

On Oct 6, 2015, at 2:00 PM, Dongjoon Hyun notifications@github.com
wrote:

Hi, Tae-Geon. I think I can help you.

Could you guide me to get a login id for Apache Jenkins?

Dongjoon.

On Tue, Oct 6, 2015 at 12:18 PM, Tae-Geon Um notifications@github.com
wrote:

@dongjoon-hyun https://github.com/dongjoon-hyun Thanks! As you
pointed,
the rebuild is not working correctly. I will let you know if is resolved.


Reply to this email directly or view it on GitHub
<
https://github.com/apache/incubator-reef/pull/540#issuecomment-145730966>
.


Reply to this email directly or view it on GitHub
#540 (comment)
.

@dongjoon-hyun
Copy link
Member Author

Thank you, Chris.
I can login into Jenkins, now.

@dongjoon-hyun
Copy link
Member Author

Hi, @taegeonum and @dafrista .
I found that current configuration is different with https://wiki.jenkins-ci.org/display/JENKINS/GitHub+pull+request+builder+plugin .
I'm starting to reconfigure Jenkins. It will cause several build messages.

@dongjoon-hyun
Copy link
Member Author

Jenkins, retest this please.

@dongjoon-hyun
Copy link
Member Author

Rebased to trigger.

This PR upgrades Maven surefire plugin and sets the proper value of JVM
max memory limit for it in order to recover JDK 1.7 Apache Jenkins builds.

JIRA:
  [REEF-807](https://issues.apache.org/jira/browse/REEF-807)

Pull Request:
  This closes apache#540
@dongjoon-hyun
Copy link
Member Author

Hi, @dafrista and @taegeonum .

I finished the following tests successfully. Now, we can run REEF tests safely.

https://builds.apache.org/job/Reef-pull-request-ubuntu/660/consoleText
(/home/jenkins/jenkins-slave/tools/hudson.model.JDK/latest1.7/bin/java)

https://builds.apache.org/job/Reef-pull-request-ubuntu/659/consoleText
/home/jenkins/jenkins-slave/tools/hudson.model.JDK/jdk-1.7u51/bin/java

Could any one of you merge this PR now? :)

By the way, 'Rebuild' button is still have problem. I will keep my eyes on that, too.

@taegeonum
Copy link
Contributor

@dongjoon-hyun Great! Thanks a lot! I will happily merge this pull request :)

@dongjoon-hyun
Copy link
Member Author

Thank you, @taegeonum . :)

@asfgit asfgit closed this in 9a93935 Oct 7, 2015
@dongjoon-hyun dongjoon-hyun deleted the REEF-807 branch October 9, 2015 01:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants