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