{"action":"created","issue":{"url":"https://api.github.com/repos/wildfly/wildfly-core/issues/428","labels_url":"https://api.github.com/repos/wildfly/wildfly-core/issues/428/labels{/name}","comments_url":"https://api.github.com/repos/wildfly/wildfly-core/issues/428/comments","events_url":"https://api.github.com/repos/wildfly/wildfly-core/issues/428/events","html_url":"https://github.com/wildfly/wildfly-core/pull/428","id":54100844,"number":428,"title":"[WFCORE-263] Detect and react to domain rollout issues in invocations of cancel|find-non-progressing-operation on a slave HC","user":{"login":"bstansberry","id":299242,"avatar_url":"https://avatars.githubusercontent.com/u/299242?v=3","gravatar_id":"","url":"https://api.github.com/users/bstansberry","html_url":"https://github.com/bstansberry","followers_url":"https://api.github.com/users/bstansberry/followers","following_url":"https://api.github.com/users/bstansberry/following{/other_user}","gists_url":"https://api.github.com/users/bstansberry/gists{/gist_id}","starred_url":"https://api.github.com/users/bstansberry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bstansberry/subscriptions","organizations_url":"https://api.github.com/users/bstansberry/orgs","repos_url":"https://api.github.com/users/bstansberry/repos","events_url":"https://api.github.com/users/bstansberry/events{/privacy}","received_events_url":"https://api.github.com/users/bstansberry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":48,"created_at":"2015-01-12T20:13:31Z","updated_at":"2015-03-12T11:40:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/wildfly/wildfly-core/pulls/428","html_url":"https://github.com/wildfly/wildfly-core/pull/428","diff_url":"https://github.com/wildfly/wildfly-core/pull/428.diff","patch_url":"https://github.com/wildfly/wildfly-core/pull/428.patch"},"body":"Also fixes WFCORE-489\r\n\r\nThe convenience methods find-non-progressing-operation and cancel-non-progressing operation look for ops that are holding the exclusive lock for an excessive amount of time. When invoked on a slave HC, if the real problem preventing completion is the rollout of the op to one of the slave's servers, these ops will instead see the request rolling out the op from the master to the HC itself as the problematic one, as that will be the one holding the exclusive lock (taken to update the slave HC's copy of the model). But that request is just waiting for a commit from the master once the server rollout is done, and isn't actually misbehaving.\r\n\r\nThe second commit in this PR checks for this situation, and if found checks if the server ops associated with the same domain-uuid are taking too long to complete. If so:\r\n\r\n1) if there is only one such server op, that is the one found/cancelled. If the slave HC the user targeted is the only one with a server not completing, this should free up the entire system. \r\n\r\nIf there is more than one slave HC with this condition, it won't free up the entire system, but my assumption here is if the user is targeting this op to a particular slave and not to the master, they likely have done some sort of analysis to lead them to do that.\r\n\r\n2) if there is more than one such server op, there is no single op that can be identified/cancelled and the request fails with a message instructing the user to target the request against the master HC. Only the master can trigger cancellation across multiple processes."},"comment":{"url":"https://api.github.com/repos/wildfly/wildfly-core/issues/comments/78464690","html_url":"https://github.com/wildfly/wildfly-core/pull/428#issuecomment-78464690","issue_url":"https://api.github.com/repos/wildfly/wildfly-core/issues/428","id":78464690,"user":{"login":"wildfly-ci","id":939955,"avatar_url":"https://avatars.githubusercontent.com/u/939955?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfly-ci","html_url":"https://github.com/wildfly-ci","followers_url":"https://api.github.com/users/wildfly-ci/followers","following_url":"https://api.github.com/users/wildfly-ci/following{/other_user}","gists_url":"https://api.github.com/users/wildfly-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfly-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfly-ci/subscriptions","organizations_url":"https://api.github.com/users/wildfly-ci/orgs","repos_url":"https://api.github.com/users/wildfly-ci/repos","events_url":"https://api.github.com/users/wildfly-ci/events{/privacy}","received_events_url":"https://api.github.com/users/wildfly-ci/received_events","type":"User","site_admin":false},"created_at":"2015-03-12T11:40:03Z","updated_at":"2015-03-12T11:40:03Z","body":"**Windows** [Build 1042](http://brontes.lab.eng.brq.redhat.com/viewLog.html?buildId=38322&buildTypeId=WildFlyCore_PullRequestWindows) outcome was **SUCCESS** using a merge of 0348d87ef57cbdaa0030f0e622beea58ef9346b5\nSummary: Tests passed: 3055, ignored: 65 Build time: 0:19:43"}}