Skip to content

Commit

Permalink
Merge pull request #4119 from microsoft/bugfix/caching-dead-lock
Browse files Browse the repository at this point in the history
- fixes a deadlock when evicting cached descriptions
  • Loading branch information
baywet authored Feb 5, 2024
2 parents 9fb5df4 + ed59a27 commit 1bb37db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

- Fixed a deadlock on update for multiple clients targeting the same local file.
- Fixed a deadlock when evicting cached descriptions.

## [1.11.0] - 2024-02-01

Expand Down
2 changes: 1 addition & 1 deletion src/Kiota.Builder/Caching/DocumentCachingProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ private async Task<Stream> GetDocumentInternalAsync(Uri documentUri, string inte
Logger.LogWarning("could not delete cache file {CacheFile}, reason: {Reason}", target, ex.Message);
}
}
return await GetDocumentInternalAsync(documentUri, intermediateFolderName, fileName, couldNotDelete, accept, token).ConfigureAwait(false);
}
return await GetDocumentInternalAsync(documentUri, intermediateFolderName, fileName, couldNotDelete, accept, token).ConfigureAwait(false);
}
private static readonly AsyncKeyedLocker<string> _locks = new(o =>
{
Expand Down

0 comments on commit 1bb37db

Please sign in to comment.