original-brownbear commented on PR #13622: URL: https://github.com/apache/lucene/pull/13622#issuecomment-2260327524
> if the first half of segments is submitted successfully and the second half is rejected, there are chances that the second half gets processed while the first half is still waiting in the queue. No that is not true I think. Each of the submitted tasks will take the lowest unprocessed index in the futures list (via the `taskId` counter and process it. The tasks that we submit are not specific tasks to be executed yet, it's always the same `Runnable` that will then grab the next task for the futures list. Execution order should be preserved as much as possible when processing on more than a single thread with the current approach? -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
