You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Cao Manh Dat (JIRA)" <ji...@apache.org> on 2017/01/14 02:30:26 UTC

[jira] [Comment Edited] (SOLR-9872) raf.setLength(0) in transactionLog is unreachable

    [ https://issues.apache.org/jira/browse/SOLR-9872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15822634#comment-15822634 ] 

Cao Manh Dat edited comment on SOLR-9872 at 1/14/17 2:29 AM:
-------------------------------------------------------------

[~markrmiller@gmail.com] : Do you have any idea about this problem? It seems added on SOLR-7113


was (Author: caomanhdat):
[~markrmiller@gmail.com] : Do you have any idea about this problem?

> raf.setLength(0) in transactionLog is unreachable
> -------------------------------------------------
>
>                 Key: SOLR-9872
>                 URL: https://issues.apache.org/jira/browse/SOLR-9872
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Cao Manh Dat
>
> When I look at {{TransactionLog.java}} I found these lines of code in constructor
> {code}
>         if (start > 0) {
>           log.warn("New transaction log already exists:" + tlogFile + " size=" + raf.length());
>           return;
>         }
>        
>         if (start > 0) {
>           raf.setLength(0);
>         }
>         addGlobalStrings(globalStrings);
> {code}
> It seems, we will never reach {{raf.setLength(0)}}?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org