hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene Koifman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-10152) ErrorMsg.formatToErrorMsgMap has bad regex
Date Wed, 01 Apr 2015 19:44:53 GMT

    [ https://issues.apache.org/jira/browse/HIVE-10152?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14391305#comment-14391305
] 

Eugene Koifman commented on HIVE-10152:
---------------------------------------

the failure is unrelated.  ran the test locally - passed.

> 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
>         Attachments: HIVE-10152.patch
>
>
> {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)

Mime
View raw message