[ 
https://issues.apache.org/jira/browse/WHIRR-329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051317#comment-13051317
 ] 

Andrei Savu commented on WHIRR-329:
-----------------------------------

I've spent some time reading on this subject. I will create a file lock by 
using the FileLock Java as suggested:
* Docs: 
http://download.oracle.com/javase/1.4.2/docs/api/java/nio/channels/FileLock.html
 
* Example: http://www.exampledepot.com/egs/java.nio/SetFileLock.html
* Similar scenario: http://stackoverflow.com/questions/2045734/java-file-locking

and use the ZooKeeper 3.3.3 client for a distributed lock (and state 
persistence in a new JIRA). Tibor is this good enough for you? 

> Ensure the same cluster can't be started twice
> ----------------------------------------------
>
>                 Key: WHIRR-329
>                 URL: https://issues.apache.org/jira/browse/WHIRR-329
>             Project: Whirr
>          Issue Type: Improvement
>            Reporter: Andrei Savu
>            Assignee: Andrei Savu
>
> We should add some sort of distributed locking mechanism so that we can be 
> sure that the same cluster can't be started twice. Tibor was the first one to 
> raise this issue. 
> Could a blobstore be used for locking? 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to