{"action":"closed","number":28,"pull_request":{"url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/pulls/28","id":79114263,"html_url":"https://github.com/Sage-Bionetworks/Bridge-Exporter/pull/28","diff_url":"https://github.com/Sage-Bionetworks/Bridge-Exporter/pull/28.diff","patch_url":"https://github.com/Sage-Bionetworks/Bridge-Exporter/pull/28.patch","issue_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/issues/28","number":28,"state":"closed","locked":false,"title":"Check Synapse writable before export job","user":{"login":"DwayneJengSage","id":9541190,"avatar_url":"https://avatars.githubusercontent.com/u/9541190?v=3","gravatar_id":"","url":"https://api.github.com/users/DwayneJengSage","html_url":"https://github.com/DwayneJengSage","followers_url":"https://api.github.com/users/DwayneJengSage/followers","following_url":"https://api.github.com/users/DwayneJengSage/following{/other_user}","gists_url":"https://api.github.com/users/DwayneJengSage/gists{/gist_id}","starred_url":"https://api.github.com/users/DwayneJengSage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DwayneJengSage/subscriptions","organizations_url":"https://api.github.com/users/DwayneJengSage/orgs","repos_url":"https://api.github.com/users/DwayneJengSage/repos","events_url":"https://api.github.com/users/DwayneJengSage/events{/privacy}","received_events_url":"https://api.github.com/users/DwayneJengSage/received_events","type":"User","site_admin":false},"body":"This is the code change for the first half of https://sagebionetworks.jira.com/browse/BRIDGE-1401\r\n\r\nThis change adds a check for Synapse status at the start of each Export run. If Synapse is not writable, we throw a SynapseUnavailableException, which allows SQS to re-cycle the request and try later (currently configured at 2 hours; 2 hours chosen because in some unusual cases, Bridge Exporter may take up to ~1.5 hours to complete).\r\n\r\nTesting done:\r\n* mvn verify (unit tests, findbugs, jacoco test coverage)\r\n* manual test against Synapse staging in read-only\r\n* manual test for normal case","created_at":"2016-07-27T23:20:00Z","updated_at":"2016-08-09T18:33:51Z","closed_at":"2016-08-09T18:33:51Z","merged_at":"2016-08-09T18:33:51Z","merge_commit_sha":"52c175da4189fcec2d23aa817f150fbc8d40e981","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/pulls/28/commits","review_comments_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/pulls/28/comments","review_comment_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/issues/28/comments","statuses_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/statuses/0eaa46477c6a81892d04b3b400ee2fc9059f88ad","head":{"label":"DwayneJengSage:dev-djeng2","ref":"dev-djeng2","sha":"0eaa46477c6a81892d04b3b400ee2fc9059f88ad","user":{"login":"DwayneJengSage","id":9541190,"avatar_url":"https://avatars.githubusercontent.com/u/9541190?v=3","gravatar_id":"","url":"https://api.github.com/users/DwayneJengSage","html_url":"https://github.com/DwayneJengSage","followers_url":"https://api.github.com/users/DwayneJengSage/followers","following_url":"https://api.github.com/users/DwayneJengSage/following{/other_user}","gists_url":"https://api.github.com/users/DwayneJengSage/gists{/gist_id}","starred_url":"https://api.github.com/users/DwayneJengSage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DwayneJengSage/subscriptions","organizations_url":"https://api.github.com/users/DwayneJengSage/orgs","repos_url":"https://api.github.com/users/DwayneJengSage/repos","events_url":"https://api.github.com/users/DwayneJengSage/events{/privacy}","received_events_url":"https://api.github.com/users/DwayneJengSage/received_events","type":"User","site_admin":false},"repo":{"id":33237972,"name":"Bridge-Exporter-1","full_name":"DwayneJengSage/Bridge-Exporter-1","owner":{"login":"DwayneJengSage","id":9541190,"avatar_url":"https://avatars.githubusercontent.com/u/9541190?v=3","gravatar_id":"","url":"https://api.github.com/users/DwayneJengSage","html_url":"https://github.com/DwayneJengSage","followers_url":"https://api.github.com/users/DwayneJengSage/followers","following_url":"https://api.github.com/users/DwayneJengSage/following{/other_user}","gists_url":"https://api.github.com/users/DwayneJengSage/gists{/gist_id}","starred_url":"https://api.github.com/users/DwayneJengSage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DwayneJengSage/subscriptions","organizations_url":"https://api.github.com/users/DwayneJengSage/orgs","repos_url":"https://api.github.com/users/DwayneJengSage/repos","events_url":"https://api.github.com/users/DwayneJengSage/events{/privacy}","received_events_url":"https://api.github.com/users/DwayneJengSage/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DwayneJengSage/Bridge-Exporter-1","description":"Worker app to aggregate Bridge uploads, survey answers, and health data daily, and export them to Synapse","fork":true,"url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1","forks_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/forks","keys_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/teams","hooks_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/hooks","issue_events_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/issues/events{/number}","events_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/events","assignees_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/assignees{/user}","branches_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/branches{/branch}","tags_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/tags","blobs_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/statuses/{sha}","languages_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/languages","stargazers_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/stargazers","contributors_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/contributors","subscribers_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/subscribers","subscription_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/subscription","commits_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/contents/{+path}","compare_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/merges","archive_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/downloads","issues_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/issues{/number}","pulls_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/pulls{/number}","milestones_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/milestones{/number}","notifications_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/labels{/name}","releases_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/releases{/id}","deployments_url":"https://api.github.com/repos/DwayneJengSage/Bridge-Exporter-1/deployments","created_at":"2015-04-01T09:15:05Z","updated_at":"2016-01-14T08:52:34Z","pushed_at":"2016-07-27T23:16:50Z","git_url":"git://github.com/DwayneJengSage/Bridge-Exporter-1.git","ssh_url":"git@github.com:DwayneJengSage/Bridge-Exporter-1.git","clone_url":"https://github.com/DwayneJengSage/Bridge-Exporter-1.git","svn_url":"https://github.com/DwayneJengSage/Bridge-Exporter-1","homepage":null,"size":512,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"Sage-Bionetworks:develop","ref":"develop","sha":"589cd444a4078d13455156fbb3e29582b7149b77","user":{"login":"Sage-Bionetworks","id":1250897,"avatar_url":"https://avatars.githubusercontent.com/u/1250897?v=3","gravatar_id":"","url":"https://api.github.com/users/Sage-Bionetworks","html_url":"https://github.com/Sage-Bionetworks","followers_url":"https://api.github.com/users/Sage-Bionetworks/followers","following_url":"https://api.github.com/users/Sage-Bionetworks/following{/other_user}","gists_url":"https://api.github.com/users/Sage-Bionetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Sage-Bionetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sage-Bionetworks/subscriptions","organizations_url":"https://api.github.com/users/Sage-Bionetworks/orgs","repos_url":"https://api.github.com/users/Sage-Bionetworks/repos","events_url":"https://api.github.com/users/Sage-Bionetworks/events{/privacy}","received_events_url":"https://api.github.com/users/Sage-Bionetworks/received_events","type":"Organization","site_admin":false},"repo":{"id":27888108,"name":"Bridge-Exporter","full_name":"Sage-Bionetworks/Bridge-Exporter","owner":{"login":"Sage-Bionetworks","id":1250897,"avatar_url":"https://avatars.githubusercontent.com/u/1250897?v=3","gravatar_id":"","url":"https://api.github.com/users/Sage-Bionetworks","html_url":"https://github.com/Sage-Bionetworks","followers_url":"https://api.github.com/users/Sage-Bionetworks/followers","following_url":"https://api.github.com/users/Sage-Bionetworks/following{/other_user}","gists_url":"https://api.github.com/users/Sage-Bionetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Sage-Bionetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sage-Bionetworks/subscriptions","organizations_url":"https://api.github.com/users/Sage-Bionetworks/orgs","repos_url":"https://api.github.com/users/Sage-Bionetworks/repos","events_url":"https://api.github.com/users/Sage-Bionetworks/events{/privacy}","received_events_url":"https://api.github.com/users/Sage-Bionetworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sage-Bionetworks/Bridge-Exporter","description":"Worker app to aggregate Bridge uploads, survey answers, and health data daily, and export them to Synapse","fork":false,"url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter","forks_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/forks","keys_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/teams","hooks_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/hooks","issue_events_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/issues/events{/number}","events_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/events","assignees_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/assignees{/user}","branches_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/branches{/branch}","tags_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/tags","blobs_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/statuses/{sha}","languages_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/languages","stargazers_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/stargazers","contributors_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/contributors","subscribers_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/subscribers","subscription_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/subscription","commits_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/contents/{+path}","compare_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/merges","archive_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/downloads","issues_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/issues{/number}","pulls_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/pulls{/number}","milestones_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/milestones{/number}","notifications_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/labels{/name}","releases_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/releases{/id}","deployments_url":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/deployments","created_at":"2014-12-11T19:35:13Z","updated_at":"2016-01-14T19:02:52Z","pushed_at":"2016-08-09T18:33:51Z","git_url":"git://github.com/Sage-Bionetworks/Bridge-Exporter.git","ssh_url":"git@github.com:Sage-Bionetworks/Bridge-Exporter.git","clone_url":"https://github.com/Sage-Bionetworks/Bridge-Exporter.git","svn_url":"https://github.com/Sage-Bionetworks/Bridge-Exporter","homepage":null,"size":506,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/pulls/28"},"html":{"href":"https://github.com/Sage-Bionetworks/Bridge-Exporter/pull/28"},"issue":{"href":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/issues/28"},"comments":{"href":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/Sage-Bionetworks/Bridge-Exporter/statuses/0eaa46477c6a81892d04b3b400ee2fc9059f88ad"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"DwayneJengSage","id":9541190,"avatar_url":"https://avatars.githubusercontent.com/u/9541190?v=3","gravatar_id":"","url":"https://api.github.com/users/DwayneJengSage","html_url":"https://github.com/DwayneJengSage","followers_url":"https://api.github.com/users/DwayneJengSage/followers","following_url":"https://api.github.com/users/DwayneJengSage/following{/other_user}","gists_url":"https://api.github.com/users/DwayneJengSage/gists{/gist_id}","starred_url":"https://api.github.com/users/DwayneJengSage/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DwayneJengSage/subscriptions","organizations_url":"https://api.github.com/users/DwayneJengSage/orgs","repos_url":"https://api.github.com/users/DwayneJengSage/repos","events_url":"https://api.github.com/users/DwayneJengSage/events{/privacy}","received_events_url":"https://api.github.com/users/DwayneJengSage/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":155,"deletions":9,"changed_files":6}}
{"actor":{"display_login":"DwayneJengSage"}}