{"action":"created","issue":{"url":"https://api.github.com/repos/hawkular/hawkular-metrics/issues/679","repository_url":"https://api.github.com/repos/hawkular/hawkular-metrics","labels_url":"https://api.github.com/repos/hawkular/hawkular-metrics/issues/679/labels{/name}","comments_url":"https://api.github.com/repos/hawkular/hawkular-metrics/issues/679/comments","events_url":"https://api.github.com/repos/hawkular/hawkular-metrics/issues/679/events","html_url":"https://github.com/hawkular/hawkular-metrics/pull/679","id":186957099,"number":679,"title":"[HWKMETRICS-514] a distributed lock to coordinate schema changes","user":{"login":"jsanda","id":168121,"avatar_url":"https://avatars.githubusercontent.com/u/168121?v=3","gravatar_id":"","url":"https://api.github.com/users/jsanda","html_url":"https://github.com/jsanda","followers_url":"https://api.github.com/users/jsanda/followers","following_url":"https://api.github.com/users/jsanda/following{/other_user}","gists_url":"https://api.github.com/users/jsanda/gists{/gist_id}","starred_url":"https://api.github.com/users/jsanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsanda/subscriptions","organizations_url":"https://api.github.com/users/jsanda/orgs","repos_url":"https://api.github.com/users/jsanda/repos","events_url":"https://api.github.com/users/jsanda/events{/privacy}","received_events_url":"https://api.github.com/users/jsanda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-03T00:44:19Z","updated_at":"2016-11-03T15:34:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hawkular/hawkular-metrics/pulls/679","html_url":"https://github.com/hawkular/hawkular-metrics/pull/679","diff_url":"https://github.com/hawkular/hawkular-metrics/pull/679.diff","patch_url":"https://github.com/hawkular/hawkular-metrics/pull/679.patch"},"body":"This PR requires changes to standalone.xml and standalone-ha.xml. For standalone.xml we need:\r\n\r\n```xml\r\n<cache-container name=\"hawkular-alerts\" default-cache=\"triggers\" statistics-enabled=\"true\">\r\n    <local-cache name=\"partition\"/>\r\n    <local-cache name=\"triggers\"/>\r\n    <local-cache name=\"data\"/>\r\n    <local-cache name=\"publish\"/>\r\n    <local-cache name=\"schema\"/>\r\n    <local-cache name=\"locks\"/>\r\n```\r\n\r\nNote the addition of the **locks** cache. And for standalone-ha.xml:\r\n\r\n```xml\r\n<cache-container name=\"hawkular-alerts\" \r\n                              default-cache=\"triggers\"\r\n                              module=\"org.wildfly.clustering.server\" \r\n                              statistics-enabled=\"true\">\r\n    <replicated-cache name=\"partition\" mode=\"SYNC\">\r\n        <transaction mode=\"BATCH\"/>\r\n    </replicated-cache>\r\n    <replicated-cache name=\"triggers\" mode=\"ASYNC\">\r\n        <transaction mode=\"BATCH\"/>\r\n    </replicated-cache>\r\n    <replicated-cache name=\"data\" mode=\"ASYNC\">\r\n        <transaction mode=\"BATCH\"/>\r\n    </replicated-cache>\r\n    <replicated-cache name=\"publish\" mode=\"ASYNC\">\r\n        <transaction mode=\"BATCH\"/>\r\n    </replicated-cache>\r\n    <replicated-cache name=\"schema\" mode=\"SYNC\">\r\n        <transaction mode=\"NON_XA\"/>\r\n    </replicated-cache>\r\n    <replicated-cache name=\"locks\" mode=\"SYNC\">\r\n        <transaction mode=\"NON_XA\" locking=\"PESSIMISTIC\"/>\r\n    </replicated-cache>\r\n```"},"comment":{"url":"https://api.github.com/repos/hawkular/hawkular-metrics/issues/comments/258178469","html_url":"https://github.com/hawkular/hawkular-metrics/pull/679#issuecomment-258178469","issue_url":"https://api.github.com/repos/hawkular/hawkular-metrics/issues/679","id":258178469,"user":{"login":"stefannegrea","id":3912943,"avatar_url":"https://avatars.githubusercontent.com/u/3912943?v=3","gravatar_id":"","url":"https://api.github.com/users/stefannegrea","html_url":"https://github.com/stefannegrea","followers_url":"https://api.github.com/users/stefannegrea/followers","following_url":"https://api.github.com/users/stefannegrea/following{/other_user}","gists_url":"https://api.github.com/users/stefannegrea/gists{/gist_id}","starred_url":"https://api.github.com/users/stefannegrea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefannegrea/subscriptions","organizations_url":"https://api.github.com/users/stefannegrea/orgs","repos_url":"https://api.github.com/users/stefannegrea/repos","events_url":"https://api.github.com/users/stefannegrea/events{/privacy}","received_events_url":"https://api.github.com/users/stefannegrea/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T15:34:38Z","updated_at":"2016-11-03T15:34:38Z","body":"Thank you @jsanda!"}}
{"actor":{"display_login":"stefannegrea"}}