embulk-output-kafka 0.1.4 → 0.1.5

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: d02c758c81651e54d09421f19c1ba4970ddb04c4
4
- data.tar.gz: 18c7cbb212fa721f11427250c6132d6cf937a292
3
+ metadata.gz: be52a5a8989cb1081e251dfad03ff22445c30849
4
+ data.tar.gz: 202e3edf3266467bcfbe37f2f2e666a716403131
5
5
  SHA512:
6
- metadata.gz: 4f6cd307587c3edc55b87404b708a9a21ad904e9685ca1e28eebb662a1cead956175173ce6d8d04821d1a5d3866c143beb10a67bb67ad8e71416b207cbdf31da
7
- data.tar.gz: 13de4897add59955cab7a7adbdb252a1a843b8042f94c5f23faca63d4bda1e094c4003f0486244c3e50ec30f2ec5004728bce496713ab8051edf6fed4ff636f8
6
+ metadata.gz: 300d9c7c383c41da638512962f29d30d4824a5873083d5dda0e83bbbc89e00e2e57e5beb7e4e5f0d2a604a9db7702d30b99cd5f4c593cffb308696c6d68382b0
7
+ data.tar.gz: 80f3ad8a1811d3fa9a147c1a806eb65a9bf6d9df58cfe03275cc2400bd462d573c6ccaaf3b23b5f9c7ac352303b0bec4ec9095a80f56894ca07ac4ef47bcea85
@@ -17,7 +17,7 @@ configurations {
17
17
  provided
18
18
  }
19
19
 
20
- version = "0.1.4"
20
+ version = "0.1.5"
21
21
 
22
22
  sourceCompatibility = 1.8
23
23
  targetCompatibility = 1.8
@@ -40,6 +40,7 @@ import java.util.concurrent.ExecutionException;
40
40
  import java.util.concurrent.TimeUnit;
41
41
  import java.util.concurrent.TimeoutException;
42
42
  import java.util.concurrent.atomic.AtomicInteger;
43
+ import java.util.concurrent.atomic.AtomicLong;
43
44
 
44
45
  public class KafkaOutputPlugin
45
46
  implements OutputPlugin
@@ -199,8 +200,8 @@ public class KafkaOutputPlugin
199
200
 
200
201
  PageReader pageReader = new PageReader(schema);
201
202
  PrimitiveIterator.OfLong randomLong = new Random().longs(1, Long.MAX_VALUE).iterator();
202
- AtomicInteger counter = new AtomicInteger(0);
203
- AtomicInteger recordLoggingCount = new AtomicInteger(1);
203
+ AtomicLong counter = new AtomicLong(0);
204
+ AtomicLong recordLoggingCount = new AtomicLong(1);
204
205
 
205
206
  return new TransactionalPageOutput() {
206
207
  private JsonFormatColumnVisitor columnVisitor = new JsonFormatColumnVisitor(task, pageReader, objectMapper);
@@ -228,7 +229,7 @@ public class KafkaOutputPlugin
228
229
 
229
230
  logger.debug("sent record: {key: {}, value: {}}", producerRecord.key(), producerRecord.value());
230
231
 
231
- int current = counter.incrementAndGet();
232
+ long current = counter.incrementAndGet();
232
233
  if (current >= recordLoggingCount.get()) {
233
234
  logger.info("[task-{}] Producer sent {} records", String.format("%04d", taskIndex), current);
234
235
  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.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - joker1007
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-29 00:00:00.000000000 Z
11
+ date: 2019-12-01 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.4.jar
57
+ - classpath/embulk-output-kafka-0.1.5.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