The GitHub Actions job "CI" on 
rocketmq-dashboard.git/fix/mock-consumer-import-cap has failed.
Run started by GitHub user lizhimins (triggered by lizhimins).

Head commit for run:
1b007eb1953563da46482e08fdc5aa3ab294b65d / Apulupie 
<[email protected]>
fix(consumer): reject an import batch above the backend group cap

The mock import created every row: importConsumerGroups looped over the list 
and called
createConsumerGroup for each entry 
(web/src/services/consumerService.ts:323-337), while the
endpoint answers 400 for more than 100 groups - 
MetadataService.importConsumerGroups:779-781
rejects size > MAX_IMPORT_GROUPS (100) with "At most 100 consumer groups are 
allowed per import"
(the topic-side import has the same cap at :881-883).

The console can submit a longer list: the consumer-group CSV import has no row 
cap of its own
(web/src/utils/resourceCsvImport.ts:319 validates each row only) and the page 
sends every pending
row in one call (web/src/pages/instance/consumer.tsx:846-877), so in demo mode 
a 101-row file was
reported as imported instead of failing the request the way the real one does.

The mock branch now throws the endpoint's message before touching the store; 
the per-row handling
and the real-API branch are unchanged.

Report URL: 
https://github.com/apache/rocketmq-dashboard/actions/runs/45941509917

With regards,
GitHub Actions via GitBox

Reply via email to