Skip to content

Commit 994a42a

Browse files
authored
Merge pull request #558 from microsoft/dev
Release 1.14.1
2 parents fbccfb9 + b799836 commit 994a42a

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Release History
22

3+
### 1.14.1 (2024-02-29)
4+
#### Key Bug Fixes
5+
* Fixed `NullPointerException` in `CosmosDBSourceConnector`. [PR 555](https://github.com/microsoft/kafka-connect-cosmosdb/pull/555)
6+
37
### 1.14.0 (2024-02-28)
48
#### New Features
59
* Updated `azure-cosmos` version to 4.56.0.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
<groupId>com.azure.cosmos.kafka</groupId>
99
<artifactId>kafka-connect-cosmos</artifactId>
10-
<version>1.14.0</version>
10+
<version>1.14.1</version>
1111

1212
<name> kafka-connect-cosmos</name>
1313
<url>https://github.com/microsoft/kafka-connect-cosmosdb</url>

src/main/java/com/azure/cosmos/kafka/connect/source/CosmosDBSourceTask.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,9 @@ public String version() {
6363

6464
@Override
6565
public void start(Map<String, String> map) {
66-
logger.info("Worker {} Starting CosmosDBSourceTask.", this.config.getWorkerName());
67-
config = new CosmosDBSourceConfig(map);
66+
logger.info("Starting CosmosDBSourceTask.");
67+
config = new CosmosDBSourceConfig(map);
68+
6869
this.queue = new LinkedTransferQueue<>();
6970

7071
logger.info("Worker {} Creating the client.", this.config.getWorkerName());

src/test/java/com/azure/cosmos/kafka/connect/source/CosmosDBSourceTaskTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import static org.mockito.Mockito.when;
1010

1111
import java.util.ArrayList;
12+
import java.util.HashMap;
1213
import java.util.Iterator;
1314
import java.util.List;
1415
import java.util.Map;
@@ -96,6 +97,12 @@ public void setup() throws IllegalAccessException {
9697

9798
}
9899

100+
@Test(expected = IllegalArgumentException.class)
101+
public void start() {
102+
CosmosDBSourceTask testTask = new CosmosDBSourceTask();
103+
testTask.start(sourceSettings);
104+
}
105+
99106
@Test
100107
public void testHandleChanges() throws JsonProcessingException, IllegalAccessException, InterruptedException {
101108
String jsonString = "{\"k1\":\"v1\",\"k2\":\"v2\", \"_lsn\":\"2\"}";

0 commit comments

Comments
 (0)