Re: Re: Pagecache cause OffsetOutOfRangeException

2014-12-02 Thread Guozhang Wang
OffsetOutOfRangeException will be returned when the requested partition's offset range is [a, b] and the requested offset is either < a or > b; the offset range will be change whenever: 1. new messages appended to the log, which increments a; 2. old messages get cleaned based on the log retention

Re: Re: Pagecache cause OffsetOutOfRangeException

2014-12-02 Thread YuanJia Li
Hi Guozhang, My kafka works in product environment, a large messages are produced or consumed. So it is not easy to get the accurate offset through the GetOffset tool when an OffsetOutOfRangeException happens.But in my application, I have coded comparing the consuming offset with the latest