feat: Add idempotency key to session creation requests by mykola-mokhnach · Pull Request #1327 · appium/java-client

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@mykola-mokhnach

Copy link Copy Markdown

Contributor

Types of changes

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Details

This PR adds a random idempotency key to each session creation request. This is necessary to properly handle HTTP request retries. Read appium/appium-base-driver#400 for more details.

@SrinivasanTarget

Copy link Copy Markdown

Member

CI is not happy yet since server-side changes aren't available in beta.

@mykola-mokhnach mykola-mokhnach changed the title feat: Add idempotency key to session creation requests [WIP] feat: Add idempotency key to session creation requests

Mar 31, 2020

@mykola-mokhnach

Copy link Copy Markdown

Contributor Author

mykola-mokhnach commented

Mar 31, 2020

edited

Loading

@SrinivasanTarget No, unfortunately this is a bug on the server side that is most likely related to keepAlive option and socket reuse. I'll take care about it and restart the test after the patch is merged

@mykola-mokhnach mykola-mokhnach changed the title [WIP] feat: Add idempotency key to session creation requests feat: Add idempotency key to session creation requests

Apr 1, 2020

@mykola-mokhnach mykola-mokhnach merged commit 5d6cf9d into appium:master

Apr 1, 2020

@mykola-mokhnach mykola-mokhnach deleted the idemp branch

April 1, 2020 09:22

@mykola-mokhnach

Copy link Copy Markdown

Contributor Author

All works with the recent base driver patch.

cc @KazuCocoa

KazuCocoa reacted with thumbs up emoji

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

Reviewers

@KazuCocoa KazuCocoa KazuCocoa approved these changes

@SrinivasanTarget SrinivasanTarget SrinivasanTarget approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@mykola-mokhnach @SrinivasanTarget @KazuCocoa