Skip to content

Make CliPeon run shutdown hooks properly#1524

Merged
fjy merged 1 commit intoapache:masterfrom
metamx:peonShutdown
Jul 15, 2015
Merged

Make CliPeon run shutdown hooks properly#1524
fjy merged 1 commit intoapache:masterfrom
metamx:peonShutdown

Conversation

@drcrallen
Copy link
Copy Markdown
Contributor

No description provided.

@fjy
Copy link
Copy Markdown
Contributor

fjy commented Jul 14, 2015

👍

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

is there a reason we need to shut down the jetty server separately? It should get stopped as part of the lifecycle.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Was resolved in person. Related to daemon thread-ness of jetty thread pool.

@xvrl
Copy link
Copy Markdown
Member

xvrl commented Jul 14, 2015

@drcrallen it should be enough to just make the Jetty query thread pool to use daemon threads, so we don't have to worry about it outside of the lifecycle.

@drcrallen
Copy link
Copy Markdown
Contributor Author

Fixed jetty to have daemon threads and allow cleaner shutdown

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this is not needed anymore, is it?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

nope fixed

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

extra semicolon

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

not mine! will fix anyways

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

just for good measure :)

* Also make jetty threads daemon
@drcrallen
Copy link
Copy Markdown
Contributor Author

Test failed on zk consistency issues. Restarting

@drcrallen drcrallen closed this Jul 14, 2015
@drcrallen drcrallen reopened this Jul 14, 2015
@nishantmonu51
Copy link
Copy Markdown
Member

👍

fjy added a commit that referenced this pull request Jul 15, 2015
Make CliPeon run shutdown hooks properly
@fjy fjy merged commit a4cb033 into apache:master Jul 15, 2015
@drcrallen drcrallen deleted the peonShutdown branch July 15, 2015 17:11
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.

5 participants