Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Retry logic/configuration for Connector #204

Open
timothydilbert opened this issue Nov 7, 2023 · 0 comments
Open

Question: Retry logic/configuration for Connector #204

timothydilbert opened this issue Nov 7, 2023 · 0 comments

Comments

@timothydilbert
Copy link

I have a use case where I want the HTTP Connector to retry delivering failed messages. That part, I've figured out and have it configured to my liking.

The thing is, in my case, I want the HTTP Connector to retry delivering the message several times before giving up on that message - then evict/discard that message and move onto the next message in the Kafka Topic queue. Right now, after the error threshold, the Aiven HTTP Connector fails outright, and the Aiven HTTP Connector does not deliver any further messages, holding up the entire queue. Below is my configuration:

{
    "name": "EXAMPLE_MESSAGE",
    "config": {
        "connector.class": "io.aiven.kafka.connect.http.HttpSinkConnector",
        "topics.regex": "EXAMPLE_TOPIC",
        "http.authorization.type": "none",
        "http.url": "https://api.domain.local/path/to/my/api",
        "batching.enabled": "false",
        "batch.max.size": 1,
        "tasks.max": "1",
        "key.converter": "org.apache.kafka.connect.storage.StringConverter",
        "value.converter": "org.apache.kafka.connect.json.JsonConverter",
        "value.converter.schemas.enable": "false",
        "group.id": "my_group_name",
        "retry.backoff.ms": 3000,
        "max.retries": 5,
        "consumer.override.auto.offset.reset": "latest"
    }
 }

How do I achieve the outcome I want? Where if message #1 fails after several attempts, the Aiven HTTP Connector will just move onto message #2.

@timothydilbert timothydilbert changed the title Retry logic/configuration for Connector Question: Retry logic/configuration for Connector Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant