The example you gave works for me too. But if I put in the test.data file 8MB (or more), it
does not work. I noticed that the accepted size is also dependent on the \n (if I have
many lines, smaller files will be accepted). I also tried it with Ruby, and I get the
following error:
Python:
File "./scalaris_post.py", line 51, in <module>
main()
File "./scalaris_post.py", line 48, in main
write_value_to_scalaris(sys.argv[i])
File "./scalaris_post.py", line 29, in write_value_to_scalaris
sc.write(key, value)#compressed)
File "/mnt/test/montage_test/scripts/scalaris.py", line 850, in write
result = self._conn.callp('/api/tx.yaws', 'write', [key, value])
File "/mnt/test/montage_test/scripts/scalaris.py", line 49, in callp
return self.call(function, params, path = path, retry_if_bad_status = retry_if_bad_status)
File "/mnt/test/montage_test/scripts/scalaris.py", line 89, in call
raise ConnectionError(data, response = response, error = instance)
scalaris.ConnectionError: error: error(111, 'Connection refused')
Ruby:
./scalaris.rb:207:in `call': end of file reached (Scalaris::ConnectionError)
from ./scalaris.rb:616:in `write'
from ./scalaris_client.rb:33:in `write'
from ./scalaris_client.rb:116
Sometimes, after these errors the scalaris node is also killed and I have to restart it.
Thank you,
Andreea