You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Mark Miller (JIRA)" <ji...@apache.org> on 2012/12/16 20:00:13 UTC
[jira] [Comment Edited] (SOLR-4203) An ephemeral directory
implementation should cause the transaction log to be ignored on startup.
[ 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: markrmiller@gmail.com):
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org