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

Türkay Kaynak commented on ZOOKEEPER-2248:
------------------------------------------

And problem location...

{code}
                protected internal virtual int replace_s(int c_bra, int c_ket, 
System.String s)
                {
                        int adjustment = s.Length - (c_ket - c_bra);
                        if (current.Length > bra) 
                        //<--!! 'bra' is '0'. Caller(s): 
TurkishStemmer.r_postlude() -> 
TurkishStemmer.r_append_U_to_stems_ending_with_d_or_g() -> insert() -> 
replace_s()
                                current.Replace(current.ToString(bra, ket - 
bra), s, bra, ket - bra);
                        else
                                current.Append(s);
                        limit += adjustment;
                        if (cursor >= c_ket)
                                cursor += adjustment;
                        else if (cursor > c_bra)
                                cursor = c_bra;
                        return adjustment;
                }

{code}

> log.zxid file is very large size. It's likely to lead to zk disk space is not 
> enough.
> -------------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-2248
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-2248
>             Project: ZooKeeper
>          Issue Type: Improvement
>            Reporter: Yongcheng Liu
>
> 1. about logCount(the count of log entries)  
> 2. it's local variable in SyncRequestProcessor, it will be reset 0, when 
> SyncRequestProcessor thread exit for LOOKING.   SyncRequestProcessor thread 
> will exit but zk process is ok, when follower followWithLeader and connecting 
> is broken.
> 3. it will lead to log.zxid file keep expanding 64M



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

Reply via email to