[
https://issues.apache.org/jira/browse/LUCENE-6436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14501555#comment-14501555
]
ASF subversion and git services commented on LUCENE-6436:
---------------------------------------------------------
Commit 1674575 from [~rcmuir] in branch 'dev/branches/branch_5x'
[ https://svn.apache.org/r1674575 ]
LUCENE-6436: add SuppressFsync annotation and reduce the number of fsyncs in
tests
> add LuceneTestCase.SuppressFsync
> --------------------------------
>
> Key: LUCENE-6436
> URL: https://issues.apache.org/jira/browse/LUCENE-6436
> Project: Lucene - Core
> Issue Type: Task
> Reporter: Robert Muir
> Fix For: Trunk, 5.2
>
> Attachments: LUCENE-6436.patch
>
>
> 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.
> {code}
> /**
> * 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();
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]