Github user xuanyuanking commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22989#discussion_r232721412
  
    --- Diff: scalastyle-config.xml ---
    @@ -240,6 +240,18 @@ This file is divided into 3 sections:
         ]]></customMessage>
       </check>
     
    +  <check customId="notthrowoutofmemory" level="error" 
class="org.scalastyle.file.RegexChecker" enabled="true">
    +    <parameters><parameter name="regex">throw new 
OutOfMemoryError</parameter></parameters>
    +    <customMessage><![CDATA[
    +      Are you sure that you want to throw OutOfMemoryError? It will kill 
the hole executor, you should use
    --- End diff --
    
    Rewrite this rule for banning all throw Error in 6e49bb8.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to