You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "CuteShaos (via GitHub)" <gi...@apache.org> on 2025/08/29 13:40:05 UTC
[I] [Bug] The getFinalSavepointDir did not receive the processPath return value, resulting in redundant calls and logical errors [streampark]
CuteShaos opened a new issue, #4278:
URL: https://github.com/apache/streampark/issues/4278
### Search before asking
- [x] I had searched in the [issues](https://github.com/apache/streampark/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
### Java Version
1.8
### Scala Version
2.12.x
### StreamPark Version
2.1.5
### Flink Version
1.19
### Deploy mode
kubernetes-application
### What happened
In the getFinalSavepointDir method, the processPath function is called but its return value is not assigned to any variable. This leads to the processed path being discarded, requiring the caller to call processPath again on the returned result. This causes:
1. Redundant computation (same path processing executed twice)
2. Inconsistent value handling (the method returns unprocessed value but expects it to be processed)
3. Logical fragility (if processPath has side effects, they would occur twice)
The current caller code shows this issue clearly:
String customSavepoint = this.getFinalSavepointDir(savepointPath, application);
if (StringUtils.isNotBlank(customSavepoint)) {
customSavepoint = processPath(customSavepoint, application.getJobName(), application.getId());
}
### Error Exception
```log
```
### Screenshots
_No response_
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!(您是否要贡献这个PR?)
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] The getFinalSavepointDir did not receive the processPath return value, resulting in redundant calls and logical errors [streampark]
Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on issue #4278:
URL: https://github.com/apache/streampark/issues/4278#issuecomment-3237473053
Great, could you submit this PR to the dev branch?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] The getFinalSavepointDir did not receive the processPath return value, resulting in redundant calls and logical errors [streampark]
Posted by "CuteShaos (via GitHub)" <gi...@apache.org>.
CuteShaos closed issue #4278: [Bug] The getFinalSavepointDir did not receive the processPath return value, resulting in redundant calls and logical errors
URL: https://github.com/apache/streampark/issues/4278
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] The getFinalSavepointDir did not receive the processPath return value, resulting in redundant calls and logical errors [streampark]
Posted by "CuteShaos (via GitHub)" <gi...@apache.org>.
CuteShaos commented on issue #4278:
URL: https://github.com/apache/streampark/issues/4278#issuecomment-3240561723
No problem
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org