embulk-output-kafka 0.1.5 → 0.1.6

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: be52a5a8989cb1081e251dfad03ff22445c30849
4
- data.tar.gz: 202e3edf3266467bcfbe37f2f2e666a716403131
3
+ metadata.gz: 1139409de37d3c3098fa4040a852b97c871c9b12
4
+ data.tar.gz: 5cc5b35275a4b907d8800b4b7a7467d7bd301045
5
5
  SHA512:
6
- metadata.gz: 300d9c7c383c41da638512962f29d30d4824a5873083d5dda0e83bbbc89e00e2e57e5beb7e4e5f0d2a604a9db7702d30b99cd5f4c593cffb308696c6d68382b0
7
- data.tar.gz: 80f3ad8a1811d3fa9a147c1a806eb65a9bf6d9df58cfe03275cc2400bd462d573c6ccaaf3b23b5f9c7ac352303b0bec4ec9095a80f56894ca07ac4ef47bcea85
6
+ metadata.gz: 1aea6aa1b01c00ea6150d9d240059274ecb2154cdb3d19a2ee3524dd4b6e7a8692435eecbe619053258c8d6e1ab053282ea67315fc62ddd254e3ce892de3c3ca
7
+ data.tar.gz: bfc15f45fd1c8546a59ba8ac20b9f93407b80b468ac1f857977f1a55f075774d658bd75a9fabbe7024d6e155002aad9df89c9fd4402428cf8c4be0a847f0d20b
@@ -17,7 +17,7 @@ configurations {
17
17
  provided
18
18
  }
19
19
 
20
- version = "0.1.5"
20
+ version = "0.1.6"
21
21
 
22
22
  sourceCompatibility = 1.8
23
23
  targetCompatibility = 1.8
@@ -290,8 +290,8 @@ public class KafkaOutputPlugin
290
290
 
291
291
  PrimitiveIterator.OfLong randomLong = new Random().longs(1, Long.MAX_VALUE).iterator();
292
292
 
293
- AtomicInteger counter = new AtomicInteger(0);
294
- AtomicInteger recordLoggingCount = new AtomicInteger(1);
293
+ AtomicLong counter = new AtomicLong(0);
294
+ AtomicLong recordLoggingCount = new AtomicLong(1);
295
295
 
296
296
  final org.apache.avro.Schema finalAvroSchema = avroSchema;
297
297
  return new TransactionalPageOutput()
@@ -322,7 +322,7 @@ public class KafkaOutputPlugin
322
322
 
323
323
  logger.debug("sent record: {key: {}, value: {}}", producerRecord.key(), producerRecord.value());
324
324
 
325
- int current = counter.incrementAndGet();
325
+ long current = counter.incrementAndGet();
326
326
  if (current >= recordLoggingCount.get()) {
327
327
  logger.info("[task-{}] Producer sent {} records", String.format("%04d", taskIndex), current);
328
328
  recordLoggingCount.set(recordLoggingCount.get() * 2);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: embulk-output-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - joker1007
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-01 00:00:00.000000000 Z
11
+ date: 2019-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -54,7 +54,7 @@ files:
54
54
  - classpath/common-config-5.3.0.jar
55
55
  - classpath/common-utils-5.3.0.jar
56
56
  - classpath/commons-compress-1.18.jar
57
- - classpath/embulk-output-kafka-0.1.5.jar
57
+ - classpath/embulk-output-kafka-0.1.6.jar
58
58
  - classpath/jackson-annotations-2.9.0.jar
59
59
  - classpath/jackson-core-2.9.9.jar
60
60
  - classpath/jackson-databind-2.9.9.jar