[
https://issues.apache.org/jira/browse/OOZIE-3192?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Prabhu Joseph updated OOZIE-3192:
---------------------------------
Description:
Oozie runtime directories are getting accumulated under /tmp. OozieDBCLI does
not destroy the Services and so the code to delete runtime directories are
skipped.
{code:java}
[root@bigdata2 libtools]# ls /tmp/oozie-oozi*
/tmp/oozie-oozi1000989288737845910.dir:
/tmp/oozie-oozi1036845504637967814.dir:
/tmp/oozie-oozi2051016416521814301.dir:
/tmp/oozie-oozi3194893167383531504.dir:
/tmp/oozie-oozi3750814910369499964.dir:
/tmp/oozie-oozi3988391799981903880.dir:
/tmp/oozie-oozi4308477407910112054.dir:
/tmp/oozie-oozi4717881377452217148.dir:
/tmp/oozie-oozi5894080803700698940.dir:
/tmp/oozie-oozi6367849996578983710.dir:
/tmp/oozie-oozi682733264186033679.dir:
/tmp/oozie-oozi7006370502487976692.dir:
{code}
was:
Oozie Delete runtime directory as part of Services.destroy() is never getting
called and so we observe below directories accumulate under /tmp.
{code:java}
[root@bigdata2 libtools]# ls /tmp/oozie-oozi*
/tmp/oozie-oozi1000989288737845910.dir:
/tmp/oozie-oozi1036845504637967814.dir:
/tmp/oozie-oozi2051016416521814301.dir:
/tmp/oozie-oozi3194893167383531504.dir:
/tmp/oozie-oozi3750814910369499964.dir:
/tmp/oozie-oozi3988391799981903880.dir:
/tmp/oozie-oozi4308477407910112054.dir:
/tmp/oozie-oozi4717881377452217148.dir:
/tmp/oozie-oozi5894080803700698940.dir:
/tmp/oozie-oozi6367849996578983710.dir:
/tmp/oozie-oozi682733264186033679.dir:
/tmp/oozie-oozi7006370502487976692.dir:
{code}
Below code is never getting called as part of Services.destroy()
{code}
if (deleteRuntimeDir) {
try {
IOUtils.delete(new File(runtimeDir));
}
catch (IOException ex) {
log.error("Error deleting runtime directory [{0}], {1}", runtimeDir,
ex.getMessage(), ex);
}
}
{code}
> OozieDBCLI does not destroy the Services
> ----------------------------------------
>
> Key: OOZIE-3192
> URL: https://issues.apache.org/jira/browse/OOZIE-3192
> Project: Oozie
> Issue Type: Bug
> Components: core
> Affects Versions: 4.2.0
> Reporter: Prabhu Joseph
> Assignee: Prabhu Joseph
> Priority: Major
> Attachments: OOZIE-3192.1.patch
>
>
> Oozie runtime directories are getting accumulated under /tmp. OozieDBCLI does
> not destroy the Services and so the code to delete runtime directories are
> skipped.
>
> {code:java}
> [root@bigdata2 libtools]# ls /tmp/oozie-oozi*
> /tmp/oozie-oozi1000989288737845910.dir:
> /tmp/oozie-oozi1036845504637967814.dir:
> /tmp/oozie-oozi2051016416521814301.dir:
> /tmp/oozie-oozi3194893167383531504.dir:
> /tmp/oozie-oozi3750814910369499964.dir:
> /tmp/oozie-oozi3988391799981903880.dir:
> /tmp/oozie-oozi4308477407910112054.dir:
> /tmp/oozie-oozi4717881377452217148.dir:
> /tmp/oozie-oozi5894080803700698940.dir:
> /tmp/oozie-oozi6367849996578983710.dir:
> /tmp/oozie-oozi682733264186033679.dir:
> /tmp/oozie-oozi7006370502487976692.dir:
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)