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

Ricky Yang commented on SPARK-12601:
------------------------------------

  /** Should rollover if the next set of bytes is going to exceed the size 
limit */
  def shouldRollover(bytesToBeWritten: Long): Boolean = {
    loginfo(s"$bytesToBeWritten + $bytesWrittenSinceRollover > 
$rolloverSizeBytes")
    bytesToBeWritten + bytesWrittenSinceRollover > rolloverSizeBytes
  }

when using size RollingPolicythis code cause worker output  a large of log .it 
shoud be changed to logDebug

>  worker output a large number of log when size RollingPolicy shouldRollover  
> method use  loginfo
> ------------------------------------------------------------------------------------------------
>
>                 Key: SPARK-12601
>                 URL: https://issues.apache.org/jira/browse/SPARK-12601
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.4.0, 1.4.1, 1.5.0, 1.5.2
>         Environment: standlone 
>            Reporter: Ricky Yang
>
>  worker output a large number of log when size RollingPolicy shouldRollover  



--
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