You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Bibin A Chundatt (JIRA)" <ji...@apache.org> on 2018/12/19 06:45:00 UTC
[jira] [Created] (YARN-9148) AggregatedLogDeletion doesnt work with
S3
Bibin A Chundatt created YARN-9148:
--------------------------------------
Summary: AggregatedLogDeletion doesnt work with S3
Key: YARN-9148
URL: https://issues.apache.org/jira/browse/YARN-9148
Project: Hadoop YARN
Issue Type: Bug
Reporter: Bibin A Chundatt
Aggregated Log deletion works based on modification time of application directory
S3AFileStatus give current time in case of directory.
{code}
if (appDir.isDirectory() &&
appDir.getModificationTime() < cutoffMillis) {
ApplicationId appId = ApplicationId.fromString(
{code}
S3AFileStatus#getModificationTime
{code}
@Override
public long getModificationTime(){
if(isDirectory()){
return System.currentTimeMillis();
} else {
return super.getModificationTime();
}
}
{code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org