mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-28 13:44:03 +00:00
`finish` drains the executor before it closes it, and the shell only calls it once the root's last pull already reported no chunk. So the queue it filled was always empty, and `closed` already carries the whole meaning: a closed tree settles nothing more, and the executor must not be finished twice. Removing the queue leaves the two things that are not it. A chunk that carries no row is a lifecycle signal the tree passes upward, and only this plan's conversion turns it into `Ok(None)`; that path is untouched. And a series that never closed is an error `close` reports, not a chunk anyone collects. The assertion states the proof rather than leaving a reader to wonder what the discarded vector could have held. It is a `debug_assert`: a release build must not turn a claim about unobservable state into a panic. Signed-off-by: discord9 <55937128+discord9@users.noreply.github.com>