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

Added retry logic while Deleting SearchParameter #2121

Merged

Conversation

apurvabhaleMS
Copy link
Contributor

@apurvabhaleMS apurvabhaleMS commented Jul 27, 2021

Description

Adding a retry logic while Deleting SearchParameter.
When there are multiple instances of the fhir-server running, it could take some time for the search parameter/reindex updates to propogate to all instances. Hence we are adding some retries below to account for that delay.

Related issues

Addresses [82891].

Testing

Manual Testing
Unit Test

FHIR Team Checklist

  • Update the title of the PR to be succinct and less than 50 characters
  • Add a milestone to the PR for the sprint that it is merged (i.e. add S47)
  • Tag the PR with the type of update: Bug, Dependencies, Enhancement, or New-Feature
  • Tag the PR with Azure API for FHIR if this will release to the managed service
  • Review squash-merge requirements

Semver Change (docs)

Patch|Skip|Feature|Breaking (reason)

@apurvabhaleMS
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@apurvabhaleMS
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@apurvabhaleMS
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Reverted Appointment.json
Reverted Appointment.json
@apurvabhaleMS
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@apurvabhaleMS
Copy link
Contributor Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@apurvabhaleMS apurvabhaleMS marked this pull request as ready for review July 29, 2021 18:18
@apurvabhaleMS apurvabhaleMS requested a review from a team as a code owner July 29, 2021 18:18
@apurvabhaleMS apurvabhaleMS added this to the S68 milestone Jul 29, 2021
@@ -175,6 +174,8 @@ public async Task GivenASearchParam_WhenUpdatingParam_ThenResourcesIndexedWithUp

// Reindex just a single patient, so we can try searching with a partially indexed search param
(reindexJobResult, reindexJobUri) = await Client.PostReindexJobAsync(new Parameters(), $"Patient/{expectedPatient.Resource.Id}/");
await Task.Delay(10000);
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: await Task.Delay(TimeSpan.FromSeconds(10)); for better readability

Copy link
Contributor

@Ivanidzo4ka Ivanidzo4ka left a comment

Choose a reason for hiding this comment

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

:shipit:

@apurvabhaleMS apurvabhaleMS merged commit ea20b3a into main Jul 30, 2021
@apurvabhaleMS apurvabhaleMS deleted the personal/apurvabhale/CustomSearchParam-Failing-Unit-Tests branch July 30, 2021 06:19
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