You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Gabor Somogyi (JIRA)" <ji...@apache.org> on 2019/06/25 10:50:00 UTC

[jira] [Updated] (SPARK-28163) Kafka ignores user configuration on FETCH_OFFSET_NUM_RETRY and FETCH_OFFSET_RETRY_INTERVAL_MS

     [ https://issues.apache.org/jira/browse/SPARK-28163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gabor Somogyi updated SPARK-28163:
----------------------------------
    Description: 
There are "unsafe" conversions in the Kafka connector.
CaseInsensitiveStringMap comes in which is then converted the following way:
{code:java}
...
options.asScala.toMap
...
{code}
The main problem with this is that such case it looses its case insensitive nature
(case insensitive map is converting the key to lower case when get/contains called).


  was:
There are "unsafe" conversions in the Kafka connector.
CaseInsensitiveStringMap comes in which is then converted the following way:
{code:java}
...
options.asScala.toMap
...
{code}
The main problem with this that such case it looses its case insensitive nature.
Case insensitive map is converting the key to lower case when get/contains called.



> Kafka ignores user configuration on FETCH_OFFSET_NUM_RETRY and FETCH_OFFSET_RETRY_INTERVAL_MS
> ---------------------------------------------------------------------------------------------
>
>                 Key: SPARK-28163
>                 URL: https://issues.apache.org/jira/browse/SPARK-28163
>             Project: Spark
>          Issue Type: Bug
>          Components: Structured Streaming
>    Affects Versions: 3.0.0
>            Reporter: Gabor Somogyi
>            Priority: Major
>
> There are "unsafe" conversions in the Kafka connector.
> CaseInsensitiveStringMap comes in which is then converted the following way:
> {code:java}
> ...
> options.asScala.toMap
> ...
> {code}
> The main problem with this is that such case it looses its case insensitive nature
> (case insensitive map is converting the key to lower case when get/contains called).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org