Skip to content

Commit

Permalink
[INLONG-4816][DataProxy] Add warn log when there is no TubeMQ info wh…
Browse files Browse the repository at this point in the history
…en start for the first time (apache#4817)
  • Loading branch information
dockerzhang authored and vernedeng committed Jul 4, 2022
1 parent 9a136a6 commit 206ecf8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,14 +259,16 @@ private TubeClientConfig initTubeConfig(String masterUrl) throws Exception {
* @throws FlumeException if an RPC client connection could not be opened
*/
private void initCreateConnection() throws FlumeException {
// synchronized (tubeSessionLock) {
// check the TubeMQ address
if (masterHostAndPortLists == null || masterHostAndPortLists.isEmpty()) {
logger.warn("Failed to get TubeMQ Cluster, make sure register TubeMQ to manager successfully.");
return;
}
// if already connected, just skip
if (sessionFactories != null) {
return;
}
sessionFactories = new HashMap<>();
Preconditions.checkState(masterHostAndPortLists != null && !masterHostAndPortLists.isEmpty(),
"No tube service url specified");
for (String masterUrl : masterHostAndPortLists) {
createConnection(masterUrl);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public void setConfigLogMetric(StreamConfigLogMetric streamConfigLogMetric) {
}

public void initCreateConnection(CreatePulsarClientCallBack callBack) {
if (pulsarUrl2token.isEmpty()) {
if (pulsarUrl2token == null || pulsarUrl2token.isEmpty()) {
logger.warn("Failed to get Pulsar Cluster, make sure register pulsar to manager successfully.");
return;
}
Expand Down
6 changes: 0 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1007,12 +1007,6 @@
<artifactId>iceberg-flink-runtime-1.13</artifactId>
<version>${iceberg.flink.version}</version>
</dependency>
<dependency>
<groupId>org.apache.iceberg</groupId>
<artifactId>iceberg-flink-runtime-1.13</artifactId>
<version>${iceberg.flink.version}</version>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table-planner-blink_${flink.scala.binary.version}</artifactId>
Expand Down

0 comments on commit 206ecf8

Please sign in to comment.