32 template<
typename ParseContext>
33 constexpr auto parse(ParseContext& ctx)
38 template<
typename FormatContext>
41 string_view name =
"unknown";
44 name =
"do_not_retry";
50 name =
"socket_not_available";
53 name =
"service_not_available";
56 name =
"node_not_available";
59 name =
"kv_not_my_vbucket";
62 name =
"kv_collection_outdated";
65 name =
"kv_error_map_retry_indicated";
71 name =
"kv_temporary_failure";
74 name =
"kv_sync_write_in_progress";
77 name =
"kv_sync_write_re_commit_in_progress";
80 name =
"service_response_code_indicated";
83 name =
"socket_closed_while_in_flight";
86 name =
"circuit_breaker_open";
89 name =
"query_prepared_statement_failure";
92 name =
"query_index_not_found";
95 name =
"analytics_temporary_failure";
98 name =
"search_too_many_requests";
101 name =
"views_temporary_failure";
104 name =
"views_no_active_partition";
107 return format_to(ctx.out(),
"{}", name);
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
retry_reason
Enumeration of possible retry reasons for operations.
Definition retry_reason.hxx:28
@ key_value_sync_write_in_progress
@ views_no_active_partition
@ key_value_temporary_failure
@ service_not_available
The service on a node (i.e.
@ key_value_sync_write_re_commit_in_progress
@ node_not_available
The node where the operation is supposed to be dispatched to is not available.
@ socket_not_available
The socket is not available into which the operation should’ve been written.
@ search_too_many_requests
@ service_response_code_indicated
@ key_value_error_map_retry_indicated
An unknown response was returned and the consulted KV error map indicated a retry.
@ key_value_not_my_vbucket
A not my vbucket response has been received.
@ socket_closed_while_in_flight
While an operation was in-flight, the underlying socket has been closed.
@ unknown
All unexpected/unknown retry errors must not be retried to avoid accidental data loss and non-determi...
@ query_prepared_statement_failure
@ key_value_collection_outdated
A KV response has been received which signals an outdated collection.
@ do_not_retry
default value, e.g.
@ circuit_breaker_open
The circuit breaker is open for the given socket/endpoint and as a result the operation is not sent i...
@ analytics_temporary_failure
@ views_temporary_failure