You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Eugene Koifman (JIRA)" <ji...@apache.org> on 2015/03/31 02:22:53 UTC
[jira] [Created] (HIVE-10152) ErrorMsg.formatToErrorMsgMap has bad
regex
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)