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

OKTA-300462 account for user race condition #387

Merged
merged 2 commits into from Jun 11, 2020

Conversation

bryanapellanes-okta
Copy link
Contributor

@bryanapellanes-okta bryanapellanes-okta commented May 29, 2020

Account for eventual consistency

The primary change introduced here are Thread.Sleep additions on creation of new data. Was seeing intermittent 404 responses when new data entries are made, likely due to GET requests going to read only data replicas. This change waits a few seconds to allow for data replication prior to read attempts.

@bryanapellanes-okta bryanapellanes-okta force-pushed the OKTA-300462-account-for-user-race-condition branch 3 times, most recently from 8ec087f to ed53c21 Compare June 2, 2020 13:16
@bryanapellanes-okta bryanapellanes-okta force-pushed the OKTA-300462-account-for-user-race-condition branch from ed53c21 to 4515991 Compare June 10, 2020 15:50
@bryanapellanes-okta bryanapellanes-okta force-pushed the OKTA-300462-account-for-user-race-condition branch from 4515991 to 4fe6676 Compare June 10, 2020 15:58
@bryanapellanes-okta bryanapellanes-okta marked this pull request as ready for review June 11, 2020 16:36
@@ -12,7 +12,7 @@

namespace Okta.Sdk.IntegrationTests
{
public class EventHooksClientShould
public class EventHooksClientScenarios
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to update the header as well.

@@ -11,7 +11,7 @@

namespace Okta.Sdk.IntegrationTests
{
public class InlineHooksClientShould
public class InlineHooksClientScenarios
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to update the header as well.

using System.Threading.Tasks;
using FluentAssertions;
using Xunit;

namespace Okta.Sdk.IntegrationTests
{
public class UserTypesClientShould
public class UserTypesClientScenarios
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to update the header as well.

Copy link
Collaborator

@laura-rodriguez laura-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments. Other than that, LGTM. 👍

@bryanapellanes-okta bryanapellanes-okta merged commit 12df6c6 into dev Jun 11, 2020
@bryanapellanes-okta bryanapellanes-okta deleted the OKTA-300462-account-for-user-race-condition branch June 11, 2020 20:03
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.

None yet

3 participants