You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "syntony liu (JIRA)" <ji...@apache.org> on 2013/11/11 03:44:17 UTC

[jira] [Updated] (FLUME-2215) ResettableFileInputStream can't support ucs-4 character

     [ https://issues.apache.org/jira/browse/FLUME-2215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

syntony liu updated FLUME-2215:
-------------------------------

    Affects Version/s:     (was: v1.4.0)
                       v1.5.0

> ResettableFileInputStream can't support  ucs-4 character
> --------------------------------------------------------
>
>                 Key: FLUME-2215
>                 URL: https://issues.apache.org/jira/browse/FLUME-2215
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: v1.5.0
>            Reporter: syntony liu
>            Priority: Critical
>
> ResettableFileInputStream.java:readChar() not handle ucs-4 character. it need 2 charBuf. it cause an unexpected termination。
>  a temporary solution:
>      if (res.isOverflow() && !charBuf.hasRemaining()){ 
>          logger.warn("decoder ucs-4 at postion: {}" , buf.position()); 
>         tmpBuf.clear();  
>         res = decoder.decode(buf, tmpBuf, isEndOfInput); 
>         incrPosition( buf.position() - start, false); 
>        return '?'; 
>      } 



--
This message was sent by Atlassian JIRA
(v6.1#6144)