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

sohurdc updated SPARK-52564:
----------------------------
    Description: 
Once checkpointing is enabled in Spark Streaming, configuration changes require 
deleting the checkpoint, which results in loss of state.

code like this:

// Get StreamingContext from checkpoint data or create a new one

{{val context = StreamingContext.getOrCreate(checkpointDirectory, 
functionToCreateContext _)}}

{{...}}

{{context.start()}}

{{context.awaitTermination()}}

  was:
Once checkpointing is enabled in Spark Streaming, configuration changes require 
deleting the checkpoint, which results in loss of state.

code like this:

// Get StreamingContext from checkpoint data or create a new one

{{val context = StreamingContext.getOrCreate(checkpointDirectory, 
functionToCreateContext _)}}

{{...}}

{{context.start()}}

{{{}context.awaitTermination(){}}}{{{{}}{}}}


> configuration changes not require deleting the checkpoint
> ---------------------------------------------------------
>
>                 Key: SPARK-52564
>                 URL: https://issues.apache.org/jira/browse/SPARK-52564
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 3.2.4, 3.3.4, 3.4.4, 3.5.6, 4.0.0
>            Reporter: sohurdc
>            Priority: Major
>
> Once checkpointing is enabled in Spark Streaming, configuration changes 
> require deleting the checkpoint, which results in loss of state.
> code like this:
> // Get StreamingContext from checkpoint data or create a new one
> {{val context = StreamingContext.getOrCreate(checkpointDirectory, 
> functionToCreateContext _)}}
> {{...}}
> {{context.start()}}
> {{context.awaitTermination()}}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to