{"action":"created","comment":{"url":"https://api.github.com/repos/rybalkinsd/atom/pulls/comments/89693671","pull_request_review_id":10233426,"id":89693671,"diff_hunk":"@@ -58,7 +57,12 @@ public static void main(@NotNull String[] args) throws Exception {\n   public void run() {\n     startApi();\n     while (true) {\n-      ApplicationContext.instance().get(MessageSystem.class).execForService(this);\n+      try {\n+        ApplicationContext.instance().get(MessageSystem.class).execOneForService(this, 100);","path":"zagar_server/src/main/java/accountserver/AccountServer.java","position":14,"original_position":14,"commit_id":"ddaf08f98840b0948c5f353647ab48eee188413b","original_commit_id":"ddaf08f98840b0948c5f353647ab48eee188413b","user":{"login":"eugene274","id":23106384,"avatar_url":"https://avatars.githubusercontent.com/u/23106384?v=3","gravatar_id":"","url":"https://api.github.com/users/eugene274","html_url":"https://github.com/eugene274","followers_url":"https://api.github.com/users/eugene274/followers","following_url":"https://api.github.com/users/eugene274/following{/other_user}","gists_url":"https://api.github.com/users/eugene274/gists{/gist_id}","starred_url":"https://api.github.com/users/eugene274/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugene274/subscriptions","organizations_url":"https://api.github.com/users/eugene274/orgs","repos_url":"https://api.github.com/users/eugene274/repos","events_url":"https://api.github.com/users/eugene274/events{/privacy}","received_events_url":"https://api.github.com/users/eugene274/received_events","type":"User","site_admin":false},"body":"`ClientConnectionService` accepts messages from `Mechanics` and then does replication. On each iteration it tries to poll message from queue. If there are some messages in queue it executes them consequently _without any timeout_. In case of empty queue it waits 100 ms for message and then goes further (to the next iteration of while block).\r\n\r\nOne can set timeout to 100 sec (or even call `execOneForService()`) and log each `ReplicateMsg` executing. The result doesn't depend on what timeout was set.\r\n\r\n>2016-11-27 19:22:03,507 DEBUG [client_connection_service] messages.ReplicateMsg (ReplicateMsg.java:27) - **ReplicationMsg exec() call**\r\n2016-11-27 19:22:04,507 INFO  [mechanics] ticker.Ticker (Ticker.java:42) - [mechanics] <tick> 2\r\n2016-11-27 19:22:04,508 INFO  [mechanics] mechanics.Mechanics (Mechanics.java:38) - Start replication\r\n2016-11-27 19:22:04,508 INFO  [mechanics] ticker.Ticker (Ticker.java:37) - All tickers finish at 0 ms\r\n2016-11-27 19:22:04,508 DEBUG [client_connection_service] messages.ReplicateMsg (ReplicateMsg.java:27) - **ReplicationMsg exec() call**\r\n2016-11-27 19:22:05,508 INFO  [mechanics] ticker.Ticker (Ticker.java:42) - [mechanics] <tick> 3\r\n2016-11-27 19:22:05,508 INFO  [mechanics] mechanics.Mechanics (Mechanics.java:38) - Start replication\r\n2016-11-27 19:22:05,508 INFO  [mechanics] ticker.Ticker (Ticker.java:37) - All tickers finish at 0 ms\r\n2016-11-27 19:22:05,509 DEBUG [client_connection_service] messages.ReplicateMsg (ReplicateMsg.java:27) - **ReplicationMsg exec() call**\r\n2016-11-27 19:22:06,509 INFO  [mechanics] ticker.Ticker (Ticker.java:42) - [mechanics] <tick> 4\r\n2016-11-27 19:22:06,509 INFO  [mechanics] mechanics.Mechanics (Mechanics.java:38) - Start replication\r\n2016-11-27 19:22:06,509 INFO  [mechanics] ticker.Ticker (Ticker.java:37) - All tickers finish at 0 ms\r\n2016-11-27 19:22:06,509 DEBUG [client_connection_service] messages.ReplicateMsg (ReplicateMsg.java:27) - **ReplicationMsg exec() call**\r\n2016-11-27 19:22:07,509 INFO  [mechanics] ticker.Ticker (Ticker.java:42) - [mechanics] <tick> 5\r\n2016-11-27 19:22:07,509 INFO  [mechanics] mechanics.Mechanics (Mechanics.java:38) - Start replication\r\n2016-11-27 19:22:07,510 INFO  [mechanics] ticker.Ticker (Ticker.java:37) - All tickers finish at 0 ms\r\n2016-11-27 19:22:07,510 DEBUG [client_connection_service] messages.ReplicateMsg (ReplicateMsg.java:27) - **ReplicationMsg exec() call**","created_at":"2016-11-27T16:26:56Z","updated_at":"2016-11-27T16:26:56Z","html_url":"https://github.com/rybalkinsd/atom/pull/16#discussion_r89693671","pull_request_url":"https://api.github.com/repos/rybalkinsd/atom/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/rybalkinsd/atom/pulls/comments/89693671"},"html":{"href":"https://github.com/rybalkinsd/atom/pull/16#discussion_r89693671"},"pull_request":{"href":"https://api.github.com/repos/rybalkinsd/atom/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/rybalkinsd/atom/pulls/16","id":95383141,"html_url":"https://github.com/rybalkinsd/atom/pull/16","diff_url":"https://github.com/rybalkinsd/atom/pull/16.diff","patch_url":"https://github.com/rybalkinsd/atom/pull/16.patch","issue_url":"https://api.github.com/repos/rybalkinsd/atom/issues/16","number":16,"state":"open","locked":false,"title":"Issue#15","user":{"login":"eugene274","id":23106384,"avatar_url":"https://avatars.githubusercontent.com/u/23106384?v=3","gravatar_id":"","url":"https://api.github.com/users/eugene274","html_url":"https://github.com/eugene274","followers_url":"https://api.github.com/users/eugene274/followers","following_url":"https://api.github.com/users/eugene274/following{/other_user}","gists_url":"https://api.github.com/users/eugene274/gists{/gist_id}","starred_url":"https://api.github.com/users/eugene274/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugene274/subscriptions","organizations_url":"https://api.github.com/users/eugene274/orgs","repos_url":"https://api.github.com/users/eugene274/repos","events_url":"https://api.github.com/users/eugene274/events{/privacy}","received_events_url":"https://api.github.com/users/eugene274/received_events","type":"User","site_admin":false},"body":"![cpu_after](https://cloud.githubusercontent.com/assets/23106384/20643876/460b6612-b435-11e6-9f19-3439235df271.png)\r\n","created_at":"2016-11-26T21:06:08Z","updated_at":"2016-11-27T16:26:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ebcc32e87c0b1129a66cb468519c63ad830c0790","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rybalkinsd/atom/pulls/16/commits","review_comments_url":"https://api.github.com/repos/rybalkinsd/atom/pulls/16/comments","review_comment_url":"https://api.github.com/repos/rybalkinsd/atom/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rybalkinsd/atom/issues/16/comments","statuses_url":"https://api.github.com/repos/rybalkinsd/atom/statuses/ddaf08f98840b0948c5f353647ab48eee188413b","head":{"label":"eugene274:Issue#15","ref":"Issue#15","sha":"ddaf08f98840b0948c5f353647ab48eee188413b","user":{"login":"eugene274","id":23106384,"avatar_url":"https://avatars.githubusercontent.com/u/23106384?v=3","gravatar_id":"","url":"https://api.github.com/users/eugene274","html_url":"https://github.com/eugene274","followers_url":"https://api.github.com/users/eugene274/followers","following_url":"https://api.github.com/users/eugene274/following{/other_user}","gists_url":"https://api.github.com/users/eugene274/gists{/gist_id}","starred_url":"https://api.github.com/users/eugene274/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugene274/subscriptions","organizations_url":"https://api.github.com/users/eugene274/orgs","repos_url":"https://api.github.com/users/eugene274/repos","events_url":"https://api.github.com/users/eugene274/events{/privacy}","received_events_url":"https://api.github.com/users/eugene274/received_events","type":"User","site_admin":false},"repo":{"id":74850279,"name":"atom","full_name":"eugene274/atom","owner":{"login":"eugene274","id":23106384,"avatar_url":"https://avatars.githubusercontent.com/u/23106384?v=3","gravatar_id":"","url":"https://api.github.com/users/eugene274","html_url":"https://github.com/eugene274","followers_url":"https://api.github.com/users/eugene274/followers","following_url":"https://api.github.com/users/eugene274/following{/other_user}","gists_url":"https://api.github.com/users/eugene274/gists{/gist_id}","starred_url":"https://api.github.com/users/eugene274/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eugene274/subscriptions","organizations_url":"https://api.github.com/users/eugene274/orgs","repos_url":"https://api.github.com/users/eugene274/repos","events_url":"https://api.github.com/users/eugene274/events{/privacy}","received_events_url":"https://api.github.com/users/eugene274/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eugene274/atom","description":null,"fork":true,"url":"https://api.github.com/repos/eugene274/atom","forks_url":"https://api.github.com/repos/eugene274/atom/forks","keys_url":"https://api.github.com/repos/eugene274/atom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eugene274/atom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eugene274/atom/teams","hooks_url":"https://api.github.com/repos/eugene274/atom/hooks","issue_events_url":"https://api.github.com/repos/eugene274/atom/issues/events{/number}","events_url":"https://api.github.com/repos/eugene274/atom/events","assignees_url":"https://api.github.com/repos/eugene274/atom/assignees{/user}","branches_url":"https://api.github.com/repos/eugene274/atom/branches{/branch}","tags_url":"https://api.github.com/repos/eugene274/atom/tags","blobs_url":"https://api.github.com/repos/eugene274/atom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eugene274/atom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eugene274/atom/git/refs{/sha}","trees_url":"https://api.github.com/repos/eugene274/atom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eugene274/atom/statuses/{sha}","languages_url":"https://api.github.com/repos/eugene274/atom/languages","stargazers_url":"https://api.github.com/repos/eugene274/atom/stargazers","contributors_url":"https://api.github.com/repos/eugene274/atom/contributors","subscribers_url":"https://api.github.com/repos/eugene274/atom/subscribers","subscription_url":"https://api.github.com/repos/eugene274/atom/subscription","commits_url":"https://api.github.com/repos/eugene274/atom/commits{/sha}","git_commits_url":"https://api.github.com/repos/eugene274/atom/git/commits{/sha}","comments_url":"https://api.github.com/repos/eugene274/atom/comments{/number}","issue_comment_url":"https://api.github.com/repos/eugene274/atom/issues/comments{/number}","contents_url":"https://api.github.com/repos/eugene274/atom/contents/{+path}","compare_url":"https://api.github.com/repos/eugene274/atom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eugene274/atom/merges","archive_url":"https://api.github.com/repos/eugene274/atom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eugene274/atom/downloads","issues_url":"https://api.github.com/repos/eugene274/atom/issues{/number}","pulls_url":"https://api.github.com/repos/eugene274/atom/pulls{/number}","milestones_url":"https://api.github.com/repos/eugene274/atom/milestones{/number}","notifications_url":"https://api.github.com/repos/eugene274/atom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eugene274/atom/labels{/name}","releases_url":"https://api.github.com/repos/eugene274/atom/releases{/id}","deployments_url":"https://api.github.com/repos/eugene274/atom/deployments","created_at":"2016-11-26T20:59:12Z","updated_at":"2016-11-26T20:59:14Z","pushed_at":"2016-11-26T21:03:03Z","git_url":"git://github.com/eugene274/atom.git","ssh_url":"git@github.com:eugene274/atom.git","clone_url":"https://github.com/eugene274/atom.git","svn_url":"https://github.com/eugene274/atom","homepage":null,"size":28394,"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":"master"}},"base":{"label":"rybalkinsd:master","ref":"master","sha":"43da6ae4d91e9c8f3573bcebaf3b605d81371fa7","user":{"login":"rybalkinsd","id":710546,"avatar_url":"https://avatars.githubusercontent.com/u/710546?v=3","gravatar_id":"","url":"https://api.github.com/users/rybalkinsd","html_url":"https://github.com/rybalkinsd","followers_url":"https://api.github.com/users/rybalkinsd/followers","following_url":"https://api.github.com/users/rybalkinsd/following{/other_user}","gists_url":"https://api.github.com/users/rybalkinsd/gists{/gist_id}","starred_url":"https://api.github.com/users/rybalkinsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rybalkinsd/subscriptions","organizations_url":"https://api.github.com/users/rybalkinsd/orgs","repos_url":"https://api.github.com/users/rybalkinsd/repos","events_url":"https://api.github.com/users/rybalkinsd/events{/privacy}","received_events_url":"https://api.github.com/users/rybalkinsd/received_events","type":"User","site_admin":false},"repo":{"id":68643971,"name":"atom","full_name":"rybalkinsd/atom","owner":{"login":"rybalkinsd","id":710546,"avatar_url":"https://avatars.githubusercontent.com/u/710546?v=3","gravatar_id":"","url":"https://api.github.com/users/rybalkinsd","html_url":"https://github.com/rybalkinsd","followers_url":"https://api.github.com/users/rybalkinsd/followers","following_url":"https://api.github.com/users/rybalkinsd/following{/other_user}","gists_url":"https://api.github.com/users/rybalkinsd/gists{/gist_id}","starred_url":"https://api.github.com/users/rybalkinsd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rybalkinsd/subscriptions","organizations_url":"https://api.github.com/users/rybalkinsd/orgs","repos_url":"https://api.github.com/users/rybalkinsd/repos","events_url":"https://api.github.com/users/rybalkinsd/events{/privacy}","received_events_url":"https://api.github.com/users/rybalkinsd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rybalkinsd/atom","description":null,"fork":false,"url":"https://api.github.com/repos/rybalkinsd/atom","forks_url":"https://api.github.com/repos/rybalkinsd/atom/forks","keys_url":"https://api.github.com/repos/rybalkinsd/atom/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rybalkinsd/atom/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rybalkinsd/atom/teams","hooks_url":"https://api.github.com/repos/rybalkinsd/atom/hooks","issue_events_url":"https://api.github.com/repos/rybalkinsd/atom/issues/events{/number}","events_url":"https://api.github.com/repos/rybalkinsd/atom/events","assignees_url":"https://api.github.com/repos/rybalkinsd/atom/assignees{/user}","branches_url":"https://api.github.com/repos/rybalkinsd/atom/branches{/branch}","tags_url":"https://api.github.com/repos/rybalkinsd/atom/tags","blobs_url":"https://api.github.com/repos/rybalkinsd/atom/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rybalkinsd/atom/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rybalkinsd/atom/git/refs{/sha}","trees_url":"https://api.github.com/repos/rybalkinsd/atom/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rybalkinsd/atom/statuses/{sha}","languages_url":"https://api.github.com/repos/rybalkinsd/atom/languages","stargazers_url":"https://api.github.com/repos/rybalkinsd/atom/stargazers","contributors_url":"https://api.github.com/repos/rybalkinsd/atom/contributors","subscribers_url":"https://api.github.com/repos/rybalkinsd/atom/subscribers","subscription_url":"https://api.github.com/repos/rybalkinsd/atom/subscription","commits_url":"https://api.github.com/repos/rybalkinsd/atom/commits{/sha}","git_commits_url":"https://api.github.com/repos/rybalkinsd/atom/git/commits{/sha}","comments_url":"https://api.github.com/repos/rybalkinsd/atom/comments{/number}","issue_comment_url":"https://api.github.com/repos/rybalkinsd/atom/issues/comments{/number}","contents_url":"https://api.github.com/repos/rybalkinsd/atom/contents/{+path}","compare_url":"https://api.github.com/repos/rybalkinsd/atom/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rybalkinsd/atom/merges","archive_url":"https://api.github.com/repos/rybalkinsd/atom/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rybalkinsd/atom/downloads","issues_url":"https://api.github.com/repos/rybalkinsd/atom/issues{/number}","pulls_url":"https://api.github.com/repos/rybalkinsd/atom/pulls{/number}","milestones_url":"https://api.github.com/repos/rybalkinsd/atom/milestones{/number}","notifications_url":"https://api.github.com/repos/rybalkinsd/atom/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rybalkinsd/atom/labels{/name}","releases_url":"https://api.github.com/repos/rybalkinsd/atom/releases{/id}","deployments_url":"https://api.github.com/repos/rybalkinsd/atom/deployments","created_at":"2016-09-19T20:31:49Z","updated_at":"2016-11-17T14:39:47Z","pushed_at":"2016-11-26T21:06:33Z","git_url":"git://github.com/rybalkinsd/atom.git","ssh_url":"git@github.com:rybalkinsd/atom.git","clone_url":"https://github.com/rybalkinsd/atom.git","svn_url":"https://github.com/rybalkinsd/atom","homepage":null,"size":28634,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":17,"mirror_url":null,"open_issues_count":4,"forks":17,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rybalkinsd/atom/pulls/16"},"html":{"href":"https://github.com/rybalkinsd/atom/pull/16"},"issue":{"href":"https://api.github.com/repos/rybalkinsd/atom/issues/16"},"comments":{"href":"https://api.github.com/repos/rybalkinsd/atom/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/rybalkinsd/atom/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/rybalkinsd/atom/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rybalkinsd/atom/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/rybalkinsd/atom/statuses/ddaf08f98840b0948c5f353647ab48eee188413b"}}}}
{"actor":{"display_login":"eugene274"}}