mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-04 03:42:08 +08:00
fix: 修复 Consumer 点击 Stop 不发停止检索问题修复
This commit is contained in:
@@ -192,8 +192,10 @@ const ConsumeClientTest = () => {
|
|||||||
// 过滤出消费数量不足设定值的partition
|
// 过滤出消费数量不足设定值的partition
|
||||||
const filtersPartition = _partitionList.filter((item: any) => item.recordCount < untilMsgNum);
|
const filtersPartition = _partitionList.filter((item: any) => item.recordCount < untilMsgNum);
|
||||||
curPartitionList.current = filtersPartition; // 用作下一次请求的入参
|
curPartitionList.current = filtersPartition; // 用作下一次请求的入参
|
||||||
setIsStop(filtersPartition.length < 1);
|
if (!isStop) {
|
||||||
isStopStatus.current = filtersPartition.length < 1;
|
setIsStop(filtersPartition.length < 1);
|
||||||
|
isStopStatus.current = filtersPartition.length < 1;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'max size':
|
case 'max size':
|
||||||
setIsStop(+recordSizeCur.current >= unitMsgSize);
|
setIsStop(+recordSizeCur.current >= unitMsgSize);
|
||||||
@@ -202,8 +204,10 @@ const ConsumeClientTest = () => {
|
|||||||
case 'max size per partition':
|
case 'max size per partition':
|
||||||
// 过滤出消费size不足设定值的partition
|
// 过滤出消费size不足设定值的partition
|
||||||
const filters = partitionConsumedList.filter((item: any) => item.recordSizeUnitB < unitMsgSize);
|
const filters = partitionConsumedList.filter((item: any) => item.recordSizeUnitB < unitMsgSize);
|
||||||
setIsStop(filters.length < 1);
|
if (!isStop) {
|
||||||
isStopStatus.current = filters.length < 1;
|
setIsStop(filters.length < 1);
|
||||||
|
isStopStatus.current = filters.length < 1;
|
||||||
|
}
|
||||||
curPartitionList.current = filters;
|
curPartitionList.current = filters;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user