{"action":"created","issue":{"url":"https://api.github.com/repos/marklogic/java-client-api/issues/578","repository_url":"https://api.github.com/repos/marklogic/java-client-api","labels_url":"https://api.github.com/repos/marklogic/java-client-api/issues/578/labels{/name}","comments_url":"https://api.github.com/repos/marklogic/java-client-api/issues/578/comments","events_url":"https://api.github.com/repos/marklogic/java-client-api/issues/578/events","html_url":"https://github.com/marklogic/java-client-api/issues/578","id":193339013,"number":578,"title":"Able to register HostAvailabilityListener with 'minHosts' greater than available hosts","user":{"login":"srinathgit","id":5034960,"avatar_url":"https://avatars.githubusercontent.com/u/5034960?v=3","gravatar_id":"","url":"https://api.github.com/users/srinathgit","html_url":"https://github.com/srinathgit","followers_url":"https://api.github.com/users/srinathgit/followers","following_url":"https://api.github.com/users/srinathgit/following{/other_user}","gists_url":"https://api.github.com/users/srinathgit/gists{/gist_id}","starred_url":"https://api.github.com/users/srinathgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srinathgit/subscriptions","organizations_url":"https://api.github.com/users/srinathgit/orgs","repos_url":"https://api.github.com/users/srinathgit/repos","events_url":"https://api.github.com/users/srinathgit/events{/privacy}","received_events_url":"https://api.github.com/users/srinathgit/received_events","type":"User","site_admin":false},"labels":[{"id":95132628,"url":"https://api.github.com/repos/marklogic/java-client-api/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":95132932,"url":"https://api.github.com/repos/marklogic/java-client-api/labels/minor","name":"minor","color":"0052cc","default":false},{"id":95133504,"url":"https://api.github.com/repos/marklogic/java-client-api/labels/verify","name":"verify","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":{"login":"sammefford","id":298950,"avatar_url":"https://avatars.githubusercontent.com/u/298950?v=3","gravatar_id":"","url":"https://api.github.com/users/sammefford","html_url":"https://github.com/sammefford","followers_url":"https://api.github.com/users/sammefford/followers","following_url":"https://api.github.com/users/sammefford/following{/other_user}","gists_url":"https://api.github.com/users/sammefford/gists{/gist_id}","starred_url":"https://api.github.com/users/sammefford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammefford/subscriptions","organizations_url":"https://api.github.com/users/sammefford/orgs","repos_url":"https://api.github.com/users/sammefford/repos","events_url":"https://api.github.com/users/sammefford/events{/privacy}","received_events_url":"https://api.github.com/users/sammefford/received_events","type":"User","site_admin":false},"assignees":[{"login":"sammefford","id":298950,"avatar_url":"https://avatars.githubusercontent.com/u/298950?v=3","gravatar_id":"","url":"https://api.github.com/users/sammefford","html_url":"https://github.com/sammefford","followers_url":"https://api.github.com/users/sammefford/followers","following_url":"https://api.github.com/users/sammefford/following{/other_user}","gists_url":"https://api.github.com/users/sammefford/gists{/gist_id}","starred_url":"https://api.github.com/users/sammefford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammefford/subscriptions","organizations_url":"https://api.github.com/users/sammefford/orgs","repos_url":"https://api.github.com/users/sammefford/repos","events_url":"https://api.github.com/users/sammefford/events{/privacy}","received_events_url":"https://api.github.com/users/sammefford/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/marklogic/java-client-api/milestones/13","html_url":"https://github.com/marklogic/java-client-api/milestones/java-client-api-4.0.1","labels_url":"https://api.github.com/repos/marklogic/java-client-api/milestones/13/labels","id":995896,"number":13,"title":"java-client-api-4.0.1","description":"Bugs and features slated to ship with MarkLogic Server 9","creator":{"login":"grechaw","id":382672,"avatar_url":"https://avatars.githubusercontent.com/u/382672?v=3","gravatar_id":"","url":"https://api.github.com/users/grechaw","html_url":"https://github.com/grechaw","followers_url":"https://api.github.com/users/grechaw/followers","following_url":"https://api.github.com/users/grechaw/following{/other_user}","gists_url":"https://api.github.com/users/grechaw/gists{/gist_id}","starred_url":"https://api.github.com/users/grechaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grechaw/subscriptions","organizations_url":"https://api.github.com/users/grechaw/orgs","repos_url":"https://api.github.com/users/grechaw/repos","events_url":"https://api.github.com/users/grechaw/events{/privacy}","received_events_url":"https://api.github.com/users/grechaw/received_events","type":"User","site_admin":false},"open_issues":65,"closed_issues":1,"state":"open","created_at":"2015-02-25T21:08:32Z","updated_at":"2016-12-05T18:05:09Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-12-04T08:26:31Z","updated_at":"2016-12-05T18:06:28Z","closed_at":null,"body":"This issue occurs with HostAvailabilityListener  registered with QB or WB. Consider a single node setup with a single forest associated with a db. The following configuration for HostAvailabilityListener   runs fine when registered with QB as well WB without throwing any exceptions / error thrown.\r\n\r\n```\r\nbatcger.setBatchFailureListeners(\r\n new HostAvailabilityListener(dmManager)\r\n  .withSuspendTimeForHostUnavailable(Duration.ofSeconds(15))\r\n  .withMinHosts(2)\r\n);\r\n```"},"comment":{"url":"https://api.github.com/repos/marklogic/java-client-api/issues/comments/264929008","html_url":"https://github.com/marklogic/java-client-api/issues/578#issuecomment-264929008","issue_url":"https://api.github.com/repos/marklogic/java-client-api/issues/578","id":264929008,"user":{"login":"sammefford","id":298950,"avatar_url":"https://avatars.githubusercontent.com/u/298950?v=3","gravatar_id":"","url":"https://api.github.com/users/sammefford","html_url":"https://github.com/sammefford","followers_url":"https://api.github.com/users/sammefford/followers","following_url":"https://api.github.com/users/sammefford/following{/other_user}","gists_url":"https://api.github.com/users/sammefford/gists{/gist_id}","starred_url":"https://api.github.com/users/sammefford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sammefford/subscriptions","organizations_url":"https://api.github.com/users/sammefford/orgs","repos_url":"https://api.github.com/users/sammefford/repos","events_url":"https://api.github.com/users/sammefford/events{/privacy}","received_events_url":"https://api.github.com/users/sammefford/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T18:06:28Z","updated_at":"2016-12-05T18:06:28Z","body":"I like the idea of throwing an error when they do this so in a cluster with more than one node, they don't get surprised with their job stopped as soon as one host becomes unavailable and we're always below minHosts.  Let's do this for 4.0.1 if we can fit it in."}}
{"actor":{"display_login":"sammefford"}}