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

Cao Manh Dat commented on SOLR-9872:
------------------------------------

[[email protected]] : 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to