Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-25345

Propagate close exceptions on writes, by avoiding relying on CFileIO dtor to close

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Not specified
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.12.32
    • Component/s: Thor
    • Labels:
      None

      Description

      Disk/Index writes rely on link count release to dispose of the IFileIO and to close the file handle.
      Which means that the underlying impl. closes the file in the dtor.
      If an exception occurs at this point, it doesn't rethrow it, to avoid a crash (it only logs it), there force the exception is not propagated back to the caller, and does not result in the error being reported and the job failing it should.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jakesmith Jake Smith
              Reporter:
              jakesmith Jake Smith
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: