hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HBASE-9358) Possible invalid iterator in ServerManager#processQueuedDeadServers()
Date Mon, 18 Nov 2013 22:41:26 GMT

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

Ted Yu resolved HBASE-9358.
---------------------------

    Resolution: Later

> 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 was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message