[
https://issues.apache.org/jira/browse/CAMEL-17913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen reassigned CAMEL-17913:
-----------------------------------
Assignee: Claus Ibsen
> camel-kafka - Not able to set IsolationLevel using consumer parameters
> ----------------------------------------------------------------------
>
> Key: CAMEL-17913
> URL: https://issues.apache.org/jira/browse/CAMEL-17913
> Project: Camel
> Issue Type: Improvement
> Components: camel-kafka
> Affects Versions: 3.14.2
> Reporter: itachi uchiha
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 3.17.0
>
> Attachments: image-2022-04-06-19-26-31-080.png
>
>
> When we initialize a KafkaConsumer, we can set the property called
> isolation.level to control what transaction records are exposed to the
> consumer. Two values are then possible, read_uncommitted to retrieve all
> records, independently on the transaction outcome (if any), and
> read_committed to get only the records from committed transactions.
>
> in,
> org.apache.kafka.clients.consumer.ConsumerConfig
> DEFAULT_ISOLATION_LEVEL is
> IsolationLevel.READ_UNCOMMITTED.toString().toLowerCase(Locale.ROOT);
>
> and there is no way we can change ISOLATION_LEVEL to
> IsolationLevel.READ_COMMITTED by camel-kafka
> ************************************************************************************************************************************************************
> org.apache.kafka.clients.consumer.ConsumerConfig
> ----------------------------------------------------------------
> !image-2022-04-06-19-26-31-080.png!
--
This message was sent by Atlassian Jira
(v8.20.7#820007)