Skip to content
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

(fix) NullPointerException at FSMCallerImpl#doCommitted when this.node.getOptions() #1035 #1036

Conversation

tkalkirill
Copy link
Contributor

(fix) NullPointerException at FSMCallerImpl#doCommitted when this.node.getOptions() #1035

Motivation:

I'm worried about the racing NullPointerException.

Modification:

Do the shutdown not outside but in the last task.

Result:

Fixes #1035.

If there is no issue then describe the changes introduced by this PR.

Copy link

sofastack-cla bot commented Nov 7, 2023

Hi @tkalkirill, welcome to SOFAStack community, Please sign Contributor License Agreement!

After you signed CLA, we will automatically sync the status of this pull request in 3 minutes.

@sofastack-cla sofastack-cla bot added bug Something isn't working question Further information is requested size/XS cla:no First-time contributor labels Nov 7, 2023
@tkalkirill
Copy link
Contributor Author

I tried to sign the CLA, but after that I couldn’t sign it again and on cla page I saw the message Thank you for signing the Agreement!.

Is there anything else that needs to be done or am I doing something wrong?

@fengjiachun
Copy link
Contributor

Hi, welcome to contribute. Can you let me know which version of sofajraft you are using? It appears that I am unable to locate the code (FSMCallerImpl#doCommitted when this.node.getOptions()) where the NPE occurs in the latest code.

@tkalkirill
Copy link
Contributor Author

Hi @fengjiachun, it’s hard for me to say which version exactly has this error, we made a fork from 1.3.5 and then copy the changes to version 1.3.10.

@fengjiachun
Copy link
Contributor

@killme2008 PTAL

@tkalkirill
Copy link
Contributor Author

@fengjiachun @killme2008 any update?

@fengjiachun
Copy link
Contributor

@tkalkirill Thanks for your pull request. Initially, I was unsure about the accuracy of these changes. However, after meticulous review, it seems to be devoid of any issues.

@fengjiachun fengjiachun merged commit 5cae8a5 into sofastack:master Nov 13, 2023
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla:no First-time contributor question Further information is requested size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NullPointerException at FSMCallerImpl#doCommitted when this.node.getOptions()
2 participants