{"action":"created","issue":{"url":"https://api.github.com/repos/ONSdigital/rm-common-service/issues/12","repository_url":"https://api.github.com/repos/ONSdigital/rm-common-service","labels_url":"https://api.github.com/repos/ONSdigital/rm-common-service/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/ONSdigital/rm-common-service/issues/12/comments","events_url":"https://api.github.com/repos/ONSdigital/rm-common-service/issues/12/events","html_url":"https://github.com/ONSdigital/rm-common-service/pull/12","id":339895821,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwNDM3NDY3","number":12,"title":"Increase queue capacity","user":{"login":"benjefferies","id":15050019,"node_id":"MDQ6VXNlcjE1MDUwMDE5","avatar_url":"https://avatars2.githubusercontent.com/u/15050019?v=4","gravatar_id":"","url":"https://api.github.com/users/benjefferies","html_url":"https://github.com/benjefferies","followers_url":"https://api.github.com/users/benjefferies/followers","following_url":"https://api.github.com/users/benjefferies/following{/other_user}","gists_url":"https://api.github.com/users/benjefferies/gists{/gist_id}","starred_url":"https://api.github.com/users/benjefferies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjefferies/subscriptions","organizations_url":"https://api.github.com/users/benjefferies/orgs","repos_url":"https://api.github.com/users/benjefferies/repos","events_url":"https://api.github.com/users/benjefferies/events{/privacy}","received_events_url":"https://api.github.com/users/benjefferies/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-10T15:31:42Z","updated_at":"2018-07-12T10:19:53Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ONSdigital/rm-common-service/pulls/12","html_url":"https://github.com/ONSdigital/rm-common-service/pull/12","diff_url":"https://github.com/ONSdigital/rm-common-service/pull/12.diff","patch_url":"https://github.com/ONSdigital/rm-common-service/pull/12.patch"},"body":"# Motivation and Context\r\nIf using queue exceeds 5 messages there are lots of capacity errors.\r\nIncreasing to 100 as 5 seems too low.\r\n\r\n# What has changed\r\nIncrease queue capacity to 100\r\n\r\n# How to test?\r\n1. Create file TestBlockingQueueCapacity.java with contents\r\n\t```\r\n\tpackage uk.gov.ons.ctp.common;\r\n\t\r\n\timport java.util.concurrent.BlockingQueue;\r\n\timport java.util.concurrent.LinkedBlockingQueue;\r\n\t\r\n\tpublic class TestBlockingQueueCapacity {\r\n\t\r\n\t  public static void main(String[] args) {\r\n\t      BlockingQueue<String> queue = new LinkedBlockingQueue<>(1);\r\n\t      queue.add(\"test\");\r\n\t      queue.add(\"test\");\r\n\t  }\r\n\t}\r\n\t```\r\n2. Run main method and observe error\r\n\t```\r\n\tException in thread \"main\" java.lang.IllegalStateException: Queue full\r\n\tat java.util.AbstractQueue.add(AbstractQueue.java:98)\r\n\tat uk.gov.ons.ctp.common.TestBlockingQueueCapacity.main(TestBlockingQueueCapacity.java:11)\r\n\t```\r\n"},"comment":{"url":"https://api.github.com/repos/ONSdigital/rm-common-service/issues/comments/404464896","html_url":"https://github.com/ONSdigital/rm-common-service/pull/12#issuecomment-404464896","issue_url":"https://api.github.com/repos/ONSdigital/rm-common-service/issues/12","id":404464896,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNDQ2NDg5Ng==","user":{"login":"benjefferies","id":15050019,"node_id":"MDQ6VXNlcjE1MDUwMDE5","avatar_url":"https://avatars2.githubusercontent.com/u/15050019?v=4","gravatar_id":"","url":"https://api.github.com/users/benjefferies","html_url":"https://github.com/benjefferies","followers_url":"https://api.github.com/users/benjefferies/followers","following_url":"https://api.github.com/users/benjefferies/following{/other_user}","gists_url":"https://api.github.com/users/benjefferies/gists{/gist_id}","starred_url":"https://api.github.com/users/benjefferies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjefferies/subscriptions","organizations_url":"https://api.github.com/users/benjefferies/orgs","repos_url":"https://api.github.com/users/benjefferies/repos","events_url":"https://api.github.com/users/benjefferies/events{/privacy}","received_events_url":"https://api.github.com/users/benjefferies/received_events","type":"User","site_admin":false},"created_at":"2018-07-12T10:19:53Z","updated_at":"2018-07-12T10:19:53Z","author_association":"CONTRIBUTOR","body":"Oh yeah I forgot about this 🤦‍♂️. I'll raise the PR to delete it here and fix it on the other"}}
{"actor":{"display_login":"benjefferies"}}