You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/06/16 18:00:00 UTC

[jira] [Closed] (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 ]

Andrew Kyle Purtell closed HBASE-9358.
--------------------------------------

> 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
(v8.20.7#820007)