Skip to content

Commit

Permalink
fix feedback error bug
Browse files Browse the repository at this point in the history
  • Loading branch information
85016910 committed Mar 12, 2019
1 parent 3765f45 commit cea0992
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ object FlinkxUtils {
streamId, DateUtils.currentDateTime, sinkNamespace, UmsWatermark(ts),
UmsWatermark(ts), errorCount, errorMsg, batchId, null,protocolType,
flowId,errorPattern),
Some(UmsProtocolType.FEEDBACK_SPARKX_FLOW_ERROR + "." + streamId),
Some(UmsProtocolType.FEEDBACK_FLOW_ERROR + "." + flowId),
config.kafka_output.brokers)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ object SparkxUtils {
config.spark_config.stream_id, DateUtils.currentDateTime, sinkNamespace, UmsWatermark(ts),
UmsWatermark(ts), errorCount, errorMsg, batchId, tmpJsonArray.toJSONString,protocolType,
flowId,errorPattern),
Some(UmsProtocolType.FEEDBACK_SPARKX_FLOW_ERROR + "." + config.spark_config.stream_id),
Some(UmsProtocolType.FEEDBACK_FLOW_ERROR + "." + flowId),
config.kafka_output.brokers)
}

Expand Down
2 changes: 1 addition & 1 deletion ums/src/main/scala/edp/wormhole/ums/UmsProtocolUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ trait UmsProtocolUtils {
dataType: String,
flowId: Long,
errorPattern: String) = toJsonCompact(Ums(
protocol = UmsProtocol(UmsProtocolType.FEEDBACK_SPARKX_FLOW_ERROR),
protocol = UmsProtocol(UmsProtocolType.FEEDBACK_FLOW_ERROR),
schema = UmsSchema(sourceNamespace, Some(Seq(
UmsField(UmsSysField.TS.toString, UmsFieldType.STRING),
UmsField("sink_namespace", UmsFieldType.STRING),
Expand Down

0 comments on commit cea0992

Please sign in to comment.