Skip to content

Conversation

@yuxiqian
Copy link
Member

Currently, Db2ITCase fails occasionally due to attempts to cancel jobs which isn't running. Fixed this by adding a wrapper function and ignoring any IllegalStateException.

@yuxiqian
Copy link
Member Author

yuxiqian commented Jul 27, 2023

Possibly fixes this failure case:

https://dev.azure.com/ververica/flink-cdc-connectors/_build/results?buildId=3347&view=logs&j=450e5386-ec4e-5c3c-8d86-ea427d28cb6f&t=b72b380c-c1b9-55cc-a168-123a50838bbf

 [INFO] Running com.ververica.cdc.connectors.db2.table.Db2ConnectorITCase
 [ERROR] Tests run: 4, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 228.558 s <<< FAILURE! - in com.ververica.cdc.connectors.db2.table.Db2ConnectorITCase
 [ERROR] testConsumingAllEvents(com.ververica.cdc.connectors.db2.table.Db2ConnectorITCase)  Time elapsed: 70.203 s  <<< ERROR!
-java.lang.IllegalStateException: MiniCluster is not yet running or has already been shut down.
- 	at com.ververica.cdc.connectors.db2.table.Db2ConnectorITCase.testConsumingAllEvents(Db2ConnectorITCase.java:166)

Copy link
Contributor

@leonardBang leonardBang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yuxiqian for the fix, LGTM

@leonardBang leonardBang merged commit 61b9a2a into apache:master Aug 3, 2023
GOODBOY008 pushed a commit to GOODBOY008/flink-cdc that referenced this pull request Oct 30, 2023
GOODBOY008 pushed a commit to GOODBOY008/flink-cdc that referenced this pull request Oct 30, 2023
GOODBOY008 pushed a commit to GOODBOY008/flink-cdc that referenced this pull request Oct 30, 2023
leonardBang pushed a commit that referenced this pull request Oct 31, 2023
zhongqishang pushed a commit to zhongqishang/flink-cdc that referenced this pull request Dec 7, 2023
ChaomingZhangCN pushed a commit to ChaomingZhangCN/flink-cdc that referenced this pull request Jan 13, 2025
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