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

[FlightRPC][C++] DoPutPayloadWriter doesn't always expose server error message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.16.0
    • None
    • C++, FlightRPC
    • None

    Description

      C:/projects/arrow/cpp/src/arrow/flight/flight_test.cc(1261): error: Value of: status.message()
      Expected: has substring "Invalid token"
        Actual: "Could not write record batch to stream: "
      [  FAILED  ] TestBasicAuthHandler.FailUnauthenticatedCalls (17 ms)
      

      This happens because Close() calls RecordBatchPayloadWriter::Close(), which calls CheckStarted, which in turn tries to write data. If the data gets flushed and the server responds in time, we'll see a failure during writing, causing us to never check the server status (which is the last part of DoPutPayloadWriter::Close). We need to reliably check and expose the gRPC status.

      Attachments

        Activity

          People

            Unassigned Unassigned
            lidavidm David Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: