[ 
https://issues.apache.org/jira/browse/SOLR-14184?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris M. Hostetter updated SOLR-14184:
--------------------------------------
    Fix Version/s: 8.5
                   master (9.0)
      Description: 
{code:java}
public static volatile boolean commitOnClose = true;  // TODO: make this a real 
config option or move it to TestInjection
{code}

Lots of tests muck with this (to simulate unclean shutdown and force tlog 
replay on restart) but there's no garuntee that it is reset properly.

It should be replaced by logic in {{TestInjection}} that is correctly cleaned 
up by {{TestInjection.reset()}}

----

It's been replaced with the (negated) option 
{{TestInjection.skipIndexWriterCommitOnClose}} which is automatically reset to 
it's default value of {{false}} by {{TestInjection.reset()}}

  was:
{code:java}
public static volatile boolean commitOnClose = true;  // TODO: make this a real 
config option or move it to TestInjection
{code}

Lots of tests muck with this (to simulate unclean shutdown and force tlog 
replay on restart) but there's no garuntee that it is reset properly.

It should be replaced by logic in {{TestInjection}} that is correctly cleaned 
up by {{TestInjection.reset()}}

          Summary: replace DirectUpdateHandler2.commitOnClose with (negated) 
TestInjection.skipIndexWriterCommitOnClose  (was: replace 
DirectUpdateHandler2.commitOnClose with something in TestInjection)

> replace DirectUpdateHandler2.commitOnClose with (negated) 
> TestInjection.skipIndexWriterCommitOnClose
> ----------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-14184
>                 URL: https://issues.apache.org/jira/browse/SOLR-14184
>             Project: Solr
>          Issue Type: Test
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Chris M. Hostetter
>            Assignee: Chris M. Hostetter
>            Priority: Major
>             Fix For: master (9.0), 8.5
>
>         Attachments: SOLR-14184.patch, SOLR-14184.patch
>
>
> {code:java}
> public static volatile boolean commitOnClose = true;  // TODO: make this a 
> real config option or move it to TestInjection
> {code}
> Lots of tests muck with this (to simulate unclean shutdown and force tlog 
> replay on restart) but there's no garuntee that it is reset properly.
> It should be replaced by logic in {{TestInjection}} that is correctly cleaned 
> up by {{TestInjection.reset()}}
> ----
> It's been replaced with the (negated) option 
> {{TestInjection.skipIndexWriterCommitOnClose}} which is automatically reset 
> to it's default value of {{false}} by {{TestInjection.reset()}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to