You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "hutiefang76 (via GitHub)" <gi...@apache.org> on 2026/06/20 18:48:57 UTC
[PR] [ISSUE-4323][Bug] Fix flink conf path recovery [streampark]
hutiefang76 opened a new pull request, #4358:
URL: https://github.com/apache/streampark/pull/4358
## What changes were proposed in this pull request
Issue Number: close #4323
Related #4316.
This pull request fixes the Flink Conf view path when `t_flink_env.flink_conf` contains the Flink home path instead of the compressed config content. In that case `DeflaterUtils.unzipString` fails before the page can render the config.
The recovery is intentionally conservative: it only reloads the config from `flinkHome` when the stored value equals, or normalizes to, the configured Flink home path. Other invalid compressed values still fail as before.
## Brief change log
- Reuse one Flink conf YAML resolver for `convertFlinkYamlAsMap`, `unzipFlinkConf`, and `getFlinkConfig`.
- Recover historical `flink_conf` values that were stored as the Flink home path by calling the existing `doSetFlinkConf` flow.
- Add `FlinkEnvTest` coverage for exact path recovery, trailing slash recovery, and `getFlinkConfig` usage.
## Verifying this change
This change added tests and can be verified as follows:
- Added `FlinkEnvTest` to cover the recovery behavior.
- Ran `JAVA_HOME=$(/usr/libexec/java_home -v 17) ./mvnw -Pfast -pl streampark-console/streampark-console-service -am -DskipTests=false -Dcheckstyle.skip=true -Dtest=FlinkEnvTest -Dsurefire.failIfNoSpecifiedTests=false test`
- Ran `JAVA_HOME=$(/usr/libexec/java_home -v 17) ./mvnw -pl streampark-console/streampark-console-service -DskipTests spotless:check`
- Ran `git diff --check` and `git diff --cached --check`
## Does this pull request potentially affect one of the following parts
- Dependencies (does it add or upgrade a dependency): no
--
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: [PR] [ISSUE-4323][Bug] Fix flink conf path recovery [streampark]
Posted by "sonarqubecloud[bot] (via GitHub)" <gi...@apache.org>.
sonarqubecloud[bot] commented on PR #4358:
URL: https://github.com/apache/streampark/pull/4358#issuecomment-4759652440
## [](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4358) **Quality Gate passed**
Issues
 [0 New issues](https://sonarcloud.io/project/issues?id=apache_incubator-streampark&pullRequest=4358&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0 Accepted issues](https://sonarcloud.io/project/issues?id=apache_incubator-streampark&pullRequest=4358&issueStatuses=ACCEPTED)
Measures
 [0 Security Hotspots](https://sonarcloud.io/project/security_hotspots?id=apache_incubator-streampark&pullRequest=4358&issueStatuses=OPEN,CONFIRMED&sinceLeakPeriod=true)
 [0.0% Coverage on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4358&metric=new_coverage&view=list)
 [0.0% Duplication on New Code](https://sonarcloud.io/component_measures?id=apache_incubator-streampark&pullRequest=4358&metric=new_duplicated_lines_density&view=list)
<!-- sqra-placement-anchor -->
[See analysis details on SonarQube Cloud](https://sonarcloud.io/dashboard?id=apache_incubator-streampark&pullRequest=4358)
--
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: [PR] [ISSUE-4323][Bug] Fix flink conf path recovery [streampark]
Posted by "hutiefang76 (via GitHub)" <gi...@apache.org>.
hutiefang76 commented on PR #4358:
URL: https://github.com/apache/streampark/pull/4358#issuecomment-5601935603
Closing this PR because the linked issue was closed by the project as outdated on September 3. The branch has also diverged from current dev, so rebasing it would add noise without an active upstream request. Thanks for the review time.
--
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: [PR] [ISSUE-4323][Bug] Fix flink conf path recovery [streampark]
Posted by "hutiefang76 (via GitHub)" <gi...@apache.org>.
hutiefang76 closed pull request #4358: [ISSUE-4323][Bug] Fix flink conf path recovery
URL: https://github.com/apache/streampark/pull/4358
--
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