Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-18310

[C++] Use atomic backpressure counter

    XMLWordPrintableJSON

Details

    Description

      There are a few places in the code (sink_node.cc, source_node.cc, file_base.cc) where the backpressure counter is of type `int32_t`. This prevents `ExecNode::Pause(...)` and  `ExecNode::Resume(...)` from being thread-safe. The proposal is to make these backpressure counters be of type `std::atomic<int32_t>`.

      Attachments

        Issue Links

          Activity

            People

              rtpsw Yaron Gvili
              rtpsw Yaron Gvili
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h