File tree Expand file tree Collapse file tree 7 files changed +13
-15
lines changed
src/main/java/com/ibm/eventstreams/connect/mqsource Expand file tree Collapse file tree 7 files changed +13
-15
lines changed Original file line number Diff line number Diff line change 57
57
label : Version
58
58
description : What version of our software are you running?
59
59
options :
60
- - 1.3.2 (Default)
61
- - older (<1.3.2 )
60
+ - 1.3.3 (Default)
61
+ - older (<1.3.3 )
62
62
validations :
63
63
required : true
64
64
- type : textarea
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ COPY --chown=esuser:esgroup --from=builder /opt/kafka/libs/ /opt/kafka/libs/
10
10
COPY --chown=esuser:esgroup --from=builder /opt/kafka/config/connect-distributed.properties /opt/kafka/config/
11
11
COPY --chown=esuser:esgroup --from=builder /opt/kafka/config/connect-log4j.properties /opt/kafka/config/
12
12
RUN mkdir /opt/kafka/logs && chown esuser:esgroup /opt/kafka/logs
13
- COPY --chown=esuser:esgroup target/kafka-connect-mq-source-1.3.2 -jar-with-dependencies.jar /opt/kafka/libs/
13
+ COPY --chown=esuser:esgroup target/kafka-connect-mq-source-1.3.3 -jar-with-dependencies.jar /opt/kafka/libs/
14
14
15
15
WORKDIR /opt/kafka
16
16
Original file line number Diff line number Diff line change @@ -92,13 +92,13 @@ curl -X POST -H "Content-Type: application/json" http://localhost:8083/connector
92
92
This repository includes an example Dockerfile to run Kafka Connect in distributed mode. It also adds in the MQ source connector as an available connector plugin. It uses the default ` connect-distributed.properties ` and ` connect-log4j.properties ` files.
93
93
94
94
1 . ` mvn clean package `
95
- 1 . ` docker build -t kafkaconnect-with-mq-source:1.3.2 . `
96
- 1 . ` docker run -p 8083:8083 kafkaconnect-with-mq-source:1.3.2 `
95
+ 1 . ` docker build -t kafkaconnect-with-mq-source:1.3.3 . `
96
+ 1 . ` docker run -p 8083:8083 kafkaconnect-with-mq-source:1.3.3 `
97
97
98
98
** NOTE:** To provide custom properties files create a folder called ` config ` containing the ` connect-distributed.properties ` and ` connect-log4j.properties ` files and use a Docker volume to make them available when running the container like this:
99
99
100
100
``` shell
101
- docker run -v $( pwd) /config:/opt/kafka/config -p 8083:8083 kafkaconnect-with-mq-source:1.3.2
101
+ docker run -v $( pwd) /config:/opt/kafka/config -p 8083:8083 kafkaconnect-with-mq-source:1.3.3
102
102
```
103
103
104
104
To start the MQ connector, you can use ` config/mq-source.json ` in this repository after replacing all placeholders and use a command like this:
Original file line number Diff line number Diff line change 20
20
<groupId >com.ibm.eventstreams.connect</groupId >
21
21
<artifactId >kafka-connect-mq-source</artifactId >
22
22
<packaging >jar</packaging >
23
- <version >1.3.2 </version >
23
+ <version >1.3.3 </version >
24
24
<name >kafka-connect-mq-source</name >
25
25
<organization >
26
26
<name >IBM Corporation</name >
63
63
<dependency >
64
64
<groupId >com.ibm.mq</groupId >
65
65
<artifactId >com.ibm.mq.allclient</artifactId >
66
- <version >9.1.5 .0</version >
66
+ <version >9.3.0 .0</version >
67
67
</dependency >
68
68
69
69
<dependency >
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ public class JMSReader {
79
79
private AtomicBoolean closeNow = new AtomicBoolean (); // Whether close has been requested
80
80
private long reconnectDelayMillis = reconnectDelayMillisMin ; // Delay between repeated reconnect attempts
81
81
82
- private static long receiveTimeout = 30000L ;
82
+ private static long receiveTimeout = 2000L ;
83
83
private static long reconnectDelayMillisMin = 64L ;
84
84
private static long reconnectDelayMillisMax = 8192L ;
85
85
@@ -258,10 +258,8 @@ public SourceRecord receive(final boolean wait) {
258
258
SourceRecord sr = null ;
259
259
try {
260
260
if (wait ) {
261
- while (m == null && !closeNow .get ()) {
262
- log .debug ("Waiting {} ms for message" , receiveTimeout );
263
- m = jmsCons .receive (receiveTimeout );
264
- }
261
+ log .debug ("Waiting {} ms for message" , receiveTimeout );
262
+ m = jmsCons .receive (receiveTimeout );
265
263
266
264
if (m == null ) {
267
265
log .debug ("No message received" );
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ public class MQSourceConnector extends SourceConnector {
136
136
public static final String CONFIG_DOCUMENTATION_TOPIC = "The name of the target Kafka topic." ;
137
137
public static final String CONFIG_DISPLAY_TOPIC = "Target Kafka topic" ;
138
138
139
- public static String version = "1.3.2 " ;
139
+ public static String version = "1.3.3 " ;
140
140
141
141
private Map <String , String > configProps ;
142
142
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ public List<SourceRecord> poll() throws InterruptedException {
119
119
120
120
try {
121
121
if (!stopNow .get ()) {
122
- log .info ("Polling for records" );
122
+ log .debug ("Polling for records" );
123
123
SourceRecord src ;
124
124
do {
125
125
// For the first message in the batch, wait a while if no message
You can’t perform that action at this time.
0 commit comments