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

ASF GitHub Bot commented on FLINK-8822:
---------------------------------------

Github user BigOneLiu commented on the issue:

    https://github.com/apache/flink/pull/5609
  
    @zentol thx for comment.
    I checked my system SUSE 11 SP4(which is a wildly used version),sed version 
is 4.1.5,and it do not support '-E'. I don't konw how many linux version use 
sed 4.1.5.
    
    According to the source code,'-E' is exactly the same as '-r' and '-E' is 
Undocumented.
    So maybe '-r' is more compatible.
    If don't need to be changed,at least note in the doc that "log may not work 
well in SUSE 11".



> RotateLogFile may not work well when sed version is below 4.2
> -------------------------------------------------------------
>
>                 Key: FLINK-8822
>                 URL: https://issues.apache.org/jira/browse/FLINK-8822
>             Project: Flink
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Xin Liu
>            Priority: Major
>             Fix For: 1.5.0
>
>
> In bin/config.sh rotateLogFilesWithPrefix(),it use extended regular to 
> process filename with "sed -E",but when sed version is below 4.2,it turns out 
> "sed: invalid option -- 'E'"
> and RotateLogFile won't work well : There will be only one logfile no matter 
> what is $MAX_LOG_FILE_NUMBER.
> so use sed -r may be more suitable.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to