Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed-size: return each batch to at most one current-batch query. #2391

Merged
merged 2 commits into from
Jan 13, 2024

Conversation

branlwyd
Copy link
Member

Part of DAP-09 implementation (#2389). With this change, Collectors are expected to remember the collection job IDs they generate before sending the collection request. If the Collector encounters a transient failure, it can then resend the request (with the same collection job ID), and rely on request idempotency for things to work out.

The upside of this change is that Collectors no longer need to have logic to deduplicate multiple current-batch requests that are mapped to the same underlying batch, and they can generate current-batch requests at higher rates without risking more duplicated collections.

Part of DAP-09 implementation (#2389). With this change, Collectors are
expected to remember the collection job IDs they generate before sending
the collection request. If the Collector encounters a transient failure,
it can then resend the request (with the same collection job ID), and
rely on request idempotency for things to work out.

The upside of this change is that Collectors no longer need to have
logic to deduplicate multiple current-batch requests that are mapped to
the same underlying batch, and they can generate current-batch requests
at higher rates without risking more duplicated collections.
@branlwyd branlwyd requested a review from a team as a code owner December 22, 2023 02:17
@branlwyd
Copy link
Member Author

(we should wait to merge this until we have created a DAP-07 branch & main is for DAP-09, unless we want to backport this change to DAP-07)

@inahga
Copy link
Contributor

inahga commented Jan 3, 2024

I think whether we want to backport depends on whether we want our WIP stateful collector to support DAP-07. This change is necessary for it to be optimally implemented #2254 (comment).

The changeset looks simple enough to backport (i.e. merge as-is), although I still am giving it a close read.

@tgeoghegan
Copy link
Contributor

We should take this once #2468 lands

@tgeoghegan
Copy link
Contributor

We've now branched for release/0.6, meaning that main is tracking toward draft-ietf-ppm-dap-09. This can be merged (though it needs a rebase).

@branlwyd branlwyd enabled auto-merge (squash) January 12, 2024 23:50
@branlwyd branlwyd merged commit 0d83a83 into main Jan 13, 2024
8 checks passed
@branlwyd branlwyd deleted the bran/current-batch branch January 13, 2024 00:16
inahga pushed a commit that referenced this pull request Jan 18, 2024
)

Part of DAP-09 implementation (#2389). With this change, Collectors are
expected to remember the collection job IDs they generate before sending
the collection request. If the Collector encounters a transient failure,
it can then resend the request (with the same collection job ID), and
rely on request idempotency for things to work out.

The upside of this change is that Collectors no longer need to have
logic to deduplicate multiple current-batch requests that are mapped to
the same underlying batch, and they can generate current-batch requests
at higher rates without risking more duplicated collections.
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.

3 participants