[
https://issues.apache.org/jira/browse/FLINK-13789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hao Dang updated FLINK-13789:
-----------------------------
Description:
In [TransactionalIdsGenerator.java|#L94]], prefix contains taskName of the
particular task which could ultimately contain user code. In some cases, user
code contains conversion specifiers like %, the string formatting could fail.
For example, in Flink SQL code, user could have a LIKE statement with a %
wildcard, the % wildcard will end up in the prefix and get mistreated during
formatting, causing task to fail.
Think we should move prefix out of the string formatting.
was:
In
[TransactionalIdsGenerator.java|[https://github.com/apache/flink/blob/master/flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/streaming/connectors/kafka/internal/TransactionalIdsGenerator.java#L94]],
prefix contains taskName of the particular task which could ultimately contain
user code. In some cases, user code contains conversion specifiers like %, the
string formatting could fail.
For example, in Flink SQL code, user could have a LIKE statement with a %
wildcard, the % wildcard will end up in the prefix and get mistreated during
formatting, causing task to fail.
> Transactional Id Generation fails due to user code impacting formatting string
> ------------------------------------------------------------------------------
>
> Key: FLINK-13789
> URL: https://issues.apache.org/jira/browse/FLINK-13789
> Project: Flink
> Issue Type: Bug
> Reporter: Hao Dang
> Priority: Major
>
> In [TransactionalIdsGenerator.java|#L94]], prefix contains taskName of the
> particular task which could ultimately contain user code. In some cases,
> user code contains conversion specifiers like %, the string formatting could
> fail.
> For example, in Flink SQL code, user could have a LIKE statement with a %
> wildcard, the % wildcard will end up in the prefix and get mistreated during
> formatting, causing task to fail.
> Think we should move prefix out of the string formatting.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)