wso2 / andes

Apache License 2.0
39 stars 128 forks source link

Fix [EI-2432] EI cannot re-connect to MB after DB failure #991

Closed abeykoon closed 6 years ago

abeykoon commented 6 years ago

Purpose

Fix issue https://github.com/wso2/product-ei/issues/2432

Goals

Fixing an issue regarding EI re-connect to MB after DB failure at MB.

Approach

A separate executor service is introduced to notify the connection exception listeners. We cannot use the JOB pool threads for notifying the exception listeners since it will block the frame processing which is critical for activities like connection handshakes.

User stories

EI should automatically reconnect once MB recovers from failure

Release note

N/A

Documentation

Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter “N/A” plus brief explanation of why there’s no doc impact

Training

N/A

Certification

N/A

Marketing

N/A

Automation tests

Security checks

Samples

N/A

Related PRs

N/A

Migrations (if applicable)

N/A

Test environment

JDK 8

Learning

N/A