work_shaper 0.1.2.7rc1 → 0.1.2.7rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2a61dd1fcd9a569a13dc199d0ecdbbce5dc1abe66898b045fc1b742a8f45a9c2
4
- data.tar.gz: b34b221927a2ff62018b7a79a93dfc8d3ee1ad9f25fd0ba70bf668257921c05b
3
+ metadata.gz: 227baf03a85cc1e631a5f55ecb5832504501828bea7b87435ac00b6944b44942
4
+ data.tar.gz: '003509444bbd9b6981c16adf4dfb7f8cab44c648715a26e4737aae3ad9bcc4c5'
5
5
  SHA512:
6
- metadata.gz: c6817bcc2e13e8af7d0090a1e1c1a2aeb2d3be7ed724a91d9312a2d20af6864fd94ec9d74583ccfce6cbc4f08a4a03e52ca552c685c51e05a9636e09f806b00d
7
- data.tar.gz: 03f97b63d429492b7f60337ae70583e6d593f13068b01cee9be5dd04e4e19da78e912fcfb870c6bfbedc08319748c85a7b963b2d7567f2e4ae0fb38ca531ccd1
6
+ metadata.gz: 926b0af454f94f5336161403278b7e4de3d6ba2399dc8692051ac7d1423750ca8b1a3f7614700cb2baffc5b1e07e420ea7d94c4b5e78b4b2f66d2687b7d8f83b
7
+ data.tar.gz: 6a6b92cf53395c4713d680e8468217633b8f5aead88c145c4b42dd523bad59e3600396f5ee059b43d31eedca6c28013c3ba972d70ff65533b8c2eac56ea527fd
@@ -35,7 +35,7 @@ module WorkShaper
35
35
 
36
36
  @heartbeat = Thread.new do
37
37
  while true
38
- report(detailed: false)
38
+ report(detailed: true)
39
39
  sleep heartbeat_period_sec
40
40
  end
41
41
  rescue => e
@@ -145,8 +145,9 @@ module WorkShaper
145
145
  last_offset = @last_ack[partition]
146
146
  if last_offset && offset <= last_offset
147
147
  WorkShaper.logger.warn(
148
- { message: 'Received Dupilcate Offset',
149
- offset: "#{partition}:#{offset}"
148
+ { message: 'Received Duplicate Offset',
149
+ offset: "#{partition}:#{offset}",
150
+ last_acked: last_offset,
150
151
  })
151
152
  else
152
153
  result = @ack.call(partition, offset)
@@ -157,10 +158,9 @@ module WorkShaper
157
158
  completed: @completed_offsets[partition].to_a[0..10].join(','),
158
159
  received: @received_offsets[partition].to_a[0..10].join(',')
159
160
  })
160
- else
161
- @last_ack[partition] = offset
162
161
  end
163
162
  end
163
+ @last_ack[partition] = offset
164
164
 
165
165
  @total_acked += 1
166
166
  WorkShaper.logger.debug "@total_acked: #{@total_acked}"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WorkShaper
4
- VERSION = "0.1.2.7rc1"
4
+ VERSION = "0.1.2.7rc2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: work_shaper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2.7rc1
4
+ version: 0.1.2.7rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jerry Fernholz