Re: [IGFS][Semaphore] Write file concurrently from several nodes

2016-07-05 Thread cristic83
Maybe the Thread.sleep prevents the code from concurrently accessing the same resources? Also, we're not reading the file and the write is done through and output stream, not a writer. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/IGFS-Semaphore-Write-file-con

Re: [IGFS][Semaphore] Write file concurrently from several nodes

2016-07-04 Thread cristic83
Hi Andrey, Thanks for replying. It seems the code you posted on github is quite similar to the one I already posted in this thread (except for the Thread.sleep and the outputwriter used for writing the file). What exactly would you need for me to add? Greetings, Cristi -- View this message in

[IGFS][Semaphore] Write file concurrently from several nodes

2016-06-30 Thread cristic83
Hi guys, We have the following usecase involving IGFS: we have an IGFS configured for our cluster and we want that each time a node in the cluster is started a file (describing the operations provided by the node) is written in the IGFS by that node. If several nodes provide the same operation, th