payload: {"action":"opened","number":8358,"pull_request":{"url":"https://api.github.com/repos/greenplum-db/gpdb/pulls/8358","id":306719631,"node_id":"MDExOlB1bGxSZXF1ZXN0MzA2NzE5NjMx","html_url":"https://github.com/greenplum-db/gpdb/pull/8358","diff_url":"https://github.com/greenplum-db/gpdb/pull/8358.diff","patch_url":"https://github.com/greenplum-db/gpdb/pull/8358.patch","issue_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/8358","number":8358,"state":"open","locked":false,"title":"Fix COPY FROM SEGMENT segment rows completed count","user":{"login":"jimmyyih","id":1973115,"node_id":"MDQ6VXNlcjE5NzMxMTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1973115?v=4","gravatar_id":"","url":"https://api.github.com/users/jimmyyih","html_url":"https://github.com/jimmyyih","followers_url":"https://api.github.com/users/jimmyyih/followers","following_url":"https://api.github.com/users/jimmyyih/following{/other_user}","gists_url":"https://api.github.com/users/jimmyyih/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmyyih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmyyih/subscriptions","organizations_url":"https://api.github.com/users/jimmyyih/orgs","repos_url":"https://api.github.com/users/jimmyyih/repos","events_url":"https://api.github.com/users/jimmyyih/events{/privacy}","received_events_url":"https://api.github.com/users/jimmyyih/received_events","type":"User","site_admin":false},"body":"The primary segment backends return an int64 count back to the\r\ndispatcher but the dispatcher temporarily stores that int64 count in\r\nan int32 variable.\r\n\r\nYou can clearly see this in a debugger:\r\n```\r\n-> 609                          if (res->numCompleted > 0)\r\n                                    ^\r\n   610                                  segment_rows_completed = res->numCompleted;\r\n(lldb) p res->numCompleted\r\n(int64) $3 = 2000\r\n(lldb) p segment_rows_completed\r\n(int) $4 = 0\r\n```\r\n\r\nIf res->numCompleted is bigger than INT32_MAX, segment_rows_completed\r\nwill become negative and a check later in this function will reject\r\nthis negative number from being added to the total rows completed\r\ncount.\r\n\r\nCo-authored-by: Shivram Mani <shivram.mani@gmail.com>\r\n","created_at":"2019-08-13T02:05:25Z","updated_at":"2019-08-13T02:05:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/greenplum-db/gpdb/pulls/8358/commits","review_comments_url":"https://api.github.com/repos/greenplum-db/gpdb/pulls/8358/comments","review_comment_url":"https://api.github.com/repos/greenplum-db/gpdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/8358/comments","statuses_url":"https://api.github.com/repos/greenplum-db/gpdb/statuses/590e2063fa6046db141522d2e4e1fc37b83d7d13","head":{"label":"jimmyyih:copy_from_int64_fix","ref":"copy_from_int64_fix","sha":"590e2063fa6046db141522d2e4e1fc37b83d7d13","user":{"login":"jimmyyih","id":1973115,"node_id":"MDQ6VXNlcjE5NzMxMTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1973115?v=4","gravatar_id":"","url":"https://api.github.com/users/jimmyyih","html_url":"https://github.com/jimmyyih","followers_url":"https://api.github.com/users/jimmyyih/followers","following_url":"https://api.github.com/users/jimmyyih/following{/other_user}","gists_url":"https://api.github.com/users/jimmyyih/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmyyih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmyyih/subscriptions","organizations_url":"https://api.github.com/users/jimmyyih/orgs","repos_url":"https://api.github.com/users/jimmyyih/repos","events_url":"https://api.github.com/users/jimmyyih/events{/privacy}","received_events_url":"https://api.github.com/users/jimmyyih/received_events","type":"User","site_admin":false},"repo":{"id":45498365,"node_id":"MDEwOlJlcG9zaXRvcnk0NTQ5ODM2NQ==","name":"gpdb","full_name":"jimmyyih/gpdb","private":false,"owner":{"login":"jimmyyih","id":1973115,"node_id":"MDQ6VXNlcjE5NzMxMTU=","avatar_url":"https://avatars2.githubusercontent.com/u/1973115?v=4","gravatar_id":"","url":"https://api.github.com/users/jimmyyih","html_url":"https://github.com/jimmyyih","followers_url":"https://api.github.com/users/jimmyyih/followers","following_url":"https://api.github.com/users/jimmyyih/following{/other_user}","gists_url":"https://api.github.com/users/jimmyyih/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmyyih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmyyih/subscriptions","organizations_url":"https://api.github.com/users/jimmyyih/orgs","repos_url":"https://api.github.com/users/jimmyyih/repos","events_url":"https://api.github.com/users/jimmyyih/events{/privacy}","received_events_url":"https://api.github.com/users/jimmyyih/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jimmyyih/gpdb","description":"Pivotal Greenplum Database","fork":true,"url":"https://api.github.com/repos/jimmyyih/gpdb","forks_url":"https://api.github.com/repos/jimmyyih/gpdb/forks","keys_url":"https://api.github.com/repos/jimmyyih/gpdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jimmyyih/gpdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jimmyyih/gpdb/teams","hooks_url":"https://api.github.com/repos/jimmyyih/gpdb/hooks","issue_events_url":"https://api.github.com/repos/jimmyyih/gpdb/issues/events{/number}","events_url":"https://api.github.com/repos/jimmyyih/gpdb/events","assignees_url":"https://api.github.com/repos/jimmyyih/gpdb/assignees{/user}","branches_url":"https://api.github.com/repos/jimmyyih/gpdb/branches{/branch}","tags_url":"https://api.github.com/repos/jimmyyih/gpdb/tags","blobs_url":"https://api.github.com/repos/jimmyyih/gpdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jimmyyih/gpdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jimmyyih/gpdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/jimmyyih/gpdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jimmyyih/gpdb/statuses/{sha}","languages_url":"https://api.github.com/repos/jimmyyih/gpdb/languages","stargazers_url":"https://api.github.com/repos/jimmyyih/gpdb/stargazers","contributors_url":"https://api.github.com/repos/jimmyyih/gpdb/contributors","subscribers_url":"https://api.github.com/repos/jimmyyih/gpdb/subscribers","subscription_url":"https://api.github.com/repos/jimmyyih/gpdb/subscription","commits_url":"https://api.github.com/repos/jimmyyih/gpdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/jimmyyih/gpdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/jimmyyih/gpdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/jimmyyih/gpdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/jimmyyih/gpdb/contents/{+path}","compare_url":"https://api.github.com/repos/jimmyyih/gpdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jimmyyih/gpdb/merges","archive_url":"https://api.github.com/repos/jimmyyih/gpdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jimmyyih/gpdb/downloads","issues_url":"https://api.github.com/repos/jimmyyih/gpdb/issues{/number}","pulls_url":"https://api.github.com/repos/jimmyyih/gpdb/pulls{/number}","milestones_url":"https://api.github.com/repos/jimmyyih/gpdb/milestones{/number}","notifications_url":"https://api.github.com/repos/jimmyyih/gpdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jimmyyih/gpdb/labels{/name}","releases_url":"https://api.github.com/repos/jimmyyih/gpdb/releases{/id}","deployments_url":"https://api.github.com/repos/jimmyyih/gpdb/deployments","created_at":"2015-11-03T21:58:35Z","updated_at":"2015-11-03T21:59:22Z","pushed_at":"2019-08-13T02:03:46Z","git_url":"git://github.com/jimmyyih/gpdb.git","ssh_url":"git@github.com:jimmyyih/gpdb.git","clone_url":"https://github.com/jimmyyih/gpdb.git","svn_url":"https://github.com/jimmyyih/gpdb","homepage":"http://greenplum.org","size":492126,"stargazers_count":0,"watchers_count":0,"language":"PLpgSQL","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"greenplum-db:5X_STABLE","ref":"5X_STABLE","sha":"9cd4470eafddfa61c771370f9de0fb7e3ff60f06","user":{"login":"greenplum-db","id":14097842,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MDk3ODQy","avatar_url":"https://avatars2.githubusercontent.com/u/14097842?v=4","gravatar_id":"","url":"https://api.github.com/users/greenplum-db","html_url":"https://github.com/greenplum-db","followers_url":"https://api.github.com/users/greenplum-db/followers","following_url":"https://api.github.com/users/greenplum-db/following{/other_user}","gists_url":"https://api.github.com/users/greenplum-db/gists{/gist_id}","starred_url":"https://api.github.com/users/greenplum-db/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenplum-db/subscriptions","organizations_url":"https://api.github.com/users/greenplum-db/orgs","repos_url":"https://api.github.com/users/greenplum-db/repos","events_url":"https://api.github.com/users/greenplum-db/events{/privacy}","received_events_url":"https://api.github.com/users/greenplum-db/received_events","type":"Organization","site_admin":false},"repo":{"id":44781140,"node_id":"MDEwOlJlcG9zaXRvcnk0NDc4MTE0MA==","name":"gpdb","full_name":"greenplum-db/gpdb","private":false,"owner":{"login":"greenplum-db","id":14097842,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MDk3ODQy","avatar_url":"https://avatars2.githubusercontent.com/u/14097842?v=4","gravatar_id":"","url":"https://api.github.com/users/greenplum-db","html_url":"https://github.com/greenplum-db","followers_url":"https://api.github.com/users/greenplum-db/followers","following_url":"https://api.github.com/users/greenplum-db/following{/other_user}","gists_url":"https://api.github.com/users/greenplum-db/gists{/gist_id}","starred_url":"https://api.github.com/users/greenplum-db/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenplum-db/subscriptions","organizations_url":"https://api.github.com/users/greenplum-db/orgs","repos_url":"https://api.github.com/users/greenplum-db/repos","events_url":"https://api.github.com/users/greenplum-db/events{/privacy}","received_events_url":"https://api.github.com/users/greenplum-db/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/greenplum-db/gpdb","description":"Greenplum Database","fork":false,"url":"https://api.github.com/repos/greenplum-db/gpdb","forks_url":"https://api.github.com/repos/greenplum-db/gpdb/forks","keys_url":"https://api.github.com/repos/greenplum-db/gpdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/greenplum-db/gpdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/greenplum-db/gpdb/teams","hooks_url":"https://api.github.com/repos/greenplum-db/gpdb/hooks","issue_events_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/events{/number}","events_url":"https://api.github.com/repos/greenplum-db/gpdb/events","assignees_url":"https://api.github.com/repos/greenplum-db/gpdb/assignees{/user}","branches_url":"https://api.github.com/repos/greenplum-db/gpdb/branches{/branch}","tags_url":"https://api.github.com/repos/greenplum-db/gpdb/tags","blobs_url":"https://api.github.com/repos/greenplum-db/gpdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/greenplum-db/gpdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/greenplum-db/gpdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/greenplum-db/gpdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/greenplum-db/gpdb/statuses/{sha}","languages_url":"https://api.github.com/repos/greenplum-db/gpdb/languages","stargazers_url":"https://api.github.com/repos/greenplum-db/gpdb/stargazers","contributors_url":"https://api.github.com/repos/greenplum-db/gpdb/contributors","subscribers_url":"https://api.github.com/repos/greenplum-db/gpdb/subscribers","subscription_url":"https://api.github.com/repos/greenplum-db/gpdb/subscription","commits_url":"https://api.github.com/repos/greenplum-db/gpdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/greenplum-db/gpdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/greenplum-db/gpdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/greenplum-db/gpdb/contents/{+path}","compare_url":"https://api.github.com/repos/greenplum-db/gpdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/greenplum-db/gpdb/merges","archive_url":"https://api.github.com/repos/greenplum-db/gpdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/greenplum-db/gpdb/downloads","issues_url":"https://api.github.com/repos/greenplum-db/gpdb/issues{/number}","pulls_url":"https://api.github.com/repos/greenplum-db/gpdb/pulls{/number}","milestones_url":"https://api.github.com/repos/greenplum-db/gpdb/milestones{/number}","notifications_url":"https://api.github.com/repos/greenplum-db/gpdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/greenplum-db/gpdb/labels{/name}","releases_url":"https://api.github.com/repos/greenplum-db/gpdb/releases{/id}","deployments_url":"https://api.github.com/repos/greenplum-db/gpdb/deployments","created_at":"2015-10-23T00:25:17Z","updated_at":"2019-08-12T20:50:01Z","pushed_at":"2019-08-12T22:16:44Z","git_url":"git://github.com/greenplum-db/gpdb.git","ssh_url":"git@github.com:greenplum-db/gpdb.git","clone_url":"https://github.com/greenplum-db/gpdb.git","svn_url":"https://github.com/greenplum-db/gpdb","homepage":"http://greenplum.org","size":373734,"stargazers_count":3423,"watchers_count":3423,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":986,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":278,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":986,"open_issues":278,"watchers":3423,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/greenplum-db/gpdb/pulls/8358"},"html":{"href":"https://github.com/greenplum-db/gpdb/pull/8358"},"issue":{"href":"https://api.github.com/repos/greenplum-db/gpdb/issues/8358"},"comments":{"href":"https://api.github.com/repos/greenplum-db/gpdb/issues/8358/comments"},"review_comments":{"href":"https://api.github.com/repos/greenplum-db/gpdb/pulls/8358/comments"},"review_comment":{"href":"https://api.github.com/repos/greenplum-db/gpdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/greenplum-db/gpdb/pulls/8358/commits"},"statuses":{"href":"https://api.github.com/repos/greenplum-db/gpdb/statuses/590e2063fa6046db141522d2e4e1fc37b83d7d13"}},"author_association":"MEMBER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":1,"additions":1,"deletions":1,"changed_files":1}}
other: {"actor":{"display_login":"jimmyyih"}}