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

explicitly call lifecycle stop #1627

Merged
merged 1 commit into from
Aug 14, 2015
Merged

Conversation

nishantmonu51
Copy link
Member

found realtime tasks getting stuck on shutdown even after status being shown as SUCCESS.
On further investigation found that the vm was waiting for all the daemon threads to shutdown.
was able to reproduce this locally, calling lifecycle.shutdown explicitly and not relying on the shutdown hook fixes the issue.

@nishantmonu51 nishantmonu51 added this to the 0.8.1 milestone Aug 14, 2015
@nishantmonu51
Copy link
Member Author

@drcrallen , as you are most familiar with this, can you also double check this change ?

@guobingkun
Copy link
Contributor

👍
I was able to reproduce the problem on our build pipeline. Specifically ITRealtimeIndexTaskTest was not shut down after firehose shuts down. I can still see the peon process from ps -ef

@guobingkun
Copy link
Contributor

Here is the task log https://gist.github.com/guobingkun/6025d9b0afa3edfe8e6e for the realtime task. At 2015-08-13T22:34:22,824, TimedShutoffFirehose was shutting down.

@drcrallen
Copy link
Contributor

@guobingkun Thanks for the log.

@nishantmonu51 Can this add a test in ITRealtimeIndexTaskTest to look for this error case?

@drcrallen
Copy link
Contributor

Before merging this, I would much rather get a thread dump of the offending tasks and see if they can be unstuck.

@fjy
Copy link
Contributor

fjy commented Aug 14, 2015

👍

@himanshug
Copy link
Contributor

+1
bcoz, I think this adds more surety to shutdown process

@himanshug
Copy link
Contributor

also, @guobingkun is going to try this out on our test cluster to see if it fixes the problem we noticed

fjy added a commit that referenced this pull request Aug 14, 2015
@fjy fjy merged commit 8d6fe02 into apache:master Aug 14, 2015
@drcrallen drcrallen deleted the fix-realtime-tasks branch August 18, 2015 00:45
@drcrallen
Copy link
Contributor

Originally introduced in #1524

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

Successfully merging this pull request may close these issues.

None yet

5 participants