validate and doctor flag arch-v2 destinations with sdk.batch.size>1, which the runtime no longer refuses

Open Beginner friendly
#3,235 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
cli, testing, tooling

Research direction

Start with archV2BatchingFindings in cmd/conduit/internal/validate/engine.go and the doctor check in cmd/conduit/root/doctor/doctorcheck/archv2_batching.go. Then review the MCP argument description and the existing runtime test TestStart_ArchV2AllowsDestinationSDKBatching. Done when a destination with sdk.batch.size above 1 produces no finding, a DLQ still does, and the doctor and MCP text matches that behavior.

Written by the indexing model from the issue text.

Description

Offline conduit pipelines validate --preview.pipeline-arch-v2 and conduit doctor report pipeline.archv2_destination_batching_unsupported for a destination connector with sdk.batch.size above 1. The runtime no longer refuses that: since the funnel destination batching change (#3201/#3203, docs/design-documents/20261017-funnel-destination-batching.md), arch-v2 batches destination writes itself and strips sdk.batch.size/sdk.batch.delay before Configure. Only the dead-letter queue is still refused.

Tier 2 bug (tooling disagrees with the engine; no data-path effect).

Where

  • cmd/conduit/internal/validate/engine.go:328 archV2BatchingFindings: the loop at :341-352 (conn.Type != config.TypeDestination, config.SDKBatchSizeAboveOne(conn.Settings)) emits the error finding for every destination. The DLQ check after it is correct.
  • cmd/conduit/internal/validate/engine.go:88-95: the Options.ArchV2 doc comment says destinations are refused.
  • cmd/conduit/root/doctor/doctorcheck/archv2_batching.go:25-30 and :50-58: the doctor check reuses that engine, so it fails on the same destinations. Its pass message ("no destination or dead-letter-queue sets sdk.batch.size above 1") and suggestion repeat the stale claim.
  • cmd/conduit/internal/mcp/tools_offline.go:34-38: the arch_v2 tool argument description says the same.
  • Runtime, for comparison: pkg/lifecycle-poc/batching_guard.go:48-56 (batchingOffenders checks DLQ.Settings only) and pkg/lifecycle-poc/service.go:1528-1531 (destination sdk.batch.* is read and stripped).

Impact

A user running validate or doctor with arch-v2 on gets an error, with a "remove sdk.batch.size" fix, for a config that starts fine and that arch-v2 batches correctly. The fix pointer even tells them to drop a setting that the funnel uses.

Fix

Limit archV2BatchingFindings to the DLQ (keep the shared config.SDKBatchSizeAboveOne predicate), update the doctor message and suggestion and the MCP and Options comments, and add the missing test: a destination with sdk.batch.size: 100 produces no finding, a DLQ with it does. Cross-check against TestStart_ArchV2AllowsDestinationSDKBatching in pkg/lifecycle-poc, which pins the runtime side.

Dominant language
Go
Stars
617
Forks
69
Avg merge
8h 5m
Merged PRs (30d)
122

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ConduitIO/conduit

All issues in ConduitIO/conduit

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.