{"number":10,"pull_request":{"number":10,"issue_url":"https://github.com/sonatype/nexus/issues/10","head":{"repo":{"master_branch":null,"name":"nexus","created_at":"2011-04-14T16:08:52Z","size":204,"clone_url":"https://github.com/mcculls/nexus.git","private":false,"updated_at":"2011-10-24T19:22:41Z","watchers":1,"ssh_url":"git@github.com:mcculls/nexus.git","url":"https://api.github.com/repos/mcculls/nexus","git_url":"git://github.com/mcculls/nexus.git","language":"Java","fork":true,"svn_url":"https://svn.github.com/mcculls/nexus","id":1614895,"pushed_at":"2011-10-24T19:22:41Z","open_issues":0,"homepage":"http://nexus.sonatype.org/","description":"Nexus OSS","forks":0,"html_url":"https://github.com/mcculls/nexus","owner":{"avatar_url":"https://secure.gravatar.com/avatar/b8e158ed9809ee4d9ce330b8752c26e9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b8e158ed9809ee4d9ce330b8752c26e9","url":"https://api.github.com/users/mcculls","id":145851,"login":"mcculls"}},"label":"mcculls:sisu-locks","sha":"b608c77afaede667783a9850a0ddb93e4467f2de","ref":"sisu-locks","user":{"avatar_url":"https://secure.gravatar.com/avatar/b8e158ed9809ee4d9ce330b8752c26e9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b8e158ed9809ee4d9ce330b8752c26e9","url":"https://api.github.com/users/mcculls","id":145851,"login":"mcculls"}},"merged_by":null,"created_at":"2011-10-24T22:14:59Z","changed_files":4,"merged":false,"body":"This patch adds the ability to switch Nexus resource locking from the current reader-writer lock approach to a semaphore-based approach. Semaphores have some advantages over reader-writer locks in that they can be easily distributed. One thread can also lock/unlock the resource on behalf of another thread, which can help when recovering from deadlocks. The key disadvantage of semaphores is the extra book-keeping required to provide ownership semantics on top of what is essentially an ownerless primitive.\r\n\r\nThe current configuration leaves the existing lock approach in place. To enable local semaphore resource locking add \"sisu-resource-locks = local\" to conf/nexus.properties. To enable distributed hazelcast resource locking copy http://search.maven.org/#artifactdetails%7Ccom.hazelcast%7Chazelcast%7C1.9.4.4%7Cjar to nexus/WEB-INF/lib and add \"sisu-resource-locks = hazelcast\" to conf/nexus.properties\r\n\r\nSee https://github.com/sonatype/sisu-locks for the local and distributed (hazelcast) lock implementations as well as their associated stress-tests. JMX controls are provided to monitor and manage resource locks; start \"jconsole\" and attach it to the Nexus process. The controls can be found under the \"org.sonatype.sisu\" entry.","comments":0,"title":"Nexus-HA: add support for semaphore-based resource locks","additions":140,"diff_url":"https://github.com/sonatype/nexus/pull/10.diff","updated_at":"2011-10-24T22:14:59Z","url":"https://api.github.com/repos/sonatype/nexus/pulls/10","id":429316,"patch_url":"https://github.com/sonatype/nexus/pull/10.patch","mergeable":null,"merged_at":null,"commits":1,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/b8e158ed9809ee4d9ce330b8752c26e9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"b8e158ed9809ee4d9ce330b8752c26e9","url":"https://api.github.com/users/mcculls","id":145851,"login":"mcculls"},"deletions":2,"html_url":"https://github.com/sonatype/nexus/pull/10","base":{"repo":{"master_branch":null,"name":"nexus","created_at":"2011-04-14T15:03:51Z","size":356,"clone_url":"https://github.com/sonatype/nexus.git","private":false,"updated_at":"2011-10-24T22:14:59Z","watchers":23,"ssh_url":"git@github.com:sonatype/nexus.git","url":"https://api.github.com/repos/sonatype/nexus","git_url":"git://github.com/sonatype/nexus.git","language":"Java","fork":false,"svn_url":"https://svn.github.com/sonatype/nexus","id":1614615,"pushed_at":"2011-10-24T22:14:59Z","open_issues":3,"homepage":"http://nexus.sonatype.org/","description":"Nexus OSS","forks":15,"html_url":"https://github.com/sonatype/nexus","owner":{"avatar_url":"https://secure.gravatar.com/avatar/cb46e422424d56564bbe32db56d00de6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"cb46e422424d56564bbe32db56d00de6","url":"https://api.github.com/users/sonatype","id":44938,"login":"sonatype"}},"label":"sonatype:master","sha":"e2a51f9ed4c1e2af1551b859cca2f83976c688a9","ref":"master","user":{"avatar_url":"https://secure.gravatar.com/avatar/cb46e422424d56564bbe32db56d00de6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-orgs.png","gravatar_id":"cb46e422424d56564bbe32db56d00de6","url":"https://api.github.com/users/sonatype","id":44938,"login":"sonatype"}},"state":"open"},"action":"opened"}