Skip to content

chore(config): pin the lease cap's window to mq.EmbeddedDuplicateWindow once #629 and #635 land #668

Description

@EricAndrechek

Trigger

Do this once both #629 (windowed ingest, which defines mq.EmbeddedDuplicateWindow) and #635 (the DynamoDB boot wiring, which caps dedupe.lease) are on main. Until then neither branch contains the other's constant.

What

The embedded queue's 2-minute duplicate window is written down three times:

Once both PRs are on main, add a test that pins config.embeddedDuplicateWindow to mq.EmbeddedDuplicateWindow. It could live in a package that may import both, or in a small internal/config test that imports internal/mq in test code only. Then a change to the queue's window fails a test instead of silently loosening the lease cap. A version of this test exists on the integration/distributed branch as internal/config/window_test.go (#645).

Also at that point

Related: #613, #629, #633, #635.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions