Skip to content

Commit

Permalink
Update default value
Browse files Browse the repository at this point in the history
  • Loading branch information
ekawinataa committed Jul 19, 2024
1 parent e3a4c3f commit 2faa366
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion docs/docs/sinks/grpc-sink.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,13 @@ For more information about CEL please refer to this documentation : https://gith
Example retry rule :
- Retry on specific error code : `com.gotocompany.generic.GenericResponse.errors.exists(e, e.code == "400")`
- Retry on specific error code range : `com.gotocompany.generic.GenericResponse.errors.exists(e, int(e.code) >= 400 && int(e.code) <= 500)`
- Retry on error codes outside from specific error codes : `com.gotocompany.generic.GenericResponse.errors.exists(e, !(int(e.code) in [400, 500, 600]))`
- Retry on error codes outside from specific error codes : `com.gotocompany.generic.GenericResponse.errors.exists(e, !(int(e.code) in [400, 500, 600]))`

### `SINK_GRPC_RESPONSE_RETRY_ERROR_TYPE`

Defines the ErrorType to assign for a retryable error. This is used in conjunction with `SINK_GRPC_RESPONSE_RETRY_CEL_EXPRESSION` and `ERROR_TYPES_FOR_RETRY`.
Value must be defined in com.gotocompany.depot.error.ErrorType

- Example value: `SINK_RETRYABLE_ERROR`
- Type: `optional`
- Default Value: `DEFAULT_ERROR`
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public interface GrpcSinkConfig extends AppConfig {
String getSinkGrpcResponseRetryCELExpression();

@Config.Key("SINK_GRPC_RESPONSE_RETRY_ERROR_TYPE")
@DefaultValue("ErrorType.DEFAULT_ERROR")
@DefaultValue("DEFAULT_ERROR")
@ConverterClass(GrpcSinkRetryErrorTypeConverter.class)
ErrorType getSinkGrpcRetryErrorType();

Expand Down

0 comments on commit 2faa366

Please sign in to comment.