Skip to content

Conversation

@dmdashenkov
Copy link
Contributor

In this PR we introduce an API for thread-safe Datastore transactions.

Previously, transactions were handled by DatastoreWrapper. When required, the wrapper substituted the Datastore for a transaction and executed all the requests upon that transaction.
This approach caused concurrency issues.
Now that API is deprecated. It should be removed in subsequent releases.

The new API for transactions allows managing a single Datastore transaction independently of all the others.

@dmdashenkov dmdashenkov self-assigned this Oct 8, 2019
@codecov
Copy link

codecov bot commented Oct 8, 2019

Codecov Report

Merging #132 into master will increase coverage by 0.45%.
The diff coverage is 86.95%.

@@             Coverage Diff              @@
##             master     #132      +/-   ##
============================================
+ Coverage        94%   94.45%   +0.45%     
- Complexity      523      533      +10     
============================================
  Files            66       67       +1     
  Lines          1918     1931      +13     
  Branches        107      103       -4     
============================================
+ Hits           1803     1824      +21     
+ Misses           78       74       -4     
+ Partials         37       33       -4

@dmdashenkov dmdashenkov marked this pull request as ready for review October 8, 2019 14:16
@dmdashenkov dmdashenkov requested a review from armiol October 8, 2019 14:17
@dmdashenkov
Copy link
Contributor Author

@armiol, PTAL.

@dmdashenkov dmdashenkov merged commit f831476 into master Oct 8, 2019
@dmdashenkov dmdashenkov deleted the thread-safe-transactions branch October 8, 2019 14:23
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.

2 participants