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

Set and validate supported service discovery protocol version #1526

Merged
merged 6 commits into from
May 19, 2024

Commits on May 19, 2024

  1. Configuration menu
    Copy the full SHA
    a103a2c View commit details
    Browse the repository at this point in the history
  2. Squashed 'crates/types/service-protocol/' content from commit 1898426f

    git-subtree-dir: crates/types/service-protocol
    git-subtree-split: 1898426fc98c16d704068594cd54394912845ff7
    tillrohrmann committed May 19, 2024
    Configuration menu
    Copy the full SHA
    3566d32 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0b65fed View commit details
    Browse the repository at this point in the history
  4. Move restate-service-protocol types to restate-types

    Moving the restate-service-protocol types to restate-types makes
    it simpler to share them across different crates.
    tillrohrmann committed May 19, 2024
    Configuration menu
    Copy the full SHA
    fba8d7e View commit details
    Browse the repository at this point in the history
  5. Record service protocol version and send to service endpoint

    This commit introduces the selection of a service protocol version when starting
    the InvocationTask. The service protocol version is sent to the service endpoint
    via the content type and accept headers in the form of vnd.restate.invocation.vX.
    Additionally, we record the chosen service protocol version in the journal metadata
    for sanity checks. Note, currently we don't support resuming an invocation that
    was started on an older protocol version with a newer protocol version.
    
    This fixes restatedev#1510.
    tillrohrmann committed May 19, 2024
    Configuration menu
    Copy the full SHA
    964c375 View commit details
    Browse the repository at this point in the history
  6. Set and validate supported service discovery protocol version

    This commit sends the supported service discovery protocol version to a
    service endpoint as part of the accept headers and validates that the
    returned response is using a supported version (send via the content
    type header).
    
    This fixes restatedev#1523.
    tillrohrmann committed May 19, 2024
    Configuration menu
    Copy the full SHA
    dbf2f3e View commit details
    Browse the repository at this point in the history