Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8415

Clean up Directory contracts (write-once, no reads-before-write-completed)

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.5
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      Created a PR here for early review.

      https://github.com/apache/lucene-solr/pull/424

      I changed:

      • the wording in Directory documentation to be a bit more formalized about what rules a Directory should obey (and users expect).
      • modified the test framework to verify the above in mock classes.

      Currently a number of Directory implementations fail the testReadFileOpenForWrites test that I added, so I'll keep working on that.

        Attachments

        1. LUCENE-8415.patch
          93 kB
          Dawid Weiss

          Activity

            People

            • Assignee:
              dweiss Dawid Weiss
              Reporter:
              dweiss Dawid Weiss
            • Votes:
              0 Vote for this issue
              Watchers:
              2 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 - 0.5h
                0.5h