[
https://issues.apache.org/jira/browse/HAWQ-192?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15046583#comment-15046583
]
ASF GitHub Bot commented on HAWQ-192:
-------------------------------------
Github user huor commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/153#discussion_r46926753
--- Diff: depends/libyarn/sample/c_client_main.c ---
@@ -67,13 +67,13 @@ int main() {
printf("2. allocateResources,
errorMessage:%s\n",errorMessage);
}
- int32_t activeContainerIds[allocatedResourceArraySize];
- int32_t releaseContainerIds[allocatedResourceArraySize];
- int32_t statusContainerIds[allocatedResourceArraySize];
+ int64_t activeContainerIds[allocatedResourceArraySize];
+ int64_t releaseContainerIds[allocatedResourceArraySize];
+ int64_t statusContainerIds[allocatedResourceArraySize];
printf("2. allocateResources, allocatedResourceArraySize:%d\n",
allocatedResourceArraySize);
for (i = 0 ; i < allocatedResourceArraySize; i++) {
puts("----------------------------");
- printf("allocatedResourcesArray[i].containerId:%d\n",
allocatedResourcesArray[i].containerId);
+ printf("allocatedResourcesArray[i].containerId:%ld\n",
allocatedResourcesArray[i].containerId);
--- End diff --
It would be better to have INT64_FORMAT instead of %ld, %dlld, etc.
> Fail to getContainerStatus and release resource when Yarn HA is enable
> ----------------------------------------------------------------------
>
> Key: HAWQ-192
> URL: https://issues.apache.org/jira/browse/HAWQ-192
> Project: Apache HAWQ
> Issue Type: Bug
> Components: libyarn
> Reporter: Lin Wen
> Assignee: Lin Wen
>
> Libyarn fails to getContainerStatus and release resource when Yarn HA is
> enable.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)