nickva commented on issue #5166: URL: https://github.com/apache/couchdb/issues/5166#issuecomment-2266929254
One quick attempt to fix it is to try to keep the iterating tree and `Cache` tree in sync. So as soon as we update the tree, we always restart the iteration. That can be seen in https://github.com/apache/couchdb/pull/5165. One simplification then that can happen there is we don't really need an iterator. We always update it and create a new one, so we really just need the next larger key. However, that approach a major problem: non-termination. If we keep bumping the entries and restarting the iteration, the close call may just keep going forever. -- 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]
