Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-13789

Transactional Id Generation fails due to user code impacting formatting string

    XMLWordPrintableJSON

Details

    Description

      In TransactionalIdsGenerator.java], 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.

      Attachments

        Issue Links

          Activity

            People

              haodang Hao Dang
              haodang Hao Dang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m