We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/apache/inlong/blob/master/inlong-manager/manager-plugins/base/src/main/java/org/apache/inlong/manager/plugin/util/FlinkConfiguration.java#L98~L99
private FlinkConfig getFlinkConfigFromFile(String fileName) throws IOException { Properties properties = new Properties(); BufferedReader bufferedReader = new BufferedReader(new FileReader(fileName)); properties.load(bufferedReader); FlinkConfig flinkConfig = new FlinkConfig(); flinkConfig.setPort(Integer.valueOf(properties.getProperty(PORT))); flinkConfig.setAddress(properties.getProperty(ADDRESS)); flinkConfig.setParallelism(Integer.valueOf(properties.getProperty(PARALLELISM))); flinkConfig.setSavepointDirectory(properties.getProperty(SAVEPOINT_DIRECTORY)); flinkConfig.setJobManagerPort(Integer.valueOf(properties.getProperty(JOB_MANAGER_PORT))); flinkConfig.setDrain(Boolean.parseBoolean(properties.getProperty(DRAIN))); flinkConfig.setAuditProxyHosts(properties.getProperty(METRICS_AUDIT_PROXY_HOSTS_KEY)); flinkConfig.setVersion(properties.getProperty(FLINK_VERSION)); return flinkConfig; }
Some places are using a BufferedReader and do not close properly.
BufferedReader should be closed after use
See:
No response
master
InLong Manager
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
What happened
https://github.com/apache/inlong/blob/master/inlong-manager/manager-plugins/base/src/main/java/org/apache/inlong/manager/plugin/util/FlinkConfiguration.java#L98~L99
Some places are using a BufferedReader and do not close properly.
What you expected to happen
BufferedReader should be closed after use
How to reproduce
See:
https://github.com/apache/inlong/blob/master/inlong-manager/manager-plugins/base/src/main/java/org/apache/inlong/manager/plugin/util/FlinkConfiguration.java#L98~L99
Environment
No response
InLong version
master
InLong Component
InLong Manager
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: