You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "Yicong-Huang (via GitHub)" <gi...@apache.org> on 2026/05/03 01:04:10 UTC

[I] OneOnEach deploy strategy does not reset iteration cursor on re-initialize [texera]

Yicong-Huang opened a new issue, #4731:
URL: https://github.com/apache/texera/issues/4731

   ### What happened?
   
   `amber/src/main/scala/org/apache/texera/amber/engine/architecture/deploysemantics/deploystrategy/OneOnEach.scala::OneOnEach.initialize` replaces `available` but leaves `index` at its prior value. A reused instance re-initialized with a new array continues counting from the prior position and may report the new array as exhausted before any element is returned.
   
   ### How to reproduce?
   
   ```scala
   val s = OneOnEach()
   s.initialize(Array(nodeA, nodeB)); s.next(); s.next()  // index = 2
   s.initialize(Array(nodeC))                              // index NOT reset
   s.next()  // throws IndexOutOfBoundsException — new array has 1 element but index already 2
   ```
   
   ### Version
   
   1.1.0-incubating (Pre-release/Master)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] OneOnEach deploy strategy does not reset iteration cursor on re-initialize [texera]

Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan closed issue #4731: OneOnEach deploy strategy does not reset iteration cursor on re-initialize
URL: https://github.com/apache/texera/issues/4731


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] OneOnEach deploy strategy does not reset iteration cursor on re-initialize [texera]

Posted by "Ma77Ball (via GitHub)" <gi...@apache.org>.
Ma77Ball commented on issue #4731:
URL: https://github.com/apache/texera/issues/4731#issuecomment-4418591971

   /take


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@texera.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org