debezium / debezium/dbz

The internal `custom.retriable.exception` property is defined with a non-String default

Open
#2,556 3 comments 0 reactions 1 assignee Claimed by @anilabhabaral View on GitHub
component/core-library good first issue type/bug
Dominant language
HTML
Stars
6
Forks
8
Avg merge
2d 19h
Merged PRs (30d)
1

Description

The definition for `CUSTOM_RETRIABLE_EXCEPTION` is defined with a boolean default value:
```java
public static final Field CUSTOM_RETRIABLE_EXCEPTION = Field.createInternal("custom.retriable.exception")
.withDisplayName("Regular expression to match the exception message.")
.withType(Type.STRING)
.withGroup(Field.createGroupEntry(Field.Group.CONNECTOR_ADVANCED))
.withWidth(Width.MEDIUM)
.withImportance(Importance.LOW)
.withDescription("Provide a temporary workaround for an error that should be retriable."
+ " If set a stacktrace of non-retriable exception is traversed and messages are"
+ " matched against this regular expression. If matched the error is changed to retriable.")
.withDefault(false);
```
The `withDefault` likely doesn't belong.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.