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

feat(testing): add reconfiguration completion detection mechanism #11581

Merged
merged 3 commits into from
Nov 6, 2023

Commits on Oct 27, 2023

  1. feat(testing): add reconfiguration completion detection mechanism

    This change adds a new response header X-Kong-Transaction-Id to the
    Admin API.  It contains the (ever incrementing) PostgreSQL transaction
    ID of the change that was made.  The value can then be put into the
    X-If-Kong-Transaction-Id variable in a request to the proxy path.  The
    request will be rejected with a 503 error if the proxy path has not
    been reconfigured yet with this or a later transaction id.
    
    The mechanism is useful in testing, when changes are made through the
    Admin API and the effects on the proxy path are then to be verified.
    Rather than waiting for a static period or retrying the proxy path
    request until the expected result is received, the proxy path client
    specifies the last transaction ID received from the Admin API in the
    X-If-Kong-Transaction-Id header and retries the request if a 503 error
    is received.
    hanshuebner committed Oct 27, 2023
    Configuration menu
    Copy the full SHA
    1627287 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ca4d606 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2adca37 View commit details
    Browse the repository at this point in the history