You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Dénes Bodó (Jira)" <ji...@apache.org> on 2022/09/01 12:54:00 UTC

[jira] [Updated] (OOZIE-3666) Oozie log streaming bug when log timestamps are the same on multiple Oozie servers

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

Dénes Bodó updated OOZIE-3666:
------------------------------
    Affects Version/s: 5.2.1

> Oozie log streaming bug when log timestamps are the same on multiple Oozie servers
> ----------------------------------------------------------------------------------
>
>                 Key: OOZIE-3666
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3666
>             Project: Oozie
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 5.2.1
>            Reporter: Janos Makai
>            Assignee: Janos Makai
>            Priority: Major
>              Labels: usability
>         Attachments: OOZIE-3666-001.patch, OOZIE-3666-002.patch, OOZIE-3666-003.patch
>
>
> We have found a bug in the mechanism of the Oozie log streaming.
> Affected code lines: [https://github.com/apache/oozie/blob/release-5.2.1/core/src/main/java/org/apache/oozie/service/ZKXLogStreamingService.java#L221L250]
> This code is responsible for collating all of the logs from the available Oozie servers.However, in case there is a log message in server "A" with the same timestamp as an other log message in server "B", then according to the current implementation, the logs acquired by using `TimestampedMessageParser` corresponding to server "B" will be overwritten by server "A" 's parser (due to the operation of {*}{color:#0747a6}timestampMap.put(earliestParser.getLastTimestamp(), earliestParser){color}{*}), therefore causing the log messages from server "B" to be ignored from that point.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)