okta / okta-sdk-dotnet

A .NET SDK for interacting with the Okta management API, enabling server-side code to manage Okta users, groups, applications, and more.
Other
160 stars 100 forks source link

OKTA-300462 account for user race condition #387

Closed bryanapellanes-okta closed 4 years ago

bryanapellanes-okta commented 4 years ago

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.