If the sorter closed itself without encountering any trace metadata, it could return nil, nil, which would indicate to the consumer not to call Next() again, and thus its trailing metadata would never be drained. Release note (bug fix): Fixed a correctness bug where some ORDER BY queries would not return the correct results under concurrent transactional load.