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

[LYN-7463] Fix insert streaming request failure #5604

Conversation

amzn-mike
Copy link
Contributor

Fixed a rare race condition where an asset would fully unload and be requested to start loading again before the previous streamer request could be removed.

Re-enabled a disabled test that had the same failure cause

Cleaned up the other test to run a bit quicker and fix its overly long timeout

…st would start before the streamer request could be cleared

Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>
Fix test timeout which was way too long.
Reduce test iterations to keep test time safely under 5 seconds.

Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>
@jackalbe
Copy link
Contributor

This is being targeted for o3de:development
Will this be cherry picked to stabilization/2110?

@jackalbe
Copy link
Contributor

Might also include sig-core since they are in charge of the AZ::IO::IStreamer

…mer request first

Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>
@amzn-mike amzn-mike requested a review from a team November 15, 2021 17:01
@amzn-mike
Copy link
Contributor Author

This is being targeted for o3de:development Will this be cherry picked to stabilization/2110?

It probably should go into stabilization, if I can get it in today

@AMZN-stankowi AMZN-stankowi merged commit 0cea59d into o3de:development Nov 15, 2021
@AMZN-stankowi AMZN-stankowi deleted the Helios_FixInsertStreamingRequestFailure branch November 15, 2021 19:28
amzn-mike added a commit to aws-lumberyard-dev/o3de that referenced this pull request Nov 15, 2021
* Fix race condition where asset would finish loading and another request would start before the streamer request could be cleared

Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>

* Re-enable disabled test which was failing for the same reason.

Fix test timeout which was way too long.
Reduce test iterations to keep test time safely under 5 seconds.

Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>

* Instead of using a mutex, re-order the statements to remove the streamer request first

Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>
(cherry picked from commit 0cea59d)
Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>
AMZN-stankowi pushed a commit that referenced this pull request Nov 15, 2021
…5622)

* Fix race condition where asset would finish loading and another request would start before the streamer request could be cleared

Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>

* Re-enable disabled test which was failing for the same reason.

Fix test timeout which was way too long.
Reduce test iterations to keep test time safely under 5 seconds.

Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>

* Instead of using a mutex, re-order the statements to remove the streamer request first

Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>
(cherry picked from commit 0cea59d)
Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>
AlexOteiza pushed a commit to aws-lumberyard-dev/o3de that referenced this pull request Nov 17, 2021
* Fix race condition where asset would finish loading and another request would start before the streamer request could be cleared

Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>

* Re-enable disabled test which was failing for the same reason.

Fix test timeout which was way too long.
Reduce test iterations to keep test time safely under 5 seconds.

Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>

* Instead of using a mutex, re-order the statements to remove the streamer request first

Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>
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.

None yet

5 participants