{"action":"opened","number":449,"pull_request":{"url":"https://api.github.com/repos/Netflix/titus-control-plane/pulls/449","id":238827839,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM4ODI3ODM5","html_url":"https://github.com/Netflix/titus-control-plane/pull/449","diff_url":"https://github.com/Netflix/titus-control-plane/pull/449.diff","patch_url":"https://github.com/Netflix/titus-control-plane/pull/449.patch","issue_url":"https://api.github.com/repos/Netflix/titus-control-plane/issues/449","number":449,"state":"open","locked":false,"title":"unwrap CompositeException with a single cause when returning errors to API clients","user":{"login":"fabiokung","id":5755,"node_id":"MDQ6VXNlcjU3NTU=","avatar_url":"https://avatars0.githubusercontent.com/u/5755?v=4","gravatar_id":"","url":"https://api.github.com/users/fabiokung","html_url":"https://github.com/fabiokung","followers_url":"https://api.github.com/users/fabiokung/followers","following_url":"https://api.github.com/users/fabiokung/following{/other_user}","gists_url":"https://api.github.com/users/fabiokung/gists{/gist_id}","starred_url":"https://api.github.com/users/fabiokung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fabiokung/subscriptions","organizations_url":"https://api.github.com/users/fabiokung/orgs","repos_url":"https://api.github.com/users/fabiokung/repos","events_url":"https://api.github.com/users/fabiokung/events{/privacy}","received_events_url":"https://api.github.com/users/fabiokung/received_events","type":"User","site_admin":false},"body":"Without this, API calls will see errors that look like:\r\n\r\n```json\r\n{\"statusCode\":500,\"message\":\"INTERNAL: CompositeException: 1 exceptions occurred. \"}\r\n```\r\n\r\n... which is not very useful. It should be:\r\n\r\n```json\r\n{\"statusCode\":500,\"message\":\"INTERNAL: CompositeException: JobManagerException: Cannot decrement job 6855cb18-c825-4a74-a7b9-330c51ffa619 desired size by 1, as it violates the minimum job size constraint: min=3, desired=3, max\r\n=3\"}\r\n```","created_at":"2018-12-14T20:04:31Z","updated_at":"2018-12-14T20:04:31Z","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/Netflix/titus-control-plane/pulls/449/commits","review_comments_url":"https://api.github.com/repos/Netflix/titus-control-plane/pulls/449/comments","review_comment_url":"https://api.github.com/repos/Netflix/titus-control-plane/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Netflix/titus-control-plane/issues/449/comments","statuses_url":"https://api.github.com/repos/Netflix/titus-control-plane/statuses/5e5312cf291fdcdad4e69df1081371c091644479","head":{"label":"Netflix:unwrap-coposite-exception","ref":"unwrap-coposite-exception","sha":"5e5312cf291fdcdad4e69df1081371c091644479","user":{"login":"Netflix","id":913567,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxMzU2Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/913567?v=4","gravatar_id":"","url":"https://api.github.com/users/Netflix","html_url":"https://github.com/Netflix","followers_url":"https://api.github.com/users/Netflix/followers","following_url":"https://api.github.com/users/Netflix/following{/other_user}","gists_url":"https://api.github.com/users/Netflix/gists{/gist_id}","starred_url":"https://api.github.com/users/Netflix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netflix/subscriptions","organizations_url":"https://api.github.com/users/Netflix/orgs","repos_url":"https://api.github.com/users/Netflix/repos","events_url":"https://api.github.com/users/Netflix/events{/privacy}","received_events_url":"https://api.github.com/users/Netflix/received_events","type":"Organization","site_admin":false},"repo":{"id":107330274,"node_id":"MDEwOlJlcG9zaXRvcnkxMDczMzAyNzQ=","name":"titus-control-plane","full_name":"Netflix/titus-control-plane","private":false,"owner":{"login":"Netflix","id":913567,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxMzU2Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/913567?v=4","gravatar_id":"","url":"https://api.github.com/users/Netflix","html_url":"https://github.com/Netflix","followers_url":"https://api.github.com/users/Netflix/followers","following_url":"https://api.github.com/users/Netflix/following{/other_user}","gists_url":"https://api.github.com/users/Netflix/gists{/gist_id}","starred_url":"https://api.github.com/users/Netflix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netflix/subscriptions","organizations_url":"https://api.github.com/users/Netflix/orgs","repos_url":"https://api.github.com/users/Netflix/repos","events_url":"https://api.github.com/users/Netflix/events{/privacy}","received_events_url":"https://api.github.com/users/Netflix/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Netflix/titus-control-plane","description":"Titus is the Netflix Container Management Platform that manages containers and provides integrations to the infrastructure ecosystem.","fork":false,"url":"https://api.github.com/repos/Netflix/titus-control-plane","forks_url":"https://api.github.com/repos/Netflix/titus-control-plane/forks","keys_url":"https://api.github.com/repos/Netflix/titus-control-plane/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Netflix/titus-control-plane/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Netflix/titus-control-plane/teams","hooks_url":"https://api.github.com/repos/Netflix/titus-control-plane/hooks","issue_events_url":"https://api.github.com/repos/Netflix/titus-control-plane/issues/events{/number}","events_url":"https://api.github.com/repos/Netflix/titus-control-plane/events","assignees_url":"https://api.github.com/repos/Netflix/titus-control-plane/assignees{/user}","branches_url":"https://api.github.com/repos/Netflix/titus-control-plane/branches{/branch}","tags_url":"https://api.github.com/repos/Netflix/titus-control-plane/tags","blobs_url":"https://api.github.com/repos/Netflix/titus-control-plane/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Netflix/titus-control-plane/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Netflix/titus-control-plane/git/refs{/sha}","trees_url":"https://api.github.com/repos/Netflix/titus-control-plane/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Netflix/titus-control-plane/statuses/{sha}","languages_url":"https://api.github.com/repos/Netflix/titus-control-plane/languages","stargazers_url":"https://api.github.com/repos/Netflix/titus-control-plane/stargazers","contributors_url":"https://api.github.com/repos/Netflix/titus-control-plane/contributors","subscribers_url":"https://api.github.com/repos/Netflix/titus-control-plane/subscribers","subscription_url":"https://api.github.com/repos/Netflix/titus-control-plane/subscription","commits_url":"https://api.github.com/repos/Netflix/titus-control-plane/commits{/sha}","git_commits_url":"https://api.github.com/repos/Netflix/titus-control-plane/git/commits{/sha}","comments_url":"https://api.github.com/repos/Netflix/titus-control-plane/comments{/number}","issue_comment_url":"https://api.github.com/repos/Netflix/titus-control-plane/issues/comments{/number}","contents_url":"https://api.github.com/repos/Netflix/titus-control-plane/contents/{+path}","compare_url":"https://api.github.com/repos/Netflix/titus-control-plane/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Netflix/titus-control-plane/merges","archive_url":"https://api.github.com/repos/Netflix/titus-control-plane/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Netflix/titus-control-plane/downloads","issues_url":"https://api.github.com/repos/Netflix/titus-control-plane/issues{/number}","pulls_url":"https://api.github.com/repos/Netflix/titus-control-plane/pulls{/number}","milestones_url":"https://api.github.com/repos/Netflix/titus-control-plane/milestones{/number}","notifications_url":"https://api.github.com/repos/Netflix/titus-control-plane/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Netflix/titus-control-plane/labels{/name}","releases_url":"https://api.github.com/repos/Netflix/titus-control-plane/releases{/id}","deployments_url":"https://api.github.com/repos/Netflix/titus-control-plane/deployments","created_at":"2017-10-17T22:20:55Z","updated_at":"2018-12-14T18:03:28Z","pushed_at":"2018-12-14T20:01:43Z","git_url":"git://github.com/Netflix/titus-control-plane.git","ssh_url":"git@github.com:Netflix/titus-control-plane.git","clone_url":"https://github.com/Netflix/titus-control-plane.git","svn_url":"https://github.com/Netflix/titus-control-plane","homepage":"http://netflix.github.io/titus/","size":6959,"stargazers_count":186,"watchers_count":186,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":27,"open_issues":2,"watchers":186,"default_branch":"master"}},"base":{"label":"Netflix:master","ref":"master","sha":"3424dcbb8c983be77ea976c385e722519317c652","user":{"login":"Netflix","id":913567,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxMzU2Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/913567?v=4","gravatar_id":"","url":"https://api.github.com/users/Netflix","html_url":"https://github.com/Netflix","followers_url":"https://api.github.com/users/Netflix/followers","following_url":"https://api.github.com/users/Netflix/following{/other_user}","gists_url":"https://api.github.com/users/Netflix/gists{/gist_id}","starred_url":"https://api.github.com/users/Netflix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netflix/subscriptions","organizations_url":"https://api.github.com/users/Netflix/orgs","repos_url":"https://api.github.com/users/Netflix/repos","events_url":"https://api.github.com/users/Netflix/events{/privacy}","received_events_url":"https://api.github.com/users/Netflix/received_events","type":"Organization","site_admin":false},"repo":{"id":107330274,"node_id":"MDEwOlJlcG9zaXRvcnkxMDczMzAyNzQ=","name":"titus-control-plane","full_name":"Netflix/titus-control-plane","private":false,"owner":{"login":"Netflix","id":913567,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxMzU2Nw==","avatar_url":"https://avatars3.githubusercontent.com/u/913567?v=4","gravatar_id":"","url":"https://api.github.com/users/Netflix","html_url":"https://github.com/Netflix","followers_url":"https://api.github.com/users/Netflix/followers","following_url":"https://api.github.com/users/Netflix/following{/other_user}","gists_url":"https://api.github.com/users/Netflix/gists{/gist_id}","starred_url":"https://api.github.com/users/Netflix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Netflix/subscriptions","organizations_url":"https://api.github.com/users/Netflix/orgs","repos_url":"https://api.github.com/users/Netflix/repos","events_url":"https://api.github.com/users/Netflix/events{/privacy}","received_events_url":"https://api.github.com/users/Netflix/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Netflix/titus-control-plane","description":"Titus is the Netflix Container Management Platform that manages containers and provides integrations to the infrastructure ecosystem.","fork":false,"url":"https://api.github.com/repos/Netflix/titus-control-plane","forks_url":"https://api.github.com/repos/Netflix/titus-control-plane/forks","keys_url":"https://api.github.com/repos/Netflix/titus-control-plane/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Netflix/titus-control-plane/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Netflix/titus-control-plane/teams","hooks_url":"https://api.github.com/repos/Netflix/titus-control-plane/hooks","issue_events_url":"https://api.github.com/repos/Netflix/titus-control-plane/issues/events{/number}","events_url":"https://api.github.com/repos/Netflix/titus-control-plane/events","assignees_url":"https://api.github.com/repos/Netflix/titus-control-plane/assignees{/user}","branches_url":"https://api.github.com/repos/Netflix/titus-control-plane/branches{/branch}","tags_url":"https://api.github.com/repos/Netflix/titus-control-plane/tags","blobs_url":"https://api.github.com/repos/Netflix/titus-control-plane/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Netflix/titus-control-plane/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Netflix/titus-control-plane/git/refs{/sha}","trees_url":"https://api.github.com/repos/Netflix/titus-control-plane/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Netflix/titus-control-plane/statuses/{sha}","languages_url":"https://api.github.com/repos/Netflix/titus-control-plane/languages","stargazers_url":"https://api.github.com/repos/Netflix/titus-control-plane/stargazers","contributors_url":"https://api.github.com/repos/Netflix/titus-control-plane/contributors","subscribers_url":"https://api.github.com/repos/Netflix/titus-control-plane/subscribers","subscription_url":"https://api.github.com/repos/Netflix/titus-control-plane/subscription","commits_url":"https://api.github.com/repos/Netflix/titus-control-plane/commits{/sha}","git_commits_url":"https://api.github.com/repos/Netflix/titus-control-plane/git/commits{/sha}","comments_url":"https://api.github.com/repos/Netflix/titus-control-plane/comments{/number}","issue_comment_url":"https://api.github.com/repos/Netflix/titus-control-plane/issues/comments{/number}","contents_url":"https://api.github.com/repos/Netflix/titus-control-plane/contents/{+path}","compare_url":"https://api.github.com/repos/Netflix/titus-control-plane/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Netflix/titus-control-plane/merges","archive_url":"https://api.github.com/repos/Netflix/titus-control-plane/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Netflix/titus-control-plane/downloads","issues_url":"https://api.github.com/repos/Netflix/titus-control-plane/issues{/number}","pulls_url":"https://api.github.com/repos/Netflix/titus-control-plane/pulls{/number}","milestones_url":"https://api.github.com/repos/Netflix/titus-control-plane/milestones{/number}","notifications_url":"https://api.github.com/repos/Netflix/titus-control-plane/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Netflix/titus-control-plane/labels{/name}","releases_url":"https://api.github.com/repos/Netflix/titus-control-plane/releases{/id}","deployments_url":"https://api.github.com/repos/Netflix/titus-control-plane/deployments","created_at":"2017-10-17T22:20:55Z","updated_at":"2018-12-14T18:03:28Z","pushed_at":"2018-12-14T20:01:43Z","git_url":"git://github.com/Netflix/titus-control-plane.git","ssh_url":"git@github.com:Netflix/titus-control-plane.git","clone_url":"https://github.com/Netflix/titus-control-plane.git","svn_url":"https://github.com/Netflix/titus-control-plane","homepage":"http://netflix.github.io/titus/","size":6959,"stargazers_count":186,"watchers_count":186,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":27,"open_issues":2,"watchers":186,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Netflix/titus-control-plane/pulls/449"},"html":{"href":"https://github.com/Netflix/titus-control-plane/pull/449"},"issue":{"href":"https://api.github.com/repos/Netflix/titus-control-plane/issues/449"},"comments":{"href":"https://api.github.com/repos/Netflix/titus-control-plane/issues/449/comments"},"review_comments":{"href":"https://api.github.com/repos/Netflix/titus-control-plane/pulls/449/comments"},"review_comment":{"href":"https://api.github.com/repos/Netflix/titus-control-plane/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Netflix/titus-control-plane/pulls/449/commits"},"statuses":{"href":"https://api.github.com/repos/Netflix/titus-control-plane/statuses/5e5312cf291fdcdad4e69df1081371c091644479"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":19,"deletions":4,"changed_files":2}}
{"actor":{"display_login":"fabiokung"}}