[
https://issues.apache.org/jira/browse/OOZIE-1560?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13791028#comment-13791028
]
Robert Kanter commented on OOZIE-1560:
--------------------------------------
Test failure is unrelated and seems to be flakey (created OOZIE-1568 for it).
> Log messages should have a way of identifying which server they came from
> when using HA
> ---------------------------------------------------------------------------------------
>
> Key: OOZIE-1560
> URL: https://issues.apache.org/jira/browse/OOZIE-1560
> Project: Oozie
> Issue Type: Improvement
> Components: HA
> Affects Versions: trunk
> Reporter: Robert Kanter
> Assignee: Robert Kanter
> Attachments: OOZIE-1560.patch, OOZIE-1560.patch, OOZIE-1560.patch,
> OOZIE-1560.patch
>
>
> When using HA, the only way to know which server is processing a specific job
> is to go into each server's log file and look for log messages about that
> job; when looking at the logs from the API, there is no way to know.
> This information can be useful, so it would be good to add the server name as
> part of the log message. This can either be done for logs permanently or can
> be done when a server is aggregating/collating logs from the other servers.
> The former is probably more efficient than the latter. If we go with the
> former, I'd say that we should always do it, regardless of HA so the log
> formatting is consistent and in case that server is added to an HA group
> later.
> For example, instead of this:
> {noformat}
> 2013-09-29 16:46:20,182 WARN org.apache.oozie.command.wf.ActionStartXCommand:
> USER[root] GROUP[-] TOKEN[] APP[demo-wf]
> JOB[0000000-130925230553293-oozie-oozi-W]
> ACTION[0000000-130925230553293-oozie-oozi-W@streaming-node]
> [***0000000-130925230553293-oozie-oozi-W@streaming-node***]Action
> status=RUNNING
> {noformat}
> we can have this:
> {noformat}
> 2013-09-29 16:46:20,182 WARN org.apache.oozie.command.wf.ActionStartXCommand:
> USER[root] GROUP[-] SERVER[oozieA] TOKEN[] APP[demo-wf]
> JOB[0000000-130925230553293-oozie-oozi-W]
> ACTION[0000000-130925230553293-oozie-oozi-W@streaming-node]
> [***0000000-130925230553293-oozie-oozi-W@streaming-node***]Action
> status=RUNNING
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.1#6144)