Uploaded image for project: 'Flume (READ-ONLY)'
  1. Flume (READ-ONLY)
  2. FLUME-622

Escape sequences gets stuck with "Illegal group reference" error if replacements have '$' chars.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: v0.9.4
    • Component/s: None
    • Labels:
      None

      Description

      When shipping data to hbase sink, we use regex matcher to handle escaping. Apparently there are some problems in the code due to particular strings that replace the escape sequences.

      When doing regexes $ needs to be escaped to be \$, and \ needs to be escaped to be
      in the replacement strings.

      This seems like a relevant example:
      http://cephas.net/blog/2006/02/09/javalangillegalargumentexception-illegal-group-reference-replaceall-and-dollar-signs/

      This may explain some mysterious errors.

        Attachments

          Activity

            People

            • Assignee:
              jon Jonathan Hsieh
              Reporter:
              jon Jonathan Hsieh
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: