mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-03 06:21:01 +08:00
[fix]throw dataXException
This commit is contained in:
parent
57c8dd8673
commit
c64dab42aa
@ -427,7 +427,7 @@ public class JobContainer extends AbstractContainer {
|
|||||||
Long channelLimitedByteSpeed = this.configuration
|
Long channelLimitedByteSpeed = this.configuration
|
||||||
.getLong(CoreConstant.DATAX_CORE_TRANSPORT_CHANNEL_SPEED_BYTE);
|
.getLong(CoreConstant.DATAX_CORE_TRANSPORT_CHANNEL_SPEED_BYTE);
|
||||||
if (channelLimitedByteSpeed == null || channelLimitedByteSpeed <= 0) {
|
if (channelLimitedByteSpeed == null || channelLimitedByteSpeed <= 0) {
|
||||||
DataXException.asDataXException(
|
throw DataXException.asDataXException(
|
||||||
FrameworkErrorCode.CONFIG_ERROR,
|
FrameworkErrorCode.CONFIG_ERROR,
|
||||||
"在有总bps限速条件下,单个channel的bps值不能为空,也不能为非正数");
|
"在有总bps限速条件下,单个channel的bps值不能为空,也不能为非正数");
|
||||||
}
|
}
|
||||||
@ -448,7 +448,7 @@ public class JobContainer extends AbstractContainer {
|
|||||||
Long channelLimitedRecordSpeed = this.configuration.getLong(
|
Long channelLimitedRecordSpeed = this.configuration.getLong(
|
||||||
CoreConstant.DATAX_CORE_TRANSPORT_CHANNEL_SPEED_RECORD);
|
CoreConstant.DATAX_CORE_TRANSPORT_CHANNEL_SPEED_RECORD);
|
||||||
if (channelLimitedRecordSpeed == null || channelLimitedRecordSpeed <= 0) {
|
if (channelLimitedRecordSpeed == null || channelLimitedRecordSpeed <= 0) {
|
||||||
DataXException.asDataXException(FrameworkErrorCode.CONFIG_ERROR,
|
throw DataXException.asDataXException(FrameworkErrorCode.CONFIG_ERROR,
|
||||||
"在有总tps限速条件下,单个channel的tps值不能为空,也不能为非正数");
|
"在有总tps限速条件下,单个channel的tps值不能为空,也不能为非正数");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user