[ 
https://issues.apache.org/jira/browse/TEZ-2331?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14500101#comment-14500101
 ] 

Chang Li commented on TEZ-2331:
-------------------------------

Inside serviceStop of ATSHistoryLoggingService, I change the code a bit to let 
it wait for 4 seconds before shutdown then the container stopped info is able 
to appear.
{code}
{

    "events": [
        {
            "timestamp": 1429286032860,
            "eventtype": "CONTAINER_STOPPED",
            "eventinfo": { }
        },
        {
            "timestamp": 1429286017656,
            "eventtype": "CONTAINER_LAUNCHED",
            "eventinfo": { }
        }
    ],
    "entitytype": "TEZ_CONTAINER_ID",
    "entity": "tez_container_e08_1427829803708_22402_01_000003",
    "starttime": 1429286017656,
    "domain": "Tez_ATS_application_1427829803708_22402",
    "relatedentities": { },
    "primaryfilters": {
        "exitStatus": [
            0
        ],
        "applicationId": [
            "application_1427829803708_22402"
        ]
    },
    "otherinfo": {
        "exitStatus": 0,
        "endTime": 1429286032860,
        "containerId": "container_e08_1427829803708_22402_01_000003"
    }

}
{code}

> Container Stop Info Always Missing When Container Reuse Enabled
> ---------------------------------------------------------------
>
>                 Key: TEZ-2331
>                 URL: https://issues.apache.org/jira/browse/TEZ-2331
>             Project: Apache Tez
>          Issue Type: Bug
>            Reporter: Chang Li
>
> Inside otherinfo the container's exit status and end time is always missing 
> when container reuse is enabled.
> {code}
> {
>     "events": [
>         {
>             "timestamp": 1429225237529,
>             "eventtype": "CONTAINER_LAUNCHED",
>             "eventinfo": { }
>         }
>     ],
>     "entitytype": "TEZ_CONTAINER_ID",
>     "entity": "tez_container_e08_1427829803708_21518_01_000002",
>     "starttime": 1429225237529,
>     "domain": "Tez_ATS_application_1427829803708_21518",
>     "relatedentities": { },
>     "primaryfilters": {
>         "applicationId": [
>             "application_1427829803708_21518"
>         ]
>     },
>     "otherinfo": {
>         "containerId": "container_e08_1427829803708_21518_01_000002"
>     }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to