[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage details the `LimitedErrorCountTransactionRerunPolicy` for Google Cloud Spanner, covering its behavior and usage across multiple versions, starting from version `2.11.0` up to the latest `2.37.0-rc`."],["The `LimitedErrorCountTransactionRerunPolicy` manages the number of transient errors allowed during a transaction rerun, halting if non-transient errors occur or the transient error limit is exceeded."],["Transient errors include `kAborted` and `kNotFound` (when the error indicates the missing resource is the spanner session), and these are the errors that the policy will take into account."],["The policy's behavior can be configured using its constructor, which accepts an `int` parameter, `maximum_failures`, to define the maximum number of transient errors allowed, and can completely disable the retry loop by setting `maximum_failures` to `0`."],["Key functions of this policy include checking if it is exhausted `IsExhausted()`, if a certain error is permanent `IsPermanentFailure(Status const &)` and cloning the instance `clone() const`."]]],[]]