awslabs / amazon-kinesis-client-ruby

A Ruby interface for the Amazon Kinesis Client Library. Allows developers to easily create robust application to process Amazon Kinesis streams in Ruby.
Apache License 2.0
146 stars 55 forks source link

Fix race condition in file permission check #13

Open soulcutter opened 8 years ago

soulcutter commented 8 years ago

When one process deletes the probe_file, another process is then unable to delete that file. With the :force => true option this will not raise an Errno::ENOENT exception so this problem will not cause the processor to halt.