logstash-input-file 4.2.0 → 4.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6cdc2495fe9eb7a2c84aaaac6ea922a6034a9ad1bd8223f021ed9bd77fedae74
4
- data.tar.gz: 4e6ba1c9fc044ff6cd93cbc92c16d114415357877ea75ad2fce375514517f0d7
3
+ metadata.gz: a3a31addcd028920e2e1206d56c6fbab1b5492ebfeef0d688a431c88685ec8b9
4
+ data.tar.gz: 0c07d4dd1c1c821c5ef9fcbbac68375ba04ea4dd399116c6ce016ad1c102b076
5
5
  SHA512:
6
- metadata.gz: a790d7f2a79551d8e8a96ca8cee597c1baba4dd9eabff1f9cc806432072a58826c6066922431f020105d7d86a53b22a2a0136e3c132d1b4d532f844a4a815f2e
7
- data.tar.gz: 0d4528eab5b7c56b9b6b62b7f0e7124c8bd47745ac46fb915210a7647021fd3fd0f97f4ef031d14fdd6ec03b28b697dd255c9ec9676d888cbf1107d987609c92
6
+ metadata.gz: a1d95cd6b07d0076c3917e816c97ae832d3085b4ccc1029eb3325249a287b3f80e7ed41bfa5870ce9edb5af6ef5c98f8217a918fd0d3088e6ec25f985da1096a
7
+ data.tar.gz: 2fafafe12fc3dbab4921029ae02e0e0949f4254f8fc50810de0c80cd49ab4158cacff9028d90c8d34dc28e17eabd7e6bc437ba2f28f0566f8bca9250b5733330
@@ -1,3 +1,6 @@
1
+ ## 4.2.1
2
+ - Fix: skip sincedb eviction if read mode completion deletes file during flush [#273](https://github.com/logstash-plugins/logstash-input-file/pull/273)
3
+
1
4
  ## 4.2.0
2
5
  - Fix: watched files performance with huge filesets [#268](https://github.com/logstash-plugins/logstash-input-file/pull/268)
3
6
  - Updated logging to include full traces in debug (and trace) levels
@@ -19,8 +19,10 @@ module FileWatch module ReadMode module Handlers
19
19
  watched_file.listener.eof
20
20
  watched_file.file_close
21
21
  key = watched_file.sincedb_key
22
- sincedb_collection.reading_completed(key)
23
- sincedb_collection.clear_watched_file(key)
22
+ if sincedb_collection.get(key)
23
+ sincedb_collection.reading_completed(key)
24
+ sincedb_collection.clear_watched_file(key)
25
+ end
24
26
  watched_file.listener.deleted
25
27
  # NOTE: on top of un-watching we should also remove from the watched files collection
26
28
  # if the file is getting deleted (on completion), that part currently resides in
@@ -6,7 +6,7 @@ module FileWatch
6
6
  attr_reader :max_active, :max_warn_msg, :lastwarn_max_files
7
7
  attr_reader :sincedb_write_interval, :stat_interval, :discover_interval
8
8
  attr_reader :exclude, :start_new_files_at, :file_chunk_count, :file_chunk_size
9
- attr_reader :sincedb_path, :sincedb_write_interval, :sincedb_expiry_duration
9
+ attr_reader :sincedb_path, :sincedb_expiry_duration
10
10
  attr_reader :file_sort_by, :file_sort_direction
11
11
  attr_reader :exit_after_read
12
12
  attr_reader :check_archive_validity
@@ -41,7 +41,6 @@ module FileWatch
41
41
  @file_chunk_size = @opts[:file_chunk_size]
42
42
  @close_older = @opts[:close_older]
43
43
  @ignore_older = @opts[:ignore_older]
44
- @sincedb_write_interval = @opts[:sincedb_write_interval]
45
44
  @stat_interval = @opts[:stat_interval]
46
45
  @discover_interval = @opts[:discover_interval]
47
46
  @exclude = Array(@opts[:exclude])
@@ -216,7 +216,7 @@ module FileWatch
216
216
  @write_method.call
217
217
  @serializer.expired_keys.each do |key|
218
218
  @sincedb[key].unset_watched_file
219
- delete(key) # delete
219
+ delete(key)
220
220
  logger.trace? && logger.trace("sincedb_write: cleaned", :key => key)
221
221
  end
222
222
  @sincedb_last_write = time
Binary file
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-file'
4
- s.version = '4.2.0'
4
+ s.version = '4.2.1'
5
5
  s.licenses = ['Apache-2.0']
6
6
  s.summary = "Streams events from files"
7
7
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-file
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.0
4
+ version: 4.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-06 00:00:00.000000000 Z
11
+ date: 2020-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement