Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-17439

Missing TRUNCATE_EXISTING in write options

    XMLWordPrintableJSON

Details

    • Code
    • Low
    • Low Hanging Fruit
    • Code Inspection
    • All
    • None
    • 4.1
    • Hide

      run regression tests (and new tests)

      Show
      run regression tests (and new tests)

    Description

      `PathUtils.WRITE_OPTIONS` is meant to be used for overwriting files. However, without TRUNCATE_EXISTING option, it may overwrite only the beginning of the file if the new content is smaller than previous, which in turn may lead to unexpected file size and fail some tests unexpectedly.

      Attachments

        Activity

          People

            jlewandowski Jacek Lewandowski
            jlewandowski Jacek Lewandowski
            Jacek Lewandowski
            Benedict Elliott Smith
            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 - 10m
                10m