{"action":"created","comment":{"url":"https://api.github.com/repos/kaltura/media-server/pulls/comments/27036423","id":27036423,"diff_hunk":"@@ -42,11 +44,12 @@ public Endpoint addService(IWebService service)\n \t}\n \n \tpublic void shutdown() {\n-\t\tSet<String> keys = services.keySet();\n-\t\tfor(String key : keys)\n+\t\tIterator<Map.Entry<String, Endpoint>> serviceIter = services.entrySet().iterator();","path":"KalturaMediaServer/src/com/kaltura/media/server/api/KalturaWebServicesServer.java","position":15,"original_position":15,"commit_id":"e60fb7413c245c2278490634c08d80f1e797f876","original_commit_id":"e60fb7413c245c2278490634c08d80f1e797f876","user":{"login":"EladCohenKaltura","id":10695719,"avatar_url":"https://avatars.githubusercontent.com/u/10695719?v=3","gravatar_id":"","url":"https://api.github.com/users/EladCohenKaltura","html_url":"https://github.com/EladCohenKaltura","followers_url":"https://api.github.com/users/EladCohenKaltura/followers","following_url":"https://api.github.com/users/EladCohenKaltura/following{/other_user}","gists_url":"https://api.github.com/users/EladCohenKaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/EladCohenKaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EladCohenKaltura/subscriptions","organizations_url":"https://api.github.com/users/EladCohenKaltura/orgs","repos_url":"https://api.github.com/users/EladCohenKaltura/repos","events_url":"https://api.github.com/users/EladCohenKaltura/events{/privacy}","received_events_url":"https://api.github.com/users/EladCohenKaltura/received_events","type":"User","site_admin":false},"body":"In the next section we can see the services.remove(key); which removes the entry , did not get what you ment","created_at":"2015-03-24T15:06:24Z","updated_at":"2015-03-24T15:06:24Z","html_url":"https://github.com/kaltura/media-server/pull/125#discussion_r27036423","pull_request_url":"https://api.github.com/repos/kaltura/media-server/pulls/125","_links":{"self":{"href":"https://api.github.com/repos/kaltura/media-server/pulls/comments/27036423"},"html":{"href":"https://github.com/kaltura/media-server/pull/125#discussion_r27036423"},"pull_request":{"href":"https://api.github.com/repos/kaltura/media-server/pulls/125"}}},"pull_request":{"url":"https://api.github.com/repos/kaltura/media-server/pulls/125","id":31706547,"html_url":"https://github.com/kaltura/media-server/pull/125","diff_url":"https://github.com/kaltura/media-server/pull/125.diff","patch_url":"https://github.com/kaltura/media-server/pull/125.patch","issue_url":"https://api.github.com/repos/kaltura/media-server/issues/125","number":125,"state":"open","locked":false,"title":"Concurrent Modification Exception PLAT-2666","user":{"login":"EladCohenKaltura","id":10695719,"avatar_url":"https://avatars.githubusercontent.com/u/10695719?v=3","gravatar_id":"","url":"https://api.github.com/users/EladCohenKaltura","html_url":"https://github.com/EladCohenKaltura","followers_url":"https://api.github.com/users/EladCohenKaltura/followers","following_url":"https://api.github.com/users/EladCohenKaltura/following{/other_user}","gists_url":"https://api.github.com/users/EladCohenKaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/EladCohenKaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EladCohenKaltura/subscriptions","organizations_url":"https://api.github.com/users/EladCohenKaltura/orgs","repos_url":"https://api.github.com/users/EladCohenKaltura/repos","events_url":"https://api.github.com/users/EladCohenKaltura/events{/privacy}","received_events_url":"https://api.github.com/users/EladCohenKaltura/received_events","type":"User","site_admin":false},"body":"PLAT-2666\r\nIterating over collections while deleting entries from them\r\nCreated Concurrent Modification Exception\r\nUsing iterator to avoid exception","created_at":"2015-03-23T05:52:41Z","updated_at":"2015-03-24T15:06:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4ecb6150f103e2d919c23fbf48e8b45eed2740e","assignee":{"login":"sabanas","id":10358543,"avatar_url":"https://avatars.githubusercontent.com/u/10358543?v=3","gravatar_id":"","url":"https://api.github.com/users/sabanas","html_url":"https://github.com/sabanas","followers_url":"https://api.github.com/users/sabanas/followers","following_url":"https://api.github.com/users/sabanas/following{/other_user}","gists_url":"https://api.github.com/users/sabanas/gists{/gist_id}","starred_url":"https://api.github.com/users/sabanas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sabanas/subscriptions","organizations_url":"https://api.github.com/users/sabanas/orgs","repos_url":"https://api.github.com/users/sabanas/repos","events_url":"https://api.github.com/users/sabanas/events{/privacy}","received_events_url":"https://api.github.com/users/sabanas/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/kaltura/media-server/pulls/125/commits","review_comments_url":"https://api.github.com/repos/kaltura/media-server/pulls/125/comments","review_comment_url":"https://api.github.com/repos/kaltura/media-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaltura/media-server/issues/125/comments","statuses_url":"https://api.github.com/repos/kaltura/media-server/statuses/e60fb7413c245c2278490634c08d80f1e797f876","head":{"label":"kaltura:3.0.9-PLAT-2666","ref":"3.0.9-PLAT-2666","sha":"e60fb7413c245c2278490634c08d80f1e797f876","user":{"login":"kaltura","id":319096,"avatar_url":"https://avatars.githubusercontent.com/u/319096?v=3","gravatar_id":"","url":"https://api.github.com/users/kaltura","html_url":"https://github.com/kaltura","followers_url":"https://api.github.com/users/kaltura/followers","following_url":"https://api.github.com/users/kaltura/following{/other_user}","gists_url":"https://api.github.com/users/kaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/kaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaltura/subscriptions","organizations_url":"https://api.github.com/users/kaltura/orgs","repos_url":"https://api.github.com/users/kaltura/repos","events_url":"https://api.github.com/users/kaltura/events{/privacy}","received_events_url":"https://api.github.com/users/kaltura/received_events","type":"Organization","site_admin":false},"repo":{"id":13721557,"name":"media-server","full_name":"kaltura/media-server","owner":{"login":"kaltura","id":319096,"avatar_url":"https://avatars.githubusercontent.com/u/319096?v=3","gravatar_id":"","url":"https://api.github.com/users/kaltura","html_url":"https://github.com/kaltura","followers_url":"https://api.github.com/users/kaltura/followers","following_url":"https://api.github.com/users/kaltura/following{/other_user}","gists_url":"https://api.github.com/users/kaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/kaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaltura/subscriptions","organizations_url":"https://api.github.com/users/kaltura/orgs","repos_url":"https://api.github.com/users/kaltura/repos","events_url":"https://api.github.com/users/kaltura/events{/privacy}","received_events_url":"https://api.github.com/users/kaltura/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaltura/media-server","description":"","fork":false,"url":"https://api.github.com/repos/kaltura/media-server","forks_url":"https://api.github.com/repos/kaltura/media-server/forks","keys_url":"https://api.github.com/repos/kaltura/media-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaltura/media-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaltura/media-server/teams","hooks_url":"https://api.github.com/repos/kaltura/media-server/hooks","issue_events_url":"https://api.github.com/repos/kaltura/media-server/issues/events{/number}","events_url":"https://api.github.com/repos/kaltura/media-server/events","assignees_url":"https://api.github.com/repos/kaltura/media-server/assignees{/user}","branches_url":"https://api.github.com/repos/kaltura/media-server/branches{/branch}","tags_url":"https://api.github.com/repos/kaltura/media-server/tags","blobs_url":"https://api.github.com/repos/kaltura/media-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaltura/media-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaltura/media-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaltura/media-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaltura/media-server/statuses/{sha}","languages_url":"https://api.github.com/repos/kaltura/media-server/languages","stargazers_url":"https://api.github.com/repos/kaltura/media-server/stargazers","contributors_url":"https://api.github.com/repos/kaltura/media-server/contributors","subscribers_url":"https://api.github.com/repos/kaltura/media-server/subscribers","subscription_url":"https://api.github.com/repos/kaltura/media-server/subscription","commits_url":"https://api.github.com/repos/kaltura/media-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaltura/media-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaltura/media-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaltura/media-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaltura/media-server/contents/{+path}","compare_url":"https://api.github.com/repos/kaltura/media-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaltura/media-server/merges","archive_url":"https://api.github.com/repos/kaltura/media-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaltura/media-server/downloads","issues_url":"https://api.github.com/repos/kaltura/media-server/issues{/number}","pulls_url":"https://api.github.com/repos/kaltura/media-server/pulls{/number}","milestones_url":"https://api.github.com/repos/kaltura/media-server/milestones{/number}","notifications_url":"https://api.github.com/repos/kaltura/media-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaltura/media-server/labels{/name}","releases_url":"https://api.github.com/repos/kaltura/media-server/releases{/id}","created_at":"2013-10-20T15:41:57Z","updated_at":"2015-03-19T10:19:29Z","pushed_at":"2015-03-23T08:37:23Z","git_url":"git://github.com/kaltura/media-server.git","ssh_url":"git@github.com:kaltura/media-server.git","clone_url":"https://github.com/kaltura/media-server.git","svn_url":"https://github.com/kaltura/media-server","homepage":null,"size":5265,"stargazers_count":9,"watchers_count":9,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":9,"default_branch":"3.2.0"}},"base":{"label":"kaltura:3.0.9","ref":"3.0.9","sha":"50595baae4769794e4eb063249a1cd83cafda095","user":{"login":"kaltura","id":319096,"avatar_url":"https://avatars.githubusercontent.com/u/319096?v=3","gravatar_id":"","url":"https://api.github.com/users/kaltura","html_url":"https://github.com/kaltura","followers_url":"https://api.github.com/users/kaltura/followers","following_url":"https://api.github.com/users/kaltura/following{/other_user}","gists_url":"https://api.github.com/users/kaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/kaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaltura/subscriptions","organizations_url":"https://api.github.com/users/kaltura/orgs","repos_url":"https://api.github.com/users/kaltura/repos","events_url":"https://api.github.com/users/kaltura/events{/privacy}","received_events_url":"https://api.github.com/users/kaltura/received_events","type":"Organization","site_admin":false},"repo":{"id":13721557,"name":"media-server","full_name":"kaltura/media-server","owner":{"login":"kaltura","id":319096,"avatar_url":"https://avatars.githubusercontent.com/u/319096?v=3","gravatar_id":"","url":"https://api.github.com/users/kaltura","html_url":"https://github.com/kaltura","followers_url":"https://api.github.com/users/kaltura/followers","following_url":"https://api.github.com/users/kaltura/following{/other_user}","gists_url":"https://api.github.com/users/kaltura/gists{/gist_id}","starred_url":"https://api.github.com/users/kaltura/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaltura/subscriptions","organizations_url":"https://api.github.com/users/kaltura/orgs","repos_url":"https://api.github.com/users/kaltura/repos","events_url":"https://api.github.com/users/kaltura/events{/privacy}","received_events_url":"https://api.github.com/users/kaltura/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaltura/media-server","description":"","fork":false,"url":"https://api.github.com/repos/kaltura/media-server","forks_url":"https://api.github.com/repos/kaltura/media-server/forks","keys_url":"https://api.github.com/repos/kaltura/media-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaltura/media-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaltura/media-server/teams","hooks_url":"https://api.github.com/repos/kaltura/media-server/hooks","issue_events_url":"https://api.github.com/repos/kaltura/media-server/issues/events{/number}","events_url":"https://api.github.com/repos/kaltura/media-server/events","assignees_url":"https://api.github.com/repos/kaltura/media-server/assignees{/user}","branches_url":"https://api.github.com/repos/kaltura/media-server/branches{/branch}","tags_url":"https://api.github.com/repos/kaltura/media-server/tags","blobs_url":"https://api.github.com/repos/kaltura/media-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaltura/media-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaltura/media-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaltura/media-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaltura/media-server/statuses/{sha}","languages_url":"https://api.github.com/repos/kaltura/media-server/languages","stargazers_url":"https://api.github.com/repos/kaltura/media-server/stargazers","contributors_url":"https://api.github.com/repos/kaltura/media-server/contributors","subscribers_url":"https://api.github.com/repos/kaltura/media-server/subscribers","subscription_url":"https://api.github.com/repos/kaltura/media-server/subscription","commits_url":"https://api.github.com/repos/kaltura/media-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaltura/media-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaltura/media-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaltura/media-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaltura/media-server/contents/{+path}","compare_url":"https://api.github.com/repos/kaltura/media-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaltura/media-server/merges","archive_url":"https://api.github.com/repos/kaltura/media-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaltura/media-server/downloads","issues_url":"https://api.github.com/repos/kaltura/media-server/issues{/number}","pulls_url":"https://api.github.com/repos/kaltura/media-server/pulls{/number}","milestones_url":"https://api.github.com/repos/kaltura/media-server/milestones{/number}","notifications_url":"https://api.github.com/repos/kaltura/media-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaltura/media-server/labels{/name}","releases_url":"https://api.github.com/repos/kaltura/media-server/releases{/id}","created_at":"2013-10-20T15:41:57Z","updated_at":"2015-03-19T10:19:29Z","pushed_at":"2015-03-23T08:37:23Z","git_url":"git://github.com/kaltura/media-server.git","ssh_url":"git@github.com:kaltura/media-server.git","clone_url":"https://github.com/kaltura/media-server.git","svn_url":"https://github.com/kaltura/media-server","homepage":null,"size":5265,"stargazers_count":9,"watchers_count":9,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":9,"default_branch":"3.2.0"}},"_links":{"self":{"href":"https://api.github.com/repos/kaltura/media-server/pulls/125"},"html":{"href":"https://github.com/kaltura/media-server/pull/125"},"issue":{"href":"https://api.github.com/repos/kaltura/media-server/issues/125"},"comments":{"href":"https://api.github.com/repos/kaltura/media-server/issues/125/comments"},"review_comments":{"href":"https://api.github.com/repos/kaltura/media-server/pulls/125/comments"},"review_comment":{"href":"https://api.github.com/repos/kaltura/media-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaltura/media-server/pulls/125/commits"},"statuses":{"href":"https://api.github.com/repos/kaltura/media-server/statuses/e60fb7413c245c2278490634c08d80f1e797f876"}}}}