You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2013/08/27 22:49:54 UTC

[jira] [Updated] (HBASE-9358) Possible invalid iterator in ServerManager#processQueuedDeadServers()

     [ https://issues.apache.org/jira/browse/HBASE-9358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

stack updated HBASE-9358:
-------------------------

    Priority: Trivial  (was: Major)

Can you help fix current issues in way of release rather than file new trivial ones [~ted_yu]?
                
> Possible invalid iterator in ServerManager#processQueuedDeadServers()
> ---------------------------------------------------------------------
>
>                 Key: HBASE-9358
>                 URL: https://issues.apache.org/jira/browse/HBASE-9358
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Priority: Trivial
>
> serverIterator is used this way:
> {code}
>     Iterator<ServerName> serverIterator = queuedDeadServers.iterator();
>     while (serverIterator.hasNext()) {
>       ServerName tmpServerName = serverIterator.next();
>       expireServer(tmpServerName);
>       serverIterator.remove();
> {code}
> expireServer() modifies Iterable "this.queuedDeadServers" which invalidates iterator "serverIterator"
> Call to remove() is applied on invalid iterator "serverIterator"

--
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