Skip to content

Commit 2df9a08

Browse files
authored
Update service-fabric-reliable-services-reliable-collections-guidelines.md
1 parent 2757261 commit 2df9a08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/service-fabric/service-fabric-reliable-services-reliable-collections-guidelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The guidelines are organized as simple recommendations prefixed with the terms *
2929
* Avoid mixing single entity operations and multi-entity operations (e.g `GetCountAsync`, `CreateEnumerableAsync`) in the same transaction due to the different isolation levels.
3030
* Do handle InvalidOperationException. User transactions can be aborted by the system for variety of reasons. For example, when the Reliable State Manager is changing its role out of Primary or when a long-running transaction is blocking truncation of the transactional log. In such cases, user may receive InvalidOperationException indicating that their transaction has already been terminated. Assuming, the termination of the transaction was not requested by the user, best way to handle this exception is to dispose the transaction, check if the cancellation token has been signaled (or the role of the replica has been changed), and if not create a new transaction and retry.
3131
* Do not apply any parallelism within a transaction.
32-
* Consider dispose transaction as soon as possible after commit completes (Especially if using ConcurrentQueue).
32+
* Consider dispose transaction as soon as possible after commit completes (especially if using ConcurrentQueue).
3333
* Do not perform any blocking code inside a transaction.
3434

3535
Here are some things to keep in mind:

0 commit comments

Comments
 (0)