{"action":"created","comment":{"url":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments/169546276","pull_request_review_id":98087706,"id":169546276,"diff_hunk":"@@ -126,13 +149,23 @@ public int read(byte[] b, int off, int len) throws IOException {\n \n     int bytesLeft = len;\n     int currentOffset = off;\n+    CountingRetry retry = new CountingRetry(MAX_WORKERS_TO_RETRY);\n     while (bytesLeft > 0 && mPosition != mLength) {\n       updateStream();\n-      int bytesRead = mBlockInStream.read(b, currentOffset, bytesLeft);\n-      if (bytesRead > 0) {\n-        bytesLeft -= bytesRead;\n-        currentOffset += bytesRead;\n-        mPosition += bytesRead;\n+      try {","path":"core/client/fs/src/main/java/alluxio/client/file/FileInStream.java","position":88,"original_position":84,"commit_id":"d4dc05c1810a256c29f227e030b9475015a4d2c4","original_commit_id":"3214a09609e598209b47231e0a33627a3596db9f","user":{"login":"apc999","id":1413748,"avatar_url":"https://avatars0.githubusercontent.com/u/1413748?v=4","gravatar_id":"","url":"https://api.github.com/users/apc999","html_url":"https://github.com/apc999","followers_url":"https://api.github.com/users/apc999/followers","following_url":"https://api.github.com/users/apc999/following{/other_user}","gists_url":"https://api.github.com/users/apc999/gists{/gist_id}","starred_url":"https://api.github.com/users/apc999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apc999/subscriptions","organizations_url":"https://api.github.com/users/apc999/orgs","repos_url":"https://api.github.com/users/apc999/repos","events_url":"https://api.github.com/users/apc999/events{/privacy}","received_events_url":"https://api.github.com/users/apc999/received_events","type":"User","site_admin":false},"body":"SG @aaudiber . I saw that PR too. let's move the discussion there \r\n\r\n","created_at":"2018-02-21T06:44:09Z","updated_at":"2018-02-21T06:44:09Z","html_url":"https://github.com/Alluxio/alluxio/pull/6870#discussion_r169546276","pull_request_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/6870","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments/169546276"},"html":{"href":"https://github.com/Alluxio/alluxio/pull/6870#discussion_r169546276"},"pull_request":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/6870"}},"in_reply_to_id":169485046},"pull_request":{"url":"https://api.github.com/repos/Alluxio/alluxio/pulls/6870","id":168072283,"html_url":"https://github.com/Alluxio/alluxio/pull/6870","diff_url":"https://github.com/Alluxio/alluxio/pull/6870.diff","patch_url":"https://github.com/Alluxio/alluxio/pull/6870.patch","issue_url":"https://api.github.com/repos/Alluxio/alluxio/issues/6870","number":6870,"state":"open","locked":false,"title":"[ALLUXIO-3098] Make client read recover from lost worker","user":{"login":"bf8086","id":29311643,"avatar_url":"https://avatars0.githubusercontent.com/u/29311643?v=4","gravatar_id":"","url":"https://api.github.com/users/bf8086","html_url":"https://github.com/bf8086","followers_url":"https://api.github.com/users/bf8086/followers","following_url":"https://api.github.com/users/bf8086/following{/other_user}","gists_url":"https://api.github.com/users/bf8086/gists{/gist_id}","starred_url":"https://api.github.com/users/bf8086/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bf8086/subscriptions","organizations_url":"https://api.github.com/users/bf8086/orgs","repos_url":"https://api.github.com/users/bf8086/repos","events_url":"https://api.github.com/users/bf8086/events{/privacy}","received_events_url":"https://api.github.com/users/bf8086/received_events","type":"User","site_admin":false},"body":"https://alluxio.atlassian.net/browse/ALLUXIO-3098","created_at":"2018-02-08T20:00:16Z","updated_at":"2018-02-21T06:44:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c640b410c15d723cbba16dd51044ff79d31123b","assignee":{"login":"aaudiber","id":3455177,"avatar_url":"https://avatars3.githubusercontent.com/u/3455177?v=4","gravatar_id":"","url":"https://api.github.com/users/aaudiber","html_url":"https://github.com/aaudiber","followers_url":"https://api.github.com/users/aaudiber/followers","following_url":"https://api.github.com/users/aaudiber/following{/other_user}","gists_url":"https://api.github.com/users/aaudiber/gists{/gist_id}","starred_url":"https://api.github.com/users/aaudiber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaudiber/subscriptions","organizations_url":"https://api.github.com/users/aaudiber/orgs","repos_url":"https://api.github.com/users/aaudiber/repos","events_url":"https://api.github.com/users/aaudiber/events{/privacy}","received_events_url":"https://api.github.com/users/aaudiber/received_events","type":"User","site_admin":false},"assignees":[{"login":"aaudiber","id":3455177,"avatar_url":"https://avatars3.githubusercontent.com/u/3455177?v=4","gravatar_id":"","url":"https://api.github.com/users/aaudiber","html_url":"https://github.com/aaudiber","followers_url":"https://api.github.com/users/aaudiber/followers","following_url":"https://api.github.com/users/aaudiber/following{/other_user}","gists_url":"https://api.github.com/users/aaudiber/gists{/gist_id}","starred_url":"https://api.github.com/users/aaudiber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaudiber/subscriptions","organizations_url":"https://api.github.com/users/aaudiber/orgs","repos_url":"https://api.github.com/users/aaudiber/repos","events_url":"https://api.github.com/users/aaudiber/events{/privacy}","received_events_url":"https://api.github.com/users/aaudiber/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/6870/commits","review_comments_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/6870/comments","review_comment_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Alluxio/alluxio/issues/6870/comments","statuses_url":"https://api.github.com/repos/Alluxio/alluxio/statuses/d4dc05c1810a256c29f227e030b9475015a4d2c4","head":{"label":"bf8086:client-recover","ref":"client-recover","sha":"d4dc05c1810a256c29f227e030b9475015a4d2c4","user":{"login":"bf8086","id":29311643,"avatar_url":"https://avatars0.githubusercontent.com/u/29311643?v=4","gravatar_id":"","url":"https://api.github.com/users/bf8086","html_url":"https://github.com/bf8086","followers_url":"https://api.github.com/users/bf8086/followers","following_url":"https://api.github.com/users/bf8086/following{/other_user}","gists_url":"https://api.github.com/users/bf8086/gists{/gist_id}","starred_url":"https://api.github.com/users/bf8086/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bf8086/subscriptions","organizations_url":"https://api.github.com/users/bf8086/orgs","repos_url":"https://api.github.com/users/bf8086/repos","events_url":"https://api.github.com/users/bf8086/events{/privacy}","received_events_url":"https://api.github.com/users/bf8086/received_events","type":"User","site_admin":false},"repo":{"id":95190653,"name":"alluxio","full_name":"bf8086/alluxio","owner":{"login":"bf8086","id":29311643,"avatar_url":"https://avatars0.githubusercontent.com/u/29311643?v=4","gravatar_id":"","url":"https://api.github.com/users/bf8086","html_url":"https://github.com/bf8086","followers_url":"https://api.github.com/users/bf8086/followers","following_url":"https://api.github.com/users/bf8086/following{/other_user}","gists_url":"https://api.github.com/users/bf8086/gists{/gist_id}","starred_url":"https://api.github.com/users/bf8086/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bf8086/subscriptions","organizations_url":"https://api.github.com/users/bf8086/orgs","repos_url":"https://api.github.com/users/bf8086/repos","events_url":"https://api.github.com/users/bf8086/events{/privacy}","received_events_url":"https://api.github.com/users/bf8086/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bf8086/alluxio","description":"Alluxio, formerly Tachyon, Unify Data at Memory Speed","fork":true,"url":"https://api.github.com/repos/bf8086/alluxio","forks_url":"https://api.github.com/repos/bf8086/alluxio/forks","keys_url":"https://api.github.com/repos/bf8086/alluxio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bf8086/alluxio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bf8086/alluxio/teams","hooks_url":"https://api.github.com/repos/bf8086/alluxio/hooks","issue_events_url":"https://api.github.com/repos/bf8086/alluxio/issues/events{/number}","events_url":"https://api.github.com/repos/bf8086/alluxio/events","assignees_url":"https://api.github.com/repos/bf8086/alluxio/assignees{/user}","branches_url":"https://api.github.com/repos/bf8086/alluxio/branches{/branch}","tags_url":"https://api.github.com/repos/bf8086/alluxio/tags","blobs_url":"https://api.github.com/repos/bf8086/alluxio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bf8086/alluxio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bf8086/alluxio/git/refs{/sha}","trees_url":"https://api.github.com/repos/bf8086/alluxio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bf8086/alluxio/statuses/{sha}","languages_url":"https://api.github.com/repos/bf8086/alluxio/languages","stargazers_url":"https://api.github.com/repos/bf8086/alluxio/stargazers","contributors_url":"https://api.github.com/repos/bf8086/alluxio/contributors","subscribers_url":"https://api.github.com/repos/bf8086/alluxio/subscribers","subscription_url":"https://api.github.com/repos/bf8086/alluxio/subscription","commits_url":"https://api.github.com/repos/bf8086/alluxio/commits{/sha}","git_commits_url":"https://api.github.com/repos/bf8086/alluxio/git/commits{/sha}","comments_url":"https://api.github.com/repos/bf8086/alluxio/comments{/number}","issue_comment_url":"https://api.github.com/repos/bf8086/alluxio/issues/comments{/number}","contents_url":"https://api.github.com/repos/bf8086/alluxio/contents/{+path}","compare_url":"https://api.github.com/repos/bf8086/alluxio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bf8086/alluxio/merges","archive_url":"https://api.github.com/repos/bf8086/alluxio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bf8086/alluxio/downloads","issues_url":"https://api.github.com/repos/bf8086/alluxio/issues{/number}","pulls_url":"https://api.github.com/repos/bf8086/alluxio/pulls{/number}","milestones_url":"https://api.github.com/repos/bf8086/alluxio/milestones{/number}","notifications_url":"https://api.github.com/repos/bf8086/alluxio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bf8086/alluxio/labels{/name}","releases_url":"https://api.github.com/repos/bf8086/alluxio/releases{/id}","deployments_url":"https://api.github.com/repos/bf8086/alluxio/deployments","created_at":"2017-06-23T06:35:45Z","updated_at":"2017-06-23T06:35:52Z","pushed_at":"2018-02-21T01:25:45Z","git_url":"git://github.com/bf8086/alluxio.git","ssh_url":"git@github.com:bf8086/alluxio.git","clone_url":"https://github.com/bf8086/alluxio.git","svn_url":"https://github.com/bf8086/alluxio","homepage":"http://www.alluxio.org/","size":86101,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Alluxio:master","ref":"master","sha":"4cda6b8ba4f544aa3b9445f90a5cfc3ab880c41f","user":{"login":"Alluxio","id":16203694,"avatar_url":"https://avatars0.githubusercontent.com/u/16203694?v=4","gravatar_id":"","url":"https://api.github.com/users/Alluxio","html_url":"https://github.com/Alluxio","followers_url":"https://api.github.com/users/Alluxio/followers","following_url":"https://api.github.com/users/Alluxio/following{/other_user}","gists_url":"https://api.github.com/users/Alluxio/gists{/gist_id}","starred_url":"https://api.github.com/users/Alluxio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alluxio/subscriptions","organizations_url":"https://api.github.com/users/Alluxio/orgs","repos_url":"https://api.github.com/users/Alluxio/repos","events_url":"https://api.github.com/users/Alluxio/events{/privacy}","received_events_url":"https://api.github.com/users/Alluxio/received_events","type":"Organization","site_admin":false},"repo":{"id":7276954,"name":"alluxio","full_name":"Alluxio/alluxio","owner":{"login":"Alluxio","id":16203694,"avatar_url":"https://avatars0.githubusercontent.com/u/16203694?v=4","gravatar_id":"","url":"https://api.github.com/users/Alluxio","html_url":"https://github.com/Alluxio","followers_url":"https://api.github.com/users/Alluxio/followers","following_url":"https://api.github.com/users/Alluxio/following{/other_user}","gists_url":"https://api.github.com/users/Alluxio/gists{/gist_id}","starred_url":"https://api.github.com/users/Alluxio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alluxio/subscriptions","organizations_url":"https://api.github.com/users/Alluxio/orgs","repos_url":"https://api.github.com/users/Alluxio/repos","events_url":"https://api.github.com/users/Alluxio/events{/privacy}","received_events_url":"https://api.github.com/users/Alluxio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Alluxio/alluxio","description":"Alluxio, formerly Tachyon, Unify Data at Memory Speed","fork":false,"url":"https://api.github.com/repos/Alluxio/alluxio","forks_url":"https://api.github.com/repos/Alluxio/alluxio/forks","keys_url":"https://api.github.com/repos/Alluxio/alluxio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alluxio/alluxio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alluxio/alluxio/teams","hooks_url":"https://api.github.com/repos/Alluxio/alluxio/hooks","issue_events_url":"https://api.github.com/repos/Alluxio/alluxio/issues/events{/number}","events_url":"https://api.github.com/repos/Alluxio/alluxio/events","assignees_url":"https://api.github.com/repos/Alluxio/alluxio/assignees{/user}","branches_url":"https://api.github.com/repos/Alluxio/alluxio/branches{/branch}","tags_url":"https://api.github.com/repos/Alluxio/alluxio/tags","blobs_url":"https://api.github.com/repos/Alluxio/alluxio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alluxio/alluxio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alluxio/alluxio/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alluxio/alluxio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alluxio/alluxio/statuses/{sha}","languages_url":"https://api.github.com/repos/Alluxio/alluxio/languages","stargazers_url":"https://api.github.com/repos/Alluxio/alluxio/stargazers","contributors_url":"https://api.github.com/repos/Alluxio/alluxio/contributors","subscribers_url":"https://api.github.com/repos/Alluxio/alluxio/subscribers","subscription_url":"https://api.github.com/repos/Alluxio/alluxio/subscription","commits_url":"https://api.github.com/repos/Alluxio/alluxio/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alluxio/alluxio/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alluxio/alluxio/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alluxio/alluxio/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alluxio/alluxio/contents/{+path}","compare_url":"https://api.github.com/repos/Alluxio/alluxio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alluxio/alluxio/merges","archive_url":"https://api.github.com/repos/Alluxio/alluxio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alluxio/alluxio/downloads","issues_url":"https://api.github.com/repos/Alluxio/alluxio/issues{/number}","pulls_url":"https://api.github.com/repos/Alluxio/alluxio/pulls{/number}","milestones_url":"https://api.github.com/repos/Alluxio/alluxio/milestones{/number}","notifications_url":"https://api.github.com/repos/Alluxio/alluxio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alluxio/alluxio/labels{/name}","releases_url":"https://api.github.com/repos/Alluxio/alluxio/releases{/id}","deployments_url":"https://api.github.com/repos/Alluxio/alluxio/deployments","created_at":"2012-12-21T17:43:46Z","updated_at":"2018-02-18T21:28:26Z","pushed_at":"2018-02-21T04:03:34Z","git_url":"git://github.com/Alluxio/alluxio.git","ssh_url":"git@github.com:Alluxio/alluxio.git","clone_url":"https://github.com/Alluxio/alluxio.git","svn_url":"https://github.com/Alluxio/alluxio","homepage":"http://www.alluxio.org/","size":86089,"stargazers_count":3344,"watchers_count":3344,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1748,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1748,"open_issues":10,"watchers":3344,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/6870"},"html":{"href":"https://github.com/Alluxio/alluxio/pull/6870"},"issue":{"href":"https://api.github.com/repos/Alluxio/alluxio/issues/6870"},"comments":{"href":"https://api.github.com/repos/Alluxio/alluxio/issues/6870/comments"},"review_comments":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/6870/comments"},"review_comment":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/6870/commits"},"statuses":{"href":"https://api.github.com/repos/Alluxio/alluxio/statuses/d4dc05c1810a256c29f227e030b9475015a4d2c4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"apc999"}}