Skip to content

messages: add LeaderSelectedQueryConfig - #4896

Merged
tgeoghegan merged 2 commits into
mainfrom
timg/leader-selected-collection-job-idempotency-key-messages
Oct 13, 2026
Merged

tgeoghegan merged 2 commits into
mainfrom
timg/leader-selected-collection-job-idempotency-key-messages

Conversation

@tgeoghegan

Copy link
Copy Markdown
Contributor

In draft-ietf-ppm-dap-20, leader selected batch mode collection jobs set an idempotency key in their query. This commit adds support for this to janus_messages.

This PR also temporarily disables some tests, which will be re-enabled in subsequent changes.

See ietf-wg-ppm/draft-ietf-ppm-dap#797 and #4893

@tgeoghegan
tgeoghegan requested a review from a team as a code owner October 13, 2026 14:08
@tgeoghegan
tgeoghegan force-pushed the timg/leader-selected-collection-job-idempotency-key-messages branch 2 times, most recently from 0c13e31 to 9b29cb7 Compare October 13, 2026 14:15
Comment thread messages/src/batch_mode.rs Outdated
Comment on lines +183 to +189
impl Default for LeaderSelectedQueryConfig {
fn default() -> Self {
Self {
idempotency_key: b"default idempotency key".to_vec(),
}
}
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should have a Default implementation of this, as it would be too easy to misuse. We should move this to a test-only constructor method instead.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea. Moving to a method test_default gated on feature = "test-util" also confirmed that it was only being used in test contexts.

@tgeoghegan
tgeoghegan changed the base branch from main to timg/parse-ids-in-location October 13, 2026 16:16
Base automatically changed from timg/parse-ids-in-location to main October 13, 2026 16:32
@tgeoghegan
tgeoghegan force-pushed the timg/leader-selected-collection-job-idempotency-key-messages branch 2 times, most recently from a327266 to 379de35 Compare October 13, 2026 16:42
In draft-ietf-ppm-dap-20, leader selected batch mode collection jobs set
an idempotency key in their query. This commit adds support for this to
`janus_messages`.

See ietf-wg-ppm/draft-ietf-ppm-dap#797
Provide default `LeaderSelectedQueryConfig` values in various places so
that targets beyond `janus_messages` compile and tests pass.

Turn off the Docker tests in CI temporarily.
@tgeoghegan
tgeoghegan force-pushed the timg/leader-selected-collection-job-idempotency-key-messages branch from 379de35 to c1ed5e6 Compare October 13, 2026 17:14
@tgeoghegan
tgeoghegan merged commit 5322606 into main Oct 13, 2026
8 checks passed
@tgeoghegan
tgeoghegan deleted the timg/leader-selected-collection-job-idempotency-key-messages branch October 13, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants