Skip to content

Commit

Permalink
Merge branch 'apache:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
smallyao committed May 27, 2024
2 parents 55e855f + 5c1ba5f commit 27449c3
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
import com.fasterxml.jackson.core.type.TypeReference;
import lombok.Data;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;
import java.net.URI;
Expand All @@ -52,6 +53,7 @@
import java.util.Map;
import java.util.concurrent.TimeUnit;

@Slf4j
@Data
@TableName("t_flink_cluster")
public class FlinkCluster implements Serializable {
Expand Down Expand Up @@ -152,8 +154,8 @@ public URI getRemoteURI() {
this.address,
RequestConfig.custom().setConnectTimeout(2000, TimeUnit.MILLISECONDS).build());
return new URI(address);
} catch (Exception ignored) {
//
} catch (Exception e) {
log.error("FlinkCluster getRemoteURI error", e);
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ private DependencyInfo getMergedDependencyInfo(Application application) {
});
return dependencyInfo.merge(mvnArtifacts, jarLibs);
} catch (Exception e) {
log.warn("Merge team dependency failed.", e);
log.error("Merge team dependency failed.", e);
return dependencyInfo;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ public List<Map<String, Object>> listConf(Project project) {
}
return confList;
} catch (Exception e) {
log.info(e.getMessage());
log.error("List project conf failed", e);
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,13 @@ private FlinkConnector getConnectorResource(List<File> jars, List<String> factor
try {
connectorResource.setClassName(factoryClassName);
connectorResource.setFactoryIdentifier(factory.factoryIdentifier());
} catch (Exception ignored) {
} catch (Exception e) {
log.error(
"Failed to set class name or factory identifier for connector resource. Class name: "
+ factoryClassName
+ ", Factory identifier: "
+ factory.factoryIdentifier(),
e);
}

try {
Expand All @@ -398,8 +404,8 @@ private FlinkConnector getConnectorResource(List<File> jars, List<String> factor
.requiredOptions()
.forEach(x -> requiredOptions.put(x.key(), getOptionDefaultValue(x)));
connectorResource.setRequiredOptions(requiredOptions);
} catch (Exception ignored) {

} catch (Exception e) {
log.error("Failed to set required options for connector resource. " + e);
}

try {
Expand All @@ -408,7 +414,8 @@ private FlinkConnector getConnectorResource(List<File> jars, List<String> factor
.optionalOptions()
.forEach(x -> optionalOptions.put(x.key(), getOptionDefaultValue(x)));
connectorResource.setOptionalOptions(optionalOptions);
} catch (Exception ignored) {
} catch (Exception e) {
log.error("Fail to set optional options for connector resource. " + e);
}
return connectorResource;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ private Optional<Integer> tryGetChkNumRetainedFromDynamicProps(String dynamicPro
log.warn(
"This value of dynamicProperties key: state.checkpoints.num-retained is invalid, must be greater than 0");
} catch (NumberFormatException e) {
log.warn(
log.error(
"This value of dynamicProperties key: state.checkpoints.num-retained invalid, must be number");
}
return Optional.empty();
Expand Down Expand Up @@ -428,7 +428,7 @@ private int getChkNumRetainedFromFlinkEnv(
"The value of key: state.checkpoints.num-retained in flink-conf.yaml is invalid, must be greater than 0, default value: {} will be used",
MAX_RETAINED_CHECKPOINTS.defaultValue());
} catch (NumberFormatException e) {
log.warn(
log.error(
"The value of key: state.checkpoints.num-retained in flink-conf.yaml is invalid, must be number, flink env: {}, default value: {} will be used",
flinkEnv.getFlinkHome(),
flinkConfNumRetained);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public SenderEmail getSenderEmail() {
}
return senderEmail;
} catch (Exception e) {
log.warn("Fault Alert Email is not set.");
log.error("Fault Alert Email is not set.");
}
return null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public SqlCompleteFstTree() {
}
scanner.close();
} catch (Exception e) {
log.info("Error while FstTree ini that: {}", e.getMessage());
log.error("Error while FstTree ini that: {}", e.getMessage());
}
}

Expand Down

0 comments on commit 27449c3

Please sign in to comment.