Skip to content

Commit 3fcbe9e

Browse files
committed
v0.26.0
1 parent 524dfb3 commit 3fcbe9e

File tree

4 files changed

+20
-1
lines changed

4 files changed

+20
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.26.0](https://github.com/osheroff/mysql-binlog-connector-java/compare/0.25.6...0.26.0) - 2022-07-15
4+
5+
- Compressed binlogs, thank you Somesh Malviya
6+
- fix crash on unknown field type
7+
8+
# Changelog
9+
310
## [0.25.6](https://github.com/osheroff/mysql-binlog-connector-java/compare/0.25.5...0.25.6) - 2022-04-14
411

512
- stop crashing in an inopportune place

src/main/java/com/github/shyiko/mysql/binlog/BinaryLogClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ public void run() {
780780
// expected in case of disconnect
781781
}
782782
if (threadExecutor.isShutdown()) {
783+
logger.info("threadExecutor is shut down, terminating keepalive thread");
783784
return;
784785
}
785786
boolean connectionLost = false;

src/main/java/com/github/shyiko/mysql/binlog/io/BufferedSocketInputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public int read(byte[] b, int off, int len) throws IOException {
6060
}
6161
offset = 0;
6262
limit = in.read(buffer, 0, buffer.length);
63-
63+
6464
if (limit == -1) {
6565
return -1;
6666
}

src/test/java/com/github/shyiko/mysql/binlog/BinaryLogClientTest.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,15 @@ public void run() {
178178
}
179179
}
180180

181+
@Test
182+
public void testDeadlockyCode() throws IOException, InterruptedException {
183+
final BinaryLogClient binaryLogClient = new BinaryLogClient("localhost", 3306, "root", "123456");
184+
binaryLogClient.setHeartbeatInterval(10000);
185+
binaryLogClient.setKeepAlive(true);
186+
binaryLogClient.setKeepAliveInterval(2000);
187+
188+
binaryLogClient.connect();
189+
190+
Thread.sleep(10000000);
191+
}
181192
}

0 commit comments

Comments
 (0)