{"action":"created","comment":{"url":"https://api.github.com/repos/apache/reef/pulls/comments/59802709","id":59802709,"diff_hunk":"@@ -0,0 +1,50 @@\n+﻿// Licensed to the Apache Software Foundation (ASF) under one\n+// or more contributor license agreements.  See the NOTICE file\n+// distributed with this work for additional information\n+// regarding copyright ownership.  The ASF licenses this file\n+// to you under the Apache License, Version 2.0 (the\n+// \"License\"); you may not use this file except in compliance\n+// with the License.  You may obtain a copy of the License at\n+// \n+//   http://www.apache.org/licenses/LICENSE-2.0\n+// \n+// Unless required by applicable law or agreed to in writing,\n+// software distributed under the License is distributed on an\n+// \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+// KIND, either express or implied.  See the License for the\n+// specific language governing permissions and limitations\n+// under the License.\n+\n+using System;\n+using Org.Apache.REEF.Common.Events;\n+using Org.Apache.REEF.IO.PartitionedData;\n+using Org.Apache.REEF.Tang.Annotations;\n+using Org.Apache.REEF.Utilities.Diagnostics;\n+using Org.Apache.REEF.Utilities.Logging;\n+\n+namespace Org.Apache.REEF.IMRU.OnREEF.Driver\n+{\n+    internal class DataLoadingContext<T> : IObserver<IContextStart>\n+    {\n+        private static readonly Logger Logger = Logger.GetLogger(typeof(DataLoadingContext<T>));\n+\n+        [Inject]\n+        internal DataLoadingContext(IInputPartition<T> partition)\n+        {\n+            Logger.Log(Level.Info, \"Entered data loading context\");\n+        }\n+\n+        public void OnNext(IContextStart value)\n+        {","path":"lang/cs/Org.Apache.REEF.IMRU/OnREEF/Driver/DataLoadingContext.cs","position":38,"original_position":38,"commit_id":"c72f7a0554017d088002572ed3c0fae6d9a276ca","original_commit_id":"c72f7a0554017d088002572ed3c0fae6d9a276ca","user":{"login":"afchung","id":2817619,"avatar_url":"https://avatars.githubusercontent.com/u/2817619?v=3","gravatar_id":"","url":"https://api.github.com/users/afchung","html_url":"https://github.com/afchung","followers_url":"https://api.github.com/users/afchung/followers","following_url":"https://api.github.com/users/afchung/following{/other_user}","gists_url":"https://api.github.com/users/afchung/gists{/gist_id}","starred_url":"https://api.github.com/users/afchung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afchung/subscriptions","organizations_url":"https://api.github.com/users/afchung/orgs","repos_url":"https://api.github.com/users/afchung/repos","events_url":"https://api.github.com/users/afchung/events{/privacy}","received_events_url":"https://api.github.com/users/afchung/received_events","type":"User","site_admin":false},"body":"Sorry, I haven't really been following the entire conversation, but should this function do something?","created_at":"2016-04-14T22:27:41Z","updated_at":"2016-04-14T22:27:41Z","html_url":"https://github.com/apache/reef/pull/952#discussion_r59802709","pull_request_url":"https://api.github.com/repos/apache/reef/pulls/952","_links":{"self":{"href":"https://api.github.com/repos/apache/reef/pulls/comments/59802709"},"html":{"href":"https://github.com/apache/reef/pull/952#discussion_r59802709"},"pull_request":{"href":"https://api.github.com/repos/apache/reef/pulls/952"}}},"pull_request":{"url":"https://api.github.com/repos/apache/reef/pulls/952","id":66416961,"html_url":"https://github.com/apache/reef/pull/952","diff_url":"https://github.com/apache/reef/pull/952.diff","patch_url":"https://github.com/apache/reef/pull/952.patch","issue_url":"https://api.github.com/repos/apache/reef/issues/952","number":952,"state":"open","locked":false,"title":"[REEF-1224] IMRU Fault Tolerance - Separate Data downloading from Tas…","user":{"login":"dkm2110","id":151031,"avatar_url":"https://avatars.githubusercontent.com/u/151031?v=3","gravatar_id":"","url":"https://api.github.com/users/dkm2110","html_url":"https://github.com/dkm2110","followers_url":"https://api.github.com/users/dkm2110/followers","following_url":"https://api.github.com/users/dkm2110/following{/other_user}","gists_url":"https://api.github.com/users/dkm2110/gists{/gist_id}","starred_url":"https://api.github.com/users/dkm2110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkm2110/subscriptions","organizations_url":"https://api.github.com/users/dkm2110/orgs","repos_url":"https://api.github.com/users/dkm2110/repos","events_url":"https://api.github.com/users/dkm2110/events{/privacy}","received_events_url":"https://api.github.com/users/dkm2110/received_events","type":"User","site_admin":false},"body":"…k injection\r\n\r\nThis addressed the issue by\r\n  * forcing IDataPartition to be instantiated at root context and service level in mappers\r\n  * instantiating the Network service at task level to make fault tolerance easier\r\n\r\nJIRA:\r\n  [REEF-1224](https://issues.apache.org/jira/browse/REEF-1224)","created_at":"2016-04-14T01:29:22Z","updated_at":"2016-04-14T22:27:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa967e1c8765f4f60aae3012597e76281adb5af0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/reef/pulls/952/commits","review_comments_url":"https://api.github.com/repos/apache/reef/pulls/952/comments","review_comment_url":"https://api.github.com/repos/apache/reef/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/reef/issues/952/comments","statuses_url":"https://api.github.com/repos/apache/reef/statuses/c72f7a0554017d088002572ed3c0fae6d9a276ca","head":{"label":"dkm2110:REEF-1224","ref":"REEF-1224","sha":"c72f7a0554017d088002572ed3c0fae6d9a276ca","user":{"login":"dkm2110","id":151031,"avatar_url":"https://avatars.githubusercontent.com/u/151031?v=3","gravatar_id":"","url":"https://api.github.com/users/dkm2110","html_url":"https://github.com/dkm2110","followers_url":"https://api.github.com/users/dkm2110/followers","following_url":"https://api.github.com/users/dkm2110/following{/other_user}","gists_url":"https://api.github.com/users/dkm2110/gists{/gist_id}","starred_url":"https://api.github.com/users/dkm2110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkm2110/subscriptions","organizations_url":"https://api.github.com/users/dkm2110/orgs","repos_url":"https://api.github.com/users/dkm2110/repos","events_url":"https://api.github.com/users/dkm2110/events{/privacy}","received_events_url":"https://api.github.com/users/dkm2110/received_events","type":"User","site_admin":false},"repo":{"id":56189861,"name":"reef","full_name":"dkm2110/reef","owner":{"login":"dkm2110","id":151031,"avatar_url":"https://avatars.githubusercontent.com/u/151031?v=3","gravatar_id":"","url":"https://api.github.com/users/dkm2110","html_url":"https://github.com/dkm2110","followers_url":"https://api.github.com/users/dkm2110/followers","following_url":"https://api.github.com/users/dkm2110/following{/other_user}","gists_url":"https://api.github.com/users/dkm2110/gists{/gist_id}","starred_url":"https://api.github.com/users/dkm2110/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkm2110/subscriptions","organizations_url":"https://api.github.com/users/dkm2110/orgs","repos_url":"https://api.github.com/users/dkm2110/repos","events_url":"https://api.github.com/users/dkm2110/events{/privacy}","received_events_url":"https://api.github.com/users/dkm2110/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dkm2110/reef","description":"Mirror of Apache REEF","fork":true,"url":"https://api.github.com/repos/dkm2110/reef","forks_url":"https://api.github.com/repos/dkm2110/reef/forks","keys_url":"https://api.github.com/repos/dkm2110/reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dkm2110/reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dkm2110/reef/teams","hooks_url":"https://api.github.com/repos/dkm2110/reef/hooks","issue_events_url":"https://api.github.com/repos/dkm2110/reef/issues/events{/number}","events_url":"https://api.github.com/repos/dkm2110/reef/events","assignees_url":"https://api.github.com/repos/dkm2110/reef/assignees{/user}","branches_url":"https://api.github.com/repos/dkm2110/reef/branches{/branch}","tags_url":"https://api.github.com/repos/dkm2110/reef/tags","blobs_url":"https://api.github.com/repos/dkm2110/reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dkm2110/reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dkm2110/reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/dkm2110/reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dkm2110/reef/statuses/{sha}","languages_url":"https://api.github.com/repos/dkm2110/reef/languages","stargazers_url":"https://api.github.com/repos/dkm2110/reef/stargazers","contributors_url":"https://api.github.com/repos/dkm2110/reef/contributors","subscribers_url":"https://api.github.com/repos/dkm2110/reef/subscribers","subscription_url":"https://api.github.com/repos/dkm2110/reef/subscription","commits_url":"https://api.github.com/repos/dkm2110/reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/dkm2110/reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/dkm2110/reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/dkm2110/reef/issues/comments{/number}","contents_url":"https://api.github.com/repos/dkm2110/reef/contents/{+path}","compare_url":"https://api.github.com/repos/dkm2110/reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dkm2110/reef/merges","archive_url":"https://api.github.com/repos/dkm2110/reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dkm2110/reef/downloads","issues_url":"https://api.github.com/repos/dkm2110/reef/issues{/number}","pulls_url":"https://api.github.com/repos/dkm2110/reef/pulls{/number}","milestones_url":"https://api.github.com/repos/dkm2110/reef/milestones{/number}","notifications_url":"https://api.github.com/repos/dkm2110/reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dkm2110/reef/labels{/name}","releases_url":"https://api.github.com/repos/dkm2110/reef/releases{/id}","deployments_url":"https://api.github.com/repos/dkm2110/reef/deployments","created_at":"2016-04-13T22:19:50Z","updated_at":"2016-04-13T22:19:57Z","pushed_at":"2016-04-14T01:19:34Z","git_url":"git://github.com/dkm2110/reef.git","ssh_url":"git@github.com:dkm2110/reef.git","clone_url":"https://github.com/dkm2110/reef.git","svn_url":"https://github.com/dkm2110/reef","homepage":"","size":34873,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"72dc29147d795ff09e2bfde367008d1ebc925917","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":25623941,"name":"reef","full_name":"apache/reef","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/reef","description":"Mirror of Apache REEF","fork":false,"url":"https://api.github.com/repos/apache/reef","forks_url":"https://api.github.com/repos/apache/reef/forks","keys_url":"https://api.github.com/repos/apache/reef/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/reef/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/reef/teams","hooks_url":"https://api.github.com/repos/apache/reef/hooks","issue_events_url":"https://api.github.com/repos/apache/reef/issues/events{/number}","events_url":"https://api.github.com/repos/apache/reef/events","assignees_url":"https://api.github.com/repos/apache/reef/assignees{/user}","branches_url":"https://api.github.com/repos/apache/reef/branches{/branch}","tags_url":"https://api.github.com/repos/apache/reef/tags","blobs_url":"https://api.github.com/repos/apache/reef/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/reef/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/reef/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/reef/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/reef/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/reef/languages","stargazers_url":"https://api.github.com/repos/apache/reef/stargazers","contributors_url":"https://api.github.com/repos/apache/reef/contributors","subscribers_url":"https://api.github.com/repos/apache/reef/subscribers","subscription_url":"https://api.github.com/repos/apache/reef/subscription","commits_url":"https://api.github.com/repos/apache/reef/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/reef/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/reef/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/reef/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/reef/contents/{+path}","compare_url":"https://api.github.com/repos/apache/reef/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/reef/merges","archive_url":"https://api.github.com/repos/apache/reef/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/reef/downloads","issues_url":"https://api.github.com/repos/apache/reef/issues{/number}","pulls_url":"https://api.github.com/repos/apache/reef/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/reef/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/reef/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/reef/labels{/name}","releases_url":"https://api.github.com/repos/apache/reef/releases{/id}","deployments_url":"https://api.github.com/repos/apache/reef/deployments","created_at":"2014-10-23T07:00:10Z","updated_at":"2016-04-05T13:46:50Z","pushed_at":"2016-04-14T22:26:12Z","git_url":"git://github.com/apache/reef.git","ssh_url":"git@github.com:apache/reef.git","clone_url":"https://github.com/apache/reef.git","svn_url":"https://github.com/apache/reef","homepage":"","size":47686,"stargazers_count":46,"watchers_count":46,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":54,"mirror_url":"git://git.apache.org/reef.git","open_issues_count":7,"forks":54,"open_issues":7,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/reef/pulls/952"},"html":{"href":"https://github.com/apache/reef/pull/952"},"issue":{"href":"https://api.github.com/repos/apache/reef/issues/952"},"comments":{"href":"https://api.github.com/repos/apache/reef/issues/952/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/reef/pulls/952/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/reef/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/reef/pulls/952/commits"},"statuses":{"href":"https://api.github.com/repos/apache/reef/statuses/c72f7a0554017d088002572ed3c0fae6d9a276ca"}}}}