You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by Mona Chitnis <mo...@yahoo.in> on 2014/07/15 23:11:36 UTC
Review Request 23524: Logging improvements (amendment to OOZIE-1911) +
OOZIE-1933
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/23524/
-----------------------------------------------------------
Review request for oozie.
Bugs: OOZIE-1933
https://issues.apache.org/jira/browse/OOZIE-1933
Repository: oozie-git
Description
-------
See JIRA
Diffs
-----
core/src/main/java/org/apache/oozie/service/EventHandlerService.java 6c075ab
core/src/main/java/org/apache/oozie/sla/SLACalcStatus.java 5349b33
core/src/main/java/org/apache/oozie/sla/SLACalculatorMemory.java 5b30fc0
core/src/main/java/org/apache/oozie/sla/service/SLAService.java 2349329
core/src/main/java/org/apache/oozie/util/LogUtils.java 723ac36
core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java ffb25e7
core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java 438f2c2
core/src/test/java/org/apache/oozie/sla/TestSLAService.java 205bcd1
core/src/test/java/org/apache/oozie/test/XTestCase.java e739ec3
Diff: https://reviews.apache.org/r/23524/diff/
Testing
-------
added new tests and checked existing ones pass
Thanks,
Mona Chitnis
Re: Review Request 23524: Logging improvements (amendment to OOZIE-1911) +
OOZIE-1933
Posted by Rohini Palaniswamy <ro...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/23524/#review47835
-----------------------------------------------------------
Actually all the synchronized is not required at all. Please remove them. XLog.Info is thread local.
core/src/main/java/org/apache/oozie/service/EventHandlerService.java
<https://reviews.apache.org/r/23524/#comment84064>
synchronized is not required
core/src/main/java/org/apache/oozie/service/EventHandlerService.java
<https://reviews.apache.org/r/23524/#comment84065>
clearLogPrefix is not required after log statement
core/src/main/java/org/apache/oozie/sla/service/SLAService.java
<https://reviews.apache.org/r/23524/#comment84067>
Why public?
core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java
<https://reviews.apache.org/r/23524/#comment84070>
Can be combined into one assert as the pattern is fixed
core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java
<https://reviews.apache.org/r/23524/#comment84069>
Can be combined into one assert as the pattern is fixed
- Rohini Palaniswamy
On July 15, 2014, 9:11 p.m., Mona Chitnis wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/23524/
> -----------------------------------------------------------
>
> (Updated July 15, 2014, 9:11 p.m.)
>
>
> Review request for oozie.
>
>
> Bugs: OOZIE-1933
> https://issues.apache.org/jira/browse/OOZIE-1933
>
>
> Repository: oozie-git
>
>
> Description
> -------
>
> See JIRA
>
>
> Diffs
> -----
>
> core/src/main/java/org/apache/oozie/service/EventHandlerService.java 6c075ab
> core/src/main/java/org/apache/oozie/sla/SLACalcStatus.java 5349b33
> core/src/main/java/org/apache/oozie/sla/SLACalculatorMemory.java 5b30fc0
> core/src/main/java/org/apache/oozie/sla/service/SLAService.java 2349329
> core/src/main/java/org/apache/oozie/util/LogUtils.java 723ac36
> core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java ffb25e7
> core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java 438f2c2
> core/src/test/java/org/apache/oozie/sla/TestSLAService.java 205bcd1
> core/src/test/java/org/apache/oozie/test/XTestCase.java e739ec3
>
> Diff: https://reviews.apache.org/r/23524/diff/
>
>
> Testing
> -------
>
> added new tests and checked existing ones pass
>
>
> Thanks,
>
> Mona Chitnis
>
>
Re: Review Request 23524: Logging improvements (amendment to OOZIE-1911) +
OOZIE-1933
Posted by Mona Chitnis <mo...@yahoo.in>.
> On July 15, 2014, 11:37 p.m., Purshotam Shah wrote:
> > It that possible to add a new method in logutil which take prefix( jobid, name, actionID) and log message and logs it.
> >
> > I see that, to log a singe statement we are doing below statement. Not sure, but I guess we can do it in single line, by passing prefix( jobid,name,actionID) and log message.
> >
> > synchronized (workerLog) {
> > setLogPrefix(workerLog, event);
> > LOG.debug("Processing event : {0}", event);
> > LogUtils.clearLogPrefix();
> > }
removed the synchronized. however clearing is required as the logs carry a lot of occurrences where the prefix points to the earlier jobid/actionid and the job/action it is actually working on is now different.
- Mona
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/23524/#review47837
-----------------------------------------------------------
On July 15, 2014, 9:11 p.m., Mona Chitnis wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/23524/
> -----------------------------------------------------------
>
> (Updated July 15, 2014, 9:11 p.m.)
>
>
> Review request for oozie.
>
>
> Bugs: OOZIE-1933
> https://issues.apache.org/jira/browse/OOZIE-1933
>
>
> Repository: oozie-git
>
>
> Description
> -------
>
> See JIRA
>
>
> Diffs
> -----
>
> core/src/main/java/org/apache/oozie/service/EventHandlerService.java 6c075ab
> core/src/main/java/org/apache/oozie/sla/SLACalcStatus.java 5349b33
> core/src/main/java/org/apache/oozie/sla/SLACalculatorMemory.java 5b30fc0
> core/src/main/java/org/apache/oozie/sla/service/SLAService.java 2349329
> core/src/main/java/org/apache/oozie/util/LogUtils.java 723ac36
> core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java ffb25e7
> core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java 438f2c2
> core/src/test/java/org/apache/oozie/sla/TestSLAService.java 205bcd1
> core/src/test/java/org/apache/oozie/test/XTestCase.java e739ec3
>
> Diff: https://reviews.apache.org/r/23524/diff/
>
>
> Testing
> -------
>
> added new tests and checked existing ones pass
>
>
> Thanks,
>
> Mona Chitnis
>
>
Re: Review Request 23524: Logging improvements (amendment to OOZIE-1911) +
OOZIE-1933
Posted by Purshotam Shah <pu...@yahoo-inc.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/23524/#review47837
-----------------------------------------------------------
It that possible to add a new method in logutil which take prefix( jobid, name, actionID) and log message and logs it.
I see that, to log a singe statement we are doing below statement. Not sure, but I guess we can do it in single line, by passing prefix( jobid,name,actionID) and log message.
synchronized (workerLog) {
setLogPrefix(workerLog, event);
LOG.debug("Processing event : {0}", event);
LogUtils.clearLogPrefix();
}
- Purshotam Shah
On July 15, 2014, 9:11 p.m., Mona Chitnis wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/23524/
> -----------------------------------------------------------
>
> (Updated July 15, 2014, 9:11 p.m.)
>
>
> Review request for oozie.
>
>
> Bugs: OOZIE-1933
> https://issues.apache.org/jira/browse/OOZIE-1933
>
>
> Repository: oozie-git
>
>
> Description
> -------
>
> See JIRA
>
>
> Diffs
> -----
>
> core/src/main/java/org/apache/oozie/service/EventHandlerService.java 6c075ab
> core/src/main/java/org/apache/oozie/sla/SLACalcStatus.java 5349b33
> core/src/main/java/org/apache/oozie/sla/SLACalculatorMemory.java 5b30fc0
> core/src/main/java/org/apache/oozie/sla/service/SLAService.java 2349329
> core/src/main/java/org/apache/oozie/util/LogUtils.java 723ac36
> core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java ffb25e7
> core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java 438f2c2
> core/src/test/java/org/apache/oozie/sla/TestSLAService.java 205bcd1
> core/src/test/java/org/apache/oozie/test/XTestCase.java e739ec3
>
> Diff: https://reviews.apache.org/r/23524/diff/
>
>
> Testing
> -------
>
> added new tests and checked existing ones pass
>
>
> Thanks,
>
> Mona Chitnis
>
>
Re: Review Request 23524: Logging improvements (amendment to OOZIE-1911) +
OOZIE-1933
Posted by Rohini Palaniswamy <ro...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/23524/#review47941
-----------------------------------------------------------
core/src/main/java/org/apache/oozie/service/EventHandlerService.java
<https://reviews.apache.org/r/23524/#comment84180>
remove synchronized
core/src/main/java/org/apache/oozie/service/EventHandlerService.java
<https://reviews.apache.org/r/23524/#comment84181>
static final
core/src/main/java/org/apache/oozie/sla/SLACalculatorMemory.java
<https://reviews.apache.org/r/23524/#comment84182>
else if JobsConcurrencyService.isHAMode
core/src/main/java/org/apache/oozie/util/LogUtils.java
<https://reviews.apache.org/r/23524/#comment84185>
avoid this new XLog.Info()
Have a new method that does clear and set directly on XLog.Info.get()
- Rohini Palaniswamy
On July 16, 2014, 8:09 p.m., Mona Chitnis wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/23524/
> -----------------------------------------------------------
>
> (Updated July 16, 2014, 8:09 p.m.)
>
>
> Review request for oozie.
>
>
> Bugs: OOZIE-1933
> https://issues.apache.org/jira/browse/OOZIE-1933
>
>
> Repository: oozie-git
>
>
> Description
> -------
>
> See JIRA
>
>
> Diffs
> -----
>
> core/src/main/java/org/apache/oozie/service/EventHandlerService.java 6c075ab
> core/src/main/java/org/apache/oozie/sla/SLACalcStatus.java 5349b33
> core/src/main/java/org/apache/oozie/sla/SLACalculatorMemory.java 5b30fc0
> core/src/main/java/org/apache/oozie/util/LogUtils.java 723ac36
> core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java ffb25e7
> core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java 438f2c2
> core/src/test/java/org/apache/oozie/sla/TestSLAService.java 205bcd1
> core/src/test/java/org/apache/oozie/test/XTestCase.java 6bf0a8f
>
> Diff: https://reviews.apache.org/r/23524/diff/
>
>
> Testing
> -------
>
> added new tests and checked existing ones pass
>
>
> Thanks,
>
> Mona Chitnis
>
>
Re: Review Request 23524: Logging improvements (amendment to OOZIE-1911) +
OOZIE-1933
Posted by Rohini Palaniswamy <ro...@gmail.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/23524/#review47958
-----------------------------------------------------------
Ship it!
Ship It!
- Rohini Palaniswamy
On July 16, 2014, 10:47 p.m., Mona Chitnis wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/23524/
> -----------------------------------------------------------
>
> (Updated July 16, 2014, 10:47 p.m.)
>
>
> Review request for oozie.
>
>
> Bugs: OOZIE-1933
> https://issues.apache.org/jira/browse/OOZIE-1933
>
>
> Repository: oozie-git
>
>
> Description
> -------
>
> See JIRA
>
>
> Diffs
> -----
>
> core/src/main/java/org/apache/oozie/service/EventHandlerService.java 6c075ab
> core/src/main/java/org/apache/oozie/sla/SLACalcStatus.java 5349b33
> core/src/main/java/org/apache/oozie/sla/SLACalculatorMemory.java 5b30fc0
> core/src/main/java/org/apache/oozie/util/LogUtils.java 723ac36
> core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java ffb25e7
> core/src/test/java/org/apache/oozie/service/TestHASLAService.java 419e98b
> core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java 438f2c2
> core/src/test/java/org/apache/oozie/sla/TestSLAService.java 205bcd1
> core/src/test/java/org/apache/oozie/test/XTestCase.java 6bf0a8f
>
> Diff: https://reviews.apache.org/r/23524/diff/
>
>
> Testing
> -------
>
> added new tests and checked existing ones pass
>
>
> Thanks,
>
> Mona Chitnis
>
>
Re: Review Request 23524: Logging improvements (amendment to OOZIE-1911) +
OOZIE-1933
Posted by Mona Chitnis <mo...@yahoo.in>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/23524/
-----------------------------------------------------------
(Updated July 16, 2014, 10:47 p.m.)
Review request for oozie.
Changes
-------
addressed comments
Bugs: OOZIE-1933
https://issues.apache.org/jira/browse/OOZIE-1933
Repository: oozie-git
Description
-------
See JIRA
Diffs (updated)
-----
core/src/main/java/org/apache/oozie/service/EventHandlerService.java 6c075ab
core/src/main/java/org/apache/oozie/sla/SLACalcStatus.java 5349b33
core/src/main/java/org/apache/oozie/sla/SLACalculatorMemory.java 5b30fc0
core/src/main/java/org/apache/oozie/util/LogUtils.java 723ac36
core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java ffb25e7
core/src/test/java/org/apache/oozie/service/TestHASLAService.java 419e98b
core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java 438f2c2
core/src/test/java/org/apache/oozie/sla/TestSLAService.java 205bcd1
core/src/test/java/org/apache/oozie/test/XTestCase.java 6bf0a8f
Diff: https://reviews.apache.org/r/23524/diff/
Testing
-------
added new tests and checked existing ones pass
Thanks,
Mona Chitnis
Re: Review Request 23524: Logging improvements (amendment to OOZIE-1911) +
OOZIE-1933
Posted by Mona Chitnis <mo...@yahoo.in>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/23524/
-----------------------------------------------------------
(Updated July 16, 2014, 8:09 p.m.)
Review request for oozie.
Changes
-------
addressed review comments. checked all tests (new+existing ones) pass
Bugs: OOZIE-1933
https://issues.apache.org/jira/browse/OOZIE-1933
Repository: oozie-git
Description
-------
See JIRA
Diffs (updated)
-----
core/src/main/java/org/apache/oozie/service/EventHandlerService.java 6c075ab
core/src/main/java/org/apache/oozie/sla/SLACalcStatus.java 5349b33
core/src/main/java/org/apache/oozie/sla/SLACalculatorMemory.java 5b30fc0
core/src/main/java/org/apache/oozie/util/LogUtils.java 723ac36
core/src/test/java/org/apache/oozie/service/TestEventHandlerService.java ffb25e7
core/src/test/java/org/apache/oozie/sla/TestSLACalculatorMemory.java 438f2c2
core/src/test/java/org/apache/oozie/sla/TestSLAService.java 205bcd1
core/src/test/java/org/apache/oozie/test/XTestCase.java 6bf0a8f
Diff: https://reviews.apache.org/r/23524/diff/
Testing
-------
added new tests and checked existing ones pass
Thanks,
Mona Chitnis