logstash-input-beats 0.9.1 → 0.9.2

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
  SHA1:
3
- metadata.gz: a07778f736810709bc97224c7470aa71093d9d38
4
- data.tar.gz: 7ae28a43b020ede92e3d4da12b4796166c8c9e90
3
+ metadata.gz: 233a88cd60c5306bc73c6577c146cdeb892d3cca
4
+ data.tar.gz: 3efc27b898d2da6f92cbbf6d8b0cca990c792bdc
5
5
  SHA512:
6
- metadata.gz: c4f711f60d736f3ccf00b8be4bc54a6771cc3592ad6b6ccd081eba6d27fce538d0e7a775429158ecd2ab36639d4fd3bcaba5327097a152a2e0eb59a850d88bf9
7
- data.tar.gz: f95b08c8cb8a261dfdc24f51b9d3561c23b9b028f7fd4a2276cc2ea1023392a30c393fe233e484229e73621621224323f4e6259de8f17ef78985b882924e904c
6
+ metadata.gz: baed97b8689d61e496b59cca3c4a31635fb967dc0501bcfdd1a67d3e43230a673f6580645086e0d6e2b278503cb6bd5035aed0c17cc9102d7afffccf5a775b61
7
+ data.tar.gz: ece3c51a188d149786d935bbf3d1a9f2cf7db83d5f9b5ac6dcc736c070f6a4c2cf497cb249e78bfdb85b6d38720ed47c6aabe139c767b0cfad1810338752aff5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
+ # 0.9.2
2
+ - fix an issue with the incorrectly calculated ack when the window_size was smaller than the ACK_RATIO see https://github.com/logstash-plugins/logstash-input-beats/issues/3
3
+
1
4
  # 0.9.1
2
5
  - Move the ruby-lumberjack library into the plugin
6
+
3
7
  # 0.9
4
8
  - Created from `logstash-input-lumberjack` version 2.0.2 https://github.com/logstash-plugins/logstash-input-lumberjack
5
9
  - Use SSL off by default
@@ -419,7 +419,7 @@ module Lumberjack module Beats
419
419
  def ack?(sequence)
420
420
  if @window_size == sequence
421
421
  true
422
- elsif sequence % @every == 0
422
+ elsif @every != 0 && sequence % @every == 0
423
423
  true
424
424
  else
425
425
  false
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "logstash-input-beats"
3
- s.version = "0.9.1"
3
+ s.version = "0.9.2"
4
4
  s.licenses = ["Apache License (2.0)"]
5
5
  s.summary = "Receive events using the lumberjack protocol."
6
6
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
@@ -28,4 +28,13 @@ describe Lumberjack::Beats::AckingProtocolV2 do
28
28
  expect(results.count(true)).to eq(1)
29
29
  end
30
30
  end
31
+
32
+ context "when the windows size is lower than the ack_ratio" do
33
+ let(:number_of_events) { 2 }
34
+
35
+ it "should return true only once" do
36
+ expect(results.size).to eq(number_of_events)
37
+ expect(results.count(true)).to eq(1)
38
+ end
39
+ end
31
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-beats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-20 00:00:00.000000000 Z
11
+ date: 2015-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement