You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "purshotam shah (JIRA)" <ji...@apache.org> on 2014/02/06 23:47:20 UTC

[jira] [Updated] (OOZIE-1691) StackOverflowError in TimestampedMessageParser.parseNextLine()

     [ https://issues.apache.org/jira/browse/OOZIE-1691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

purshotam shah updated OOZIE-1691:
----------------------------------

    Description: 
Below function will throws StackOverflowError if no matching line is found for a few consecutive lines.

This will be a common scenario in HA where bundle/coord/WF got executed in other host. For log aggregation we have to search in all host and may lead to StackOverflowError.

protected String parseNextLine() throws IOException {
        String line = reader.readLine();
        if (line != null) {
            ArrayList<String> logParts = filter.splitLogMessage(line);
            if (logParts != null) {
                patternMatched = filter.matches(logParts);
            }
            if (!patternMatched) {
                line = parseNextLine();
            }
        }
        return line;
    }


> StackOverflowError in TimestampedMessageParser.parseNextLine()
> --------------------------------------------------------------
>
>                 Key: OOZIE-1691
>                 URL: https://issues.apache.org/jira/browse/OOZIE-1691
>             Project: Oozie
>          Issue Type: Bug
>            Reporter: purshotam shah
>
> Below function will throws StackOverflowError if no matching line is found for a few consecutive lines.
> This will be a common scenario in HA where bundle/coord/WF got executed in other host. For log aggregation we have to search in all host and may lead to StackOverflowError.
> protected String parseNextLine() throws IOException {
>         String line = reader.readLine();
>         if (line != null) {
>             ArrayList<String> logParts = filter.splitLogMessage(line);
>             if (logParts != null) {
>                 patternMatched = filter.matches(logParts);
>             }
>             if (!patternMatched) {
>                 line = parseNextLine();
>             }
>         }
>         return line;
>     }



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)