You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@storm.apache.org by "Rui Li (Jira)" <ji...@apache.org> on 2020/02/24 15:18:00 UTC
[jira] [Updated] (STORM-3589) Iterator in BaseResourceStrategy is
potentially buggy
[ https://issues.apache.org/jira/browse/STORM-3589?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rui Li updated STORM-3589:
--------------------------
Description:
[https://github.com/apache/storm/blame/master/storm-server/src/main/java/org/apache/storm/scheduler/resource/strategies/scheduling/BaseResourceAwareStrategy.java#L280]
We should probably only peek but not remove value from nodeIterator in hasNext() function.
[https://github.com/apache/storm/blame/master/storm-server/src/main/java/org/apache/storm/scheduler/resource/strategies/scheduling/BaseResourceAwareStrategy.java#L296-L300]
And two consecutive next() call will cause problem.
was:
[https://github.com/apache/storm/blame/master/storm-server/src/main/java/org/apache/storm/scheduler/resource/strategies/scheduling/BaseResourceAwareStrategy.java#L280]
We should probably only peek but not remove value from nodeIterator in hasNext() function.
> Iterator in BaseResourceStrategy is potentially buggy
> -----------------------------------------------------
>
> Key: STORM-3589
> URL: https://issues.apache.org/jira/browse/STORM-3589
> Project: Apache Storm
> Issue Type: Improvement
> Reporter: Rui Li
> Assignee: Rui Li
> Priority: Minor
>
> [https://github.com/apache/storm/blame/master/storm-server/src/main/java/org/apache/storm/scheduler/resource/strategies/scheduling/BaseResourceAwareStrategy.java#L280]
> We should probably only peek but not remove value from nodeIterator in hasNext() function.
>
> [https://github.com/apache/storm/blame/master/storm-server/src/main/java/org/apache/storm/scheduler/resource/strategies/scheduling/BaseResourceAwareStrategy.java#L296-L300]
>
> And two consecutive next() call will cause problem.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)