deimos-kafka 1.0.0.pre.beta20 → 1.0.0.pre.beta21

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: c85c35c068b88ef2a45ae788e6361ab63ee71fbb27fa4b58f598330bef855de7
4
- data.tar.gz: 70d2b1d9e0967d614c1ced30db4222dbeb56256b94ef5cfc8684b3589eb62a0a
3
+ metadata.gz: 9a1ff5dc14bcf7a643aaed9736de3f38be6a92b8cae16d7b1fc431a83be25bc3
4
+ data.tar.gz: a174cd611d997703929b1bde0ae7ca206494e0b0553eef05270b86b06786f146
5
5
  SHA512:
6
- metadata.gz: 6c7e5148a6129c9d418a59d9bd0ece9727003aa3df1d37feb05ca21f00d526e357905c20ad44e1b8776af8df4d3dece4f43330fecaa0fb1a2456d0648643d3f9
7
- data.tar.gz: 3ddae38b0b3b3616f448f785432feb373d55b991b064c01b5e742ac0454e3f7ea5b6f12d9e16a41cdd542c0ebf9afa08165e7d234a0363a690e6d5a232dff9cd
6
+ metadata.gz: 2eea75844623c3c2c4f5a9b0321dfb948329d55f97614dc3d009fde960d4a1bf219a0c93c7488f82f248b1b0ab3ab53ce55536aa6bb42bb4cbcc39ad98cbd4ef
7
+ data.tar.gz: aee3a1a35345ee81b0a7b435eb7170f16d989ed16d768badd2efeee2a101edf8b1e3aa1cf60155e651bd7a7737a8cacda546feb429dbfd61c7791f3d35a060d5
@@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.0.0-beta21] - 2019-08-08
9
+ - Handle Phobos `persistent_connections` setting in handling buffer overflows
10
+
8
11
  ## [1.0.0-beta20] - 2019-08-07
9
12
  - Catch buffer overflows when producing via the DB producer and split the
10
13
  batch up.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- deimos-kafka (1.0.0.pre.beta20)
4
+ deimos-kafka (1.0.0.pre.beta21)
5
5
  avro-patches (~> 0.3)
6
6
  avro_turf (~> 0.8)
7
7
  phobos (~> 1.8)
@@ -102,6 +102,9 @@ module Deimos
102
102
  else
103
103
  batch_size /= 10
104
104
  end
105
+ if self.class.producer.respond_to?(:sync_producer_shutdown) # Phobos 1.8.3
106
+ self.class.producer.sync_producer_shutdown
107
+ end
105
108
  retry
106
109
  end
107
110
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deimos
4
- VERSION = '1.0.0-beta20'
4
+ VERSION = '1.0.0-beta21'
5
5
  end
@@ -60,6 +60,10 @@ each_db_config(Deimos::Utils::DbProducer) do
60
60
  end
61
61
 
62
62
  it 'should split the batch size on buffer overflow' do
63
+ class_producer = double(Phobos::Producer::ClassMethods::PublicAPI, # rubocop:disable RSpec/VerifiedDoubles
64
+ sync_producer_shutdown: nil)
65
+ allow(producer.class).to receive(:producer).and_return(class_producer)
66
+ expect(class_producer).to receive(:sync_producer_shutdown).twice
63
67
  count = 0
64
68
  allow(phobos_producer).to receive(:publish_list) do
65
69
  count += 1
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deimos-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre.beta20
4
+ version: 1.0.0.pre.beta21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-07 00:00:00.000000000 Z
11
+ date: 2019-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avro-patches