[
https://issues.apache.org/jira/browse/YARN-504?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Przemyslaw Pretki updated YARN-504:
-----------------------------------
Description:
Steps to reproduce the exception:
{code}
BreakableService svc = new BreakableService();
svc.register(new ServiceStateChangeListener()
{
@Override
public void stateChanged(Service service)
{
if (service.getServiceState() == STATE.STOPPED)
{
service.unregister(this);
}
}
});
svc.init(new Configuration());
svc.start();
svc.stop();
{code}
was:
{code}
BreakableService svc = new BreakableService();
svc.register(new ServiceStateChangeListener()
{
@Override
public void stateChanged(Service service)
{
if (service.getServiceState() == STATE.STOPPED)
{
service.unregister(this);
}
}
});
svc.init(new Configuration());
svc.start();
svc.stop();
{code}
> Potential ConcurrentModificationException at AbstractService class.
> -------------------------------------------------------------------
>
> Key: YARN-504
> URL: https://issues.apache.org/jira/browse/YARN-504
> Project: Hadoop YARN
> Issue Type: Bug
> Components: resourcemanager
> Affects Versions: 3.0.0
> Reporter: Przemyslaw Pretki
> Priority: Minor
> Labels: hadoop
>
> Steps to reproduce the exception:
> {code}
> BreakableService svc = new BreakableService();
> svc.register(new ServiceStateChangeListener()
> {
> @Override
> public void stateChanged(Service service)
> {
> if (service.getServiceState() == STATE.STOPPED)
> {
> service.unregister(this);
> }
> }
> });
> svc.init(new Configuration());
> svc.start();
> svc.stop();
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira