Skip to content

replication thread stuck as sslsocket lack of timeout #58

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ping403 opened this issue Nov 4, 2021 · 0 comments
Closed

replication thread stuck as sslsocket lack of timeout #58

ping403 opened this issue Nov 4, 2021 · 0 comments

Comments

@ping403
Copy link

ping403 commented Nov 4, 2021

There are news bin logs in MySQL master, but BinaryLogClient can't capture them.
Suggest to set SO-TIMEOUT for SSLSocket.

time: 18:06
 
"blc-a.b.c.9:3306" #41 prio=5 os_prio=0 cpu=53999.75ms elapsed=33186.63s tid=0x000056177f342000 nid=0x42 runnable  [0x00007f0c43568000]
   java.lang.Thread.State: RUNNABLE
       at java.net.SocketInputStream.socketRead0([email protected]/Native Method)
       at java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
       at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
       at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
       at sun.security.ssl.SSLSocketInputRecord.read([email protected]/SSLSocketInputRecord.java:476)
       at sun.security.ssl.SSLSocketInputRecord.readHeader([email protected]/SSLSocketInputRecord.java:470)
       at sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket([email protected]/SSLSocketInputRecord.java:70)
       at sun.security.ssl.SSLSocketImpl.readApplicationRecord([email protected]/SSLSocketImpl.java:1354)
       at sun.security.ssl.SSLSocketImpl$AppInputStream.read([email protected]/SSLSocketImpl.java:963)
       at sun.security.ssl.SSLSocketImpl$AppInputStream.read([email protected]/SSLSocketImpl.java:870)
       at com.github.shyiko.mysql.binlog.io.ByteArrayInputStream.readWithinBlockBoundaries(ByteArrayInputStream.java:222)
       at com.github.shyiko.mysql.binlog.io.ByteArrayInputStream.peek(ByteArrayInputStream.java:194)
       at com.github.shyiko.mysql.binlog.BinaryLogClient.listenForEventPackets(BinaryLogClient.java:930)
       at com.github.shyiko.mysql.binlog.BinaryLogClient.connect(BinaryLogClient.java:606)
       at com.github.shyiko.mysql.binlog.BinaryLogClient$7.run(BinaryLogClient.java:850)
       at java.lang.Thread.run([email protected]/Thread.java:834)
 

 time: 10-29 18:40
 
"blc-a.b.c.9:3306" #41 prio=5 os_prio=0 cpu=53999.75ms elapsed=35226.59s tid=0x000056177f342000 nid=0x42 runnable  [0x00007f0c43568000]
   java.lang.Thread.State: RUNNABLE
       at java.net.SocketInputStream.socketRead0([email protected]/Native Method)
       at java.net.SocketInputStream.socketRead([email protected]/SocketInputStream.java:115)
       at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:168)
       at java.net.SocketInputStream.read([email protected]/SocketInputStream.java:140)
       at sun.security.ssl.SSLSocketInputRecord.read([email protected]/SSLSocketInputRecord.java:476)
       at sun.security.ssl.SSLSocketInputRecord.readHeader([email protected]/SSLSocketInputRecord.java:470)
       at sun.security.ssl.SSLSocketInputRecord.bytesInCompletePacket([email protected]/SSLSocketInputRecord.java:70)
       at sun.security.ssl.SSLSocketImpl.readApplicationRecord([email protected]/SSLSocketImpl.java:1354)
       at sun.security.ssl.SSLSocketImpl$AppInputStream.read([email protected]/SSLSocketImpl.java:963)
       at sun.security.ssl.SSLSocketImpl$AppInputStream.read([email protected]/SSLSocketImpl.java:870)
       at com.github.shyiko.mysql.binlog.io.ByteArrayInputStream.readWithinBlockBoundaries(ByteArrayInputStream.java:222)
       at com.github.shyiko.mysql.binlog.io.ByteArrayInputStream.peek(ByteArrayInputStream.java:194)
       at com.github.shyiko.mysql.binlog.BinaryLogClient.listenForEventPackets(BinaryLogClient.java:930)
       at com.github.shyiko.mysql.binlog.BinaryLogClient.connect(BinaryLogClient.java:606)
       at com.github.shyiko.mysql.binlog.BinaryLogClient$7.run(BinaryLogClient.java:850)
       at java.lang.Thread.run([email protected]/Thread.java:834)
 
   Locked ownable synchronizers:
       - <0x0000000680ed3ea8> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
       - <0x0000000680ed3f98> (a java.util.concurrent.locks.ReentrantLock$NonfairSync)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants