You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Qiang Yang (Jira)" <ji...@apache.org> on 2022/12/11 13:32:00 UTC

[jira] [Updated] (SPARK-41246) When RddId exceeds Integer.Max_VALUE, RddId becomes negative

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

Qiang Yang updated SPARK-41246:
-------------------------------
    Description: 
The incrementAndGet method of AtomicInteger keeps increasing. When AtomicInteger increases to 2147483647 (Integer. MAX_VALUE) and then adds one, the value of AtomicInteger will become negative - 2147483648 (Integer. MIN_VALUE).

This problem occurs in long running tasks, such as stream tasks.

When BlockManager generates BlockId, BlockId only supports positive rddid, so BlockId generation fails

object BlockId {
val RDD = "rdd_([0-9]+)_([0-9]+)".r

  was:
The incrementAndGet method of AtomicInteger keeps increasing. When AtomicInteger increases to 2147483647 (Integer. MAX_VALUE) and then adds one, the value of AtomicInteger will become negative - 2147483648 (Integer. MIN_VALUE).


This problem occurs in long running tasks, such as stream tasks


> When RddId exceeds Integer.Max_VALUE, RddId becomes negative
> ------------------------------------------------------------
>
>                 Key: SPARK-41246
>                 URL: https://issues.apache.org/jira/browse/SPARK-41246
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 3.3.1
>            Reporter: Qiang Yang
>            Priority: Major
>
> The incrementAndGet method of AtomicInteger keeps increasing. When AtomicInteger increases to 2147483647 (Integer. MAX_VALUE) and then adds one, the value of AtomicInteger will become negative - 2147483648 (Integer. MIN_VALUE).
> This problem occurs in long running tasks, such as stream tasks.
> When BlockManager generates BlockId, BlockId only supports positive rddid, so BlockId generation fails
> object BlockId {
> val RDD = "rdd_([0-9]+)_([0-9]+)".r



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org