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

add LuceneTestCase.SuppressFsync

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.2, 6.0
    • None
    • None
    • New

    Description

      Filesystem chain is a per-class decision. Either fsyncs are passed thru to the hardware or not globally for the test. If you have a really slow test, this can cause occasional unbearably slow runs when it gets unlucky.

        /**
         * Annotation for test classes that should avoid always omit
         * actual fsync calls from reaching the filesystem.
         * <p>
         * This can be useful, e.g. if they make many lucene commits.
         */
        @Documented
        @Inherited
        @Retention(RetentionPolicy.RUNTIME)
        @Target(ElementType.TYPE)
        public @interface SuppressFsync {
          String[] value();
        }
      

      Attachments

        1. LUCENE-6436.patch
          2 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: