tailf2kafka 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/tailf2kafka +1 -1
- data/lib/tailf2kafka/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f2a1d5781a37ef3c92b58c160854a06501f6f56
|
4
|
+
data.tar.gz: 044ced0298531ccd4e36cf46dbf4569b1c3588a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f39d14c4c672ce05b3d1ff6513bea3982358e23592d6ff661723157e7b25e2c6a363086eb8f7bd1b803102b1252a611a8492f69320b7b818930bc3f30b83bf1
|
7
|
+
data.tar.gz: ec26405e9ee9ba1798f8661f2ddf1bd67632d8654c3c5b4137648939dbcb4300658006fd0dc48d0c63e6b4c0f5111afe45c68ee79be57d9acbf1734c6153c286
|
data/bin/tailf2kafka
CHANGED
@@ -188,7 +188,7 @@ def delete_old_tailed_files
|
|
188
188
|
@mutex.synchronize do
|
189
189
|
@files.each_key do |path|
|
190
190
|
unless path.match(Regexp.new(Time.now.strftime(@files[path][:pattern])))
|
191
|
-
if File.exists?(path) and File.stat(path).ino == @files[path][:inode] and File.stat(path).size == @files[path][:offset]
|
191
|
+
if File.exists?(path) and File.stat(path).ino == @files[path][:inode] and File.stat(path).size == @files[path][:offset] and (Time.now - File.stat(path).mtime) > 30
|
192
192
|
puts "Deleteing old time pattern fully kafka produced file #{path}"
|
193
193
|
FileUtils.rm_r(path)
|
194
194
|
end
|
data/lib/tailf2kafka/version.rb
CHANGED