When using the state processor API to increase a j...
# troubleshooting
a
When using the state processor API to increase a job's max parallelism, can you use the fromExistingSavepoint to collect all the operators and then generate a new one with a different max parallelism, or do you have to do a newSavepoint and explicitly write out the uids of every operator in the job?
a
@Alex Craig you can replace specific operator in the savepoint: scroll down on this article: https://ververica.zendesk.com/hc/en-us/articles/10627965111068
Copy code
SavepointWriter
  .fromExistingSavepoint(oldSavepointPath)
  .removeOperator("word-count")
  .withOperator("word-count", transformation)
  .write(oldSavepointPath.replaceAll("savepoint-", "new-savepoint-"))
a
@Alexey Novakov I was wondering if you could do it agnostic to the operator names, though. Seems like a pain to write out the name of every uid of every operator.
I'm referring to the case where you use pipeline.max-parallelism. If you use this config, then replacing each operator by name is kind of a lot of work.
a
I see, yeah, that is perhaps more labour intensive case
a
There's no examples I can see of a simple transformation that just takes an operator and increases its max parallelism but retains everything else, either. Just seems like something people don't run into often, even though it'd be comforting to know you could raise max parallelism without starting from scratch