{"action":"opened","number":2,"pull_request":{"url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/pulls/2","id":44361156,"html_url":"https://github.com/allegro/kafka-offset-monitor-graphite/pull/2","diff_url":"https://github.com/allegro/kafka-offset-monitor-graphite/pull/2.diff","patch_url":"https://github.com/allegro/kafka-offset-monitor-graphite/pull/2.patch","issue_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/issues/2","number":2,"state":"open","locked":false,"title":"Cache expiry bug","user":{"login":"adamdubiel","id":5269406,"avatar_url":"https://avatars.githubusercontent.com/u/5269406?v=3","gravatar_id":"","url":"https://api.github.com/users/adamdubiel","html_url":"https://github.com/adamdubiel","followers_url":"https://api.github.com/users/adamdubiel/followers","following_url":"https://api.github.com/users/adamdubiel/following{/other_user}","gists_url":"https://api.github.com/users/adamdubiel/gists{/gist_id}","starred_url":"https://api.github.com/users/adamdubiel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamdubiel/subscriptions","organizations_url":"https://api.github.com/users/adamdubiel/orgs","repos_url":"https://api.github.com/users/adamdubiel/repos","events_url":"https://api.github.com/users/adamdubiel/events{/privacy}","received_events_url":"https://api.github.com/users/adamdubiel/received_events","type":"User","site_admin":false},"body":"Solving #1 and added e2e tests with mock graphite. To reproduce the bug, run test suite on unmodified `OffsetGraphiteReporter`. Changed unit of time for cache expiry to be able to test this code in some finite time. Time unit doesn't matter that much.","created_at":"2015-09-07T14:36:04Z","updated_at":"2015-09-07T14:36:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/pulls/2/commits","review_comments_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/pulls/2/comments","review_comment_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/issues/2/comments","statuses_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/statuses/357215796480616880d4d2b8a6bddac9564a6a82","head":{"label":"allegro:cache_refresh_bug","ref":"cache_refresh_bug","sha":"357215796480616880d4d2b8a6bddac9564a6a82","user":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"repo":{"id":38759509,"name":"kafka-offset-monitor-graphite","full_name":"allegro/kafka-offset-monitor-graphite","owner":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/allegro/kafka-offset-monitor-graphite","description":"Graphite reporter for Kafka Offset Monitor.","fork":false,"url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite","forks_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/forks","keys_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/teams","hooks_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/hooks","issue_events_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/issues/events{/number}","events_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/events","assignees_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/assignees{/user}","branches_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/branches{/branch}","tags_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/tags","blobs_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/git/refs{/sha}","trees_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/statuses/{sha}","languages_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/languages","stargazers_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/stargazers","contributors_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/contributors","subscribers_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/subscribers","subscription_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/subscription","commits_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/commits{/sha}","git_commits_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/git/commits{/sha}","comments_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/comments{/number}","issue_comment_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/issues/comments{/number}","contents_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/contents/{+path}","compare_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/merges","archive_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/downloads","issues_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/issues{/number}","pulls_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/pulls{/number}","milestones_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/milestones{/number}","notifications_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/labels{/name}","releases_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/releases{/id}","created_at":"2015-07-08T14:32:12Z","updated_at":"2015-08-18T12:28:48Z","pushed_at":"2015-09-07T14:35:43Z","git_url":"git://github.com/allegro/kafka-offset-monitor-graphite.git","ssh_url":"git@github.com:allegro/kafka-offset-monitor-graphite.git","clone_url":"https://github.com/allegro/kafka-offset-monitor-graphite.git","svn_url":"https://github.com/allegro/kafka-offset-monitor-graphite","homepage":null,"size":114,"stargazers_count":8,"watchers_count":8,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":8,"default_branch":"master"}},"base":{"label":"allegro:master","ref":"master","sha":"992d414a8a66ccf1ae981dee9264b0f7103e6818","user":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"repo":{"id":38759509,"name":"kafka-offset-monitor-graphite","full_name":"allegro/kafka-offset-monitor-graphite","owner":{"login":"allegro","id":562236,"avatar_url":"https://avatars.githubusercontent.com/u/562236?v=3","gravatar_id":"","url":"https://api.github.com/users/allegro","html_url":"https://github.com/allegro","followers_url":"https://api.github.com/users/allegro/followers","following_url":"https://api.github.com/users/allegro/following{/other_user}","gists_url":"https://api.github.com/users/allegro/gists{/gist_id}","starred_url":"https://api.github.com/users/allegro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allegro/subscriptions","organizations_url":"https://api.github.com/users/allegro/orgs","repos_url":"https://api.github.com/users/allegro/repos","events_url":"https://api.github.com/users/allegro/events{/privacy}","received_events_url":"https://api.github.com/users/allegro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/allegro/kafka-offset-monitor-graphite","description":"Graphite reporter for Kafka Offset Monitor.","fork":false,"url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite","forks_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/forks","keys_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/teams","hooks_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/hooks","issue_events_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/issues/events{/number}","events_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/events","assignees_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/assignees{/user}","branches_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/branches{/branch}","tags_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/tags","blobs_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/git/refs{/sha}","trees_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/statuses/{sha}","languages_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/languages","stargazers_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/stargazers","contributors_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/contributors","subscribers_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/subscribers","subscription_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/subscription","commits_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/commits{/sha}","git_commits_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/git/commits{/sha}","comments_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/comments{/number}","issue_comment_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/issues/comments{/number}","contents_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/contents/{+path}","compare_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/merges","archive_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/downloads","issues_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/issues{/number}","pulls_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/pulls{/number}","milestones_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/milestones{/number}","notifications_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/labels{/name}","releases_url":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/releases{/id}","created_at":"2015-07-08T14:32:12Z","updated_at":"2015-08-18T12:28:48Z","pushed_at":"2015-09-07T14:35:43Z","git_url":"git://github.com/allegro/kafka-offset-monitor-graphite.git","ssh_url":"git@github.com:allegro/kafka-offset-monitor-graphite.git","clone_url":"https://github.com/allegro/kafka-offset-monitor-graphite.git","svn_url":"https://github.com/allegro/kafka-offset-monitor-graphite","homepage":null,"size":114,"stargazers_count":8,"watchers_count":8,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/pulls/2"},"html":{"href":"https://github.com/allegro/kafka-offset-monitor-graphite/pull/2"},"issue":{"href":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/issues/2"},"comments":{"href":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/allegro/kafka-offset-monitor-graphite/statuses/357215796480616880d4d2b8a6bddac9564a6a82"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":151,"deletions":7,"changed_files":7}}