Affects Version/s: 2.0.0
Fix Version/s: None
We recently stopped using Java system properties to derive defaults for things like the write/commit lock timeout, and switched to getter/setter's across all classes. See here:
But, in the case at least of the write lock timeout, because it's marked "public final static", a consumer of this API can no longer change this value before instantiating the IndexWriter. This is because the getter/setter for this is not static, which generally makes sense so you can change the timeout for each instance of IndexWriter. But because IndexWriter on construction uses the timeout value, some uses cases need to change the value before getting an instance of IndexWriter.
This was actually a regression, in that Lucene users lost functionality they previously had, on upgrading.
I would propose that that we add getter/setter for the default value of this timeout, which would be static. I'll attach a patch file.
See this thread for context that led to this issue:
|Status||Open [ 1 ]||Resolved [ 5 ]|
|Resolution||Fixed [ 1 ]|
|Workflow||jira [ 12374704 ]||Default workflow, editable Closed status [ 12563471 ]|
|Workflow||Default workflow, editable Closed status [ 12563471 ]||jira [ 12584251 ]|
|Transition||Time In Source Status||Execution Times||Last Executer||Last Execution Date|
|8h 48m||1||Hoss Man||01/Jul/06 05:46|