Skip to content
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

[jmxfetch] fix windows bootloop 🐛 #1561

Merged
merged 2 commits into from Apr 21, 2015
Merged

[jmxfetch] fix windows bootloop 🐛 #1561

merged 2 commits into from Apr 21, 2015

Conversation

yannmh
Copy link
Member

@yannmh yannmh commented Apr 20, 2015

  • [Windows] Fix JMXFetch bootloop issue when no JMX integration config is found
  • [Linux][OSX] Better management of unexpected exit codes ( != 0)
  • [Linux][OSX] [Windows] Limit JMXFetch attempts of restarts to 3
  • [Linux][OSX][Windows] Fill a status when JMXFetch could not be launched

The nightly builds are named accordingly.
@yannmh yannmh self-assigned this Apr 20, 2015
@yannmh yannmh force-pushed the yann/is-jmx-enabled-2 branch 2 times, most recently from db490e2 to 4d4949e Compare April 20, 2015 19:41
if len(self.jmx_checks) > 0:
return self._start(self.java_bin_path, self.java_options, self.jmx_checks,
command, reporter, self.tools_jar_path)
else:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is that really needed if we exit with a 0 status code ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure to understand your point: we don't necessarily exit with a 0 status code.

Monitor the attached process.
Restarts when it exits until the limit set is reached.
"""
def __init__(self, name, process, max_restarts="inf"):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the default shouldn't be +inf it should be a reasonable value, 5 seems good to me.

yannmh added a commit that referenced this pull request Apr 21, 2015
[jmxfetch] fix windows bootloop 🐛
@yannmh yannmh merged commit e1c2fc9 into master Apr 21, 2015
@yannmh yannmh deleted the yann/is-jmx-enabled-2 branch April 23, 2015 15:15
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling 06ac2f6 on yann/is-jmx-enabled-2 into ** on master**.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants