Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@JPWatson
Copy link
Contributor

Observed this exception during failover testing:

java.lang.NullPointerException
	at io.aeron.cluster.client.AeronCluster$AsyncConnect.awaitPublicationConnected(AeronCluster.java:1600)
	at io.aeron.cluster.client.AeronCluster$AsyncConnect.poll(AeronCluster.java:1529)
        ....

I believe thing can occur in the following scenario:
Step 1 => Step 2 => Step 3 => Redirect (member X) => Step 1 => Step 2 => Step 3 => Redirect (member Y) => Step 1 (Exception!)

This will occur due to the publication for member Y being closed at the point the client is redirected to member X.

@mjpt777 mjpt777 merged commit bd46ab7 into aeron-io:master May 19, 2021
@JPWatson JPWatson deleted the cluster-client-npe branch May 19, 2021 11:10
@mjpt777
Copy link
Contributor

mjpt777 commented May 19, 2021

Thanks @JPWatson. Good catch.

mikeb01 pushed a commit to mikeb01/Aeron that referenced this pull request May 20, 2021
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