You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "justinwwhuang (via GitHub)" <gi...@apache.org> on 2024/04/24 07:36:44 UTC
Re: [PR] [INLONG-10059][Agent] Fix the exception of installation package comparison [inlong]
justinwwhuang commented on code in PR #10062:
URL: https://github.com/apache/inlong/pull/10062#discussion_r1577424152
##########
inlong-agent/agent-installer/src/main/java/org/apache/inlong/agent/installer/ModuleManager.java:
##########
@@ -461,7 +462,7 @@ private boolean downloadModule(ModuleConfig module) {
private boolean isPackageDownloaded(ModuleConfig module) {
String path = module.getPackageConfig().getStoragePath() + "/" + module.getPackageConfig().getFileName();
String fileMd5 = calcFileMd5(path);
- if (fileMd5.equals(module.getPackageConfig().getMd5())) {
+ if (Objects.equals(fileMd5, module.getPackageConfig().getMd5())) {
Review Comment:
After obtaining the module configuration, it is necessary to add a check, md5 cannot be null
--
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: commits-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org