Found in stress test: https://gist.github.com/alesapin/5cd6b8901488a1f170d5ef389900a534
Report: https://s3.amazonaws.com/clickhouse-test-reports/31158/7fb9a42b119b6c3eba1784caaabde51c1ded3384/stress_tests__debug__actions_.html
}
    
    if (!output.canPush())
    {
        for (auto & input : inputs)
            input.setNotNeeded();
        return Status::PortFull;
    }
    
    bool pushed_to_output = tryPushChunk();
    bool need_data = false;
    bool all_finished = true;
    
    auto in = inputs.begin();
    for (size_t input_num = 0; input_num < num_inputs; ++input_num, ++in)
    {
        if (in->isFinished())
        {
            is_input_finished[input_num] = true;
            continue;
        }
        
        in->setNeeded();
        if (!in->hasData())
        {
            need_data = true;
            all_finished = false;
            continue;
        }
        auto chunk = in->pull();