Class AlwaysRetryMutationPolicy (2.29.0)

Implements a policy that retries all mutations.

Notice that this will may result in non-idempotent mutations being resent to the server. Re-trying a SetCell() mutation where the server selects the timestamp can result in multiple copies of the data stored with different timestamps. Only use this policy if your application is prepared to handle such problems, for example, by only querying the last value and setting garbage collection policies to delete the old values.

Constructors

AlwaysRetryMutationPolicy()

Functions

virtual clone() const

Return a copy of the policy.

Returns
Type Description
std::unique_ptr< IdempotentMutationPolicy >

virtual is_idempotent(google::bigtable::v2::Mutation const &)

Return true if the mutation is idempotent.

Parameter
Name Description
google::bigtable::v2::Mutation const &
Returns
Type Description
bool

virtual is_idempotent(google::bigtable::v2::CheckAndMutateRowRequest const &)

Return true if a conditional mutation is idempotent.

Parameter
Name Description
google::bigtable::v2::CheckAndMutateRowRequest const &
Returns
Type Description
bool