Eugene Koifman created HIVE-10152:
-------------------------------------

             Summary: ErrorMsg.formatToErrorMsgMap has bad regex
                 Key: HIVE-10152
                 URL: https://issues.apache.org/jira/browse/HIVE-10152
             Project: Hive
          Issue Type: Bug
          Components: Logging
    Affects Versions: 1.1.0
            Reporter: Eugene Koifman
            Assignee: Eugene Koifman


{noformat}
        String pattern = errorMsg.mesg.replaceAll("\\{.*\\}", ".*");
{noformat}
should be
{noformat}
String pattern = errorMsg.mesg.replaceAll("\\{[0-9]+\\}", ".*");
{noformat}

current regex can match the whole msg (with more than 1 param)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to