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

DELIA-65834 : Skipped new mode request #5740

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

ssitar583
Copy link
Contributor

Reason for change: Crash occurred when timer expired for Previous mode and trying to set the Normal mode and same time curl request trying to process it.Handled synchronization between the new mode curl request as well as setMode request for NORMAL(default) mode.

Test Procedure: 1.Set device to any of the modes(WAREHOUSE/EAS/NORMAL) for 30s.
2.During that 30s,again make a request to set the same/different mode again.
3.Check for crashes.

@anand-ky
Copy link
Contributor

@ssitar583 - Pls update CHANGELOG and version for this change. You can increment the patch version.

@npoltorapavlo
Copy link
Contributor

npoltorapavlo commented Sep 27, 2024

can you please stop using detach() in this repo. This is unloadable plugins, detach() is not appropriate. We had numerous crashes on shutdown due to people using detach() in this repo.

@ssitar583
Copy link
Contributor Author

@npoltorapavlo As part of DELIA-65834,I have just checked whether timer is in progress or not and no new detach calls were added as part of this handling.Those detach() calls were existing one.

@npoltorapavlo
Copy link
Contributor

@ssitar583 if you read my comment, it does not say you add detach(). It says it's wrong to use detach() in either form

anand-ky and others added 6 commits September 27, 2024 12:14
…sistentstore

DELIA-66118: PersistentStore improvements
Reason for change: Returning error in case of new mode request thereby avoiding crash.

Test Procedure: 1.Set device to any of the modes(WAREHOUSE/EAS/NORMAL) for 30s.
		2.During that 30s,again make a request to set the same/different mode again.
		3.Check for crashes.
Risks: Low

Signed-off-by: Soundaryaa Sitaram<[email protected]>
@ssitar583 ssitar583 marked this pull request as draft September 27, 2024 18:00
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.

4 participants