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

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

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 7.5
    • None
    • None
    • 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

            dweiss Dawid Weiss
            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