Skip to content

Conversation

@crispmark
Copy link

I experience an issue on production for maxwell, where an exception occurred during connection to a database that had experienced many failovers. However the exception was uncaught, and our maxwell container continued to operate in a bad state.

Going through the code here, it looks like only IOExceptions were caught by the code, causing the IllegalStateException thrown when there is already a connection to fall through the cracks. Here we force all exceptions to propagate out, and successfully terminate the application when one occurs.

@osheroff
Copy link
Owner

Like I said in the maxwell PR this is more of a band-aid to a maxwell issue but it's a good band-aid. merging.

@osheroff osheroff merged commit 39ea1e6 into osheroff:master Jul 25, 2020
@osheroff
Copy link
Owner

I spoke too soon in merging this. it has test failures under mysql 8/5.7. are you able to run the test suite? (MYSQL_VERSION=8.0 mvn verify). I am currently not able to as Catalina appears to have completely broken my test architecture. bastards.

@osheroff
Copy link
Owner

Tests run: 138, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 52.091 sec <<< FAILURE! - in TestSuite
testAuthenticationFailsWhenNonExistingSchemaProvided(com.github.shyiko.mysql.binlog.BinaryLogClientGTIDIntegrationTest)  Time elapsed: 0.006 sec  <<< FAILURE!
org.testng.TestException: 
Expected exception com.github.shyiko.mysql.binlog.network.AuthenticationException but got java.io.IOException: com.github.shyiko.mysql.binlog.network.AuthenticationException: Unknown database 'mbcj_test_non_existing'
	at org.testng.internal.Invoker.handleInvocationResults(Invoker.java:1497)
	at org.testng.internal.Invoker.invokeMethod(Invoke

@osheroff
Copy link
Owner

there's another test like that too

@crispmark
Copy link
Author

crispmark commented Jul 25, 2020 via email

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

Successfully merging this pull request may close these issues.

2 participants