[
https://issues.apache.org/jira/browse/SOLR-4203?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13533474#comment-13533474
]
Mark Miller edited comment on SOLR-4203 at 12/16/12 6:59 PM:
-------------------------------------------------------------
bq. Seems more straightforward to delete the directory before initializing the
log. Only tricky part there is finding out where the directory is.
Yeah, that is actually what I was going to do first. But the getting the tlog
dir was no so straightforward and that is why I went this way.
This only happens on startup though, so I'm not sure why it would be a problem?
It will be single threaded and before anything is being accessed.
It does still seem strange to me that I cannot close the update log and delete
it's data dir. That fails and we are not even to opening a new one yet.
was (Author: [email protected]):
bq. Seems more straightforward to delete the directory before initializing
the log.
Only tricky part there is finding out where the directory is.
Yeah, that is actually what I was going to do first. But the getting the tlog
dir was no so straightforward and that is why I went this way.
This only happens on startup though, so I'm not sure why it would be a problem?
It will be single threaded and before anything is being accessed.
It does still seem strange to me that I cannot close the update log and delete
it's data dir. That fails and we are not even to opening a new one yet.
> An ephemeral directory implementation should cause the transaction log to be
> ignored on startup.
> ------------------------------------------------------------------------------------------------
>
> Key: SOLR-4203
> URL: https://issues.apache.org/jira/browse/SOLR-4203
> Project: Solr
> Issue Type: Bug
> Components: SolrCloud
> Reporter: Mark Miller
> Assignee: Mark Miller
> Fix For: 4.1, 5.0
>
> Attachments: SOLR-4203.patch
>
>
> If you are using something like ram dir, you can restart a node and if no
> updates have come in, it will think its up to date but be empty - we should
> clear the update log in these cases on startup.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]