You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Ricky Yang (JIRA)" <ji...@apache.org> on 2016/01/02 02:31:39 UTC

[jira] [Commented] (SPARK-12601) worker output a large number of log when size RollingPolicy shouldRollover method use loginfo

    [ 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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org