Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-1766

FileUtil should use autoclosable for the read/writeWithChecksum

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.15.0
    • None
    • None
    • None

    Description

      Multiple problems in the current impl:

      • close() of file stream and output stream without null check
      • we only need to close the objectstream once, it will close the file stream automatically

      We should use auto-closable in these helpers to avoid these side effects.

       

      Attachments

        Activity

          People

            xinyu Xinyu Liu
            xinyu Xinyu Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: