[
https://issues.apache.org/jira/browse/KAFKA-18132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17902647#comment-17902647
]
Mickael Maison commented on KAFKA-18132:
----------------------------------------
My steps:
- build Kafka from trunk
- start a broker
- add the following to config/connect-distributed.properties:
{noformat}
plugin.path=libs/connect-file-4.0.0-SNAPSHOT.jar
session.timeout.ms=150000
consumer.session.timeout.ms=150000
{noformat}
- start Connect bin/connect-distributed.sh
config/connect-distributed.properties
- create a topic called "topic-to-export", and send a few records to it
- create config/sink-config.json with the following content:
{noformat}
{
"name": "file-sink",
"connector.class": "org.apache.kafka.connect.file.FileStreamSinkConnector",
"tasks.max": "1",
"topics": "topic-to-export",
"file": "/tmp/sink.out",
"value.converter": "org.apache.kafka.connect.storage.StringConverter"
}
{noformat}
- start the connector using curl -X PUT -H "Content-Type: application/json" -d
@config/sink-config.json localhost:8083/connectors/file-sink/config
- verify /tmp/sink.out contains the records I sent to topic-to-export
- confirm in the Connect logs (attached [^connect-logs.out]) that all the
consumers that Connect starts internally have session.timeout.ms=150000 in
their configs
> Remove "session.timeout.ms" from connect-distributed.properties to fix
> connect e2e
> ----------------------------------------------------------------------------------
>
> Key: KAFKA-18132
> URL: https://issues.apache.org/jira/browse/KAFKA-18132
> Project: Kafka
> Issue Type: Bug
> Reporter: Chia-Ping Tsai
> Assignee: 黃竣陽
> Priority: Major
> Attachments: connect-logs.out
>
>
> KAFKA-17338 added configs check for consumer protocol, and
> `session.timeout.ms` is one of unsupported configs. However, connect.py
> always load `connect-distributed.properties` to add custom configs and
> unfortunately it includes `session.timeout.ms` ...
> In fact, the default value is already 10 secs
> (https://github.com/apache/kafka/blob/trunk/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/distributed/DistributedConfig.java#L320).
> That means we don't need to configure the value by the config files.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)