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

resource restart/reload issue related to resourceContainerizerMode #2378

Open
1 task done
BluePeer opened this issue Nov 23, 2024 · 0 comments
Open
1 task done

resource restart/reload issue related to resourceContainerizerMode #2378

BluePeer opened this issue Nov 23, 2024 · 0 comments
Labels
Class: bug Something isn't working

Comments

@BluePeer
Copy link

Description of the problem

if
resourceContainerizerMode = true
you get multiple cases issue of resource restart/(stop -> start) issues

there are present in CDN and none CDN mode
the example is for the JS resource but related to the source of the issue, it will happen in c# too but not tested.

if you stop and start or restart a changed JS resource you get this cases in this Scenarios

type jsb (bytecode resource)
if you restart a changed bytecode resource (like the example that contains only a log message that get changed)
the restarted bytecode is 1:1 the before resource no errors , simply the old code (still working)
you are not able in this case to use the new resource, you will be on the before resource.

type js resource

first start (connect)

[22:59:31] Loading resource test
[22:59:31][js] [V8] Starting script client/index.js

[22:59:31][js] Message to change

[22:59:31][js] [V8] Started script client/index.js
[22:59:31] Loaded resource test

then you change the message to "Message to1 change"
use "restart test" or "stop test, start test"

[22:59:51] Skipping integrity check for resource test
[22:59:51] Downloaded and validated resource test succesfully 
[22:59:51] Finished downloading all resources
[22:59:51] Stopping resource test
[22:59:51] Stopped resource test
[22:59:51] Loading resource test
[22:59:51][js] [V8] Starting script client/index.js
[22:59:51][Error][js] [V8] Exception at test:client/index.js:3
[22:59:51][Error][js]   
[22:59:51][Error][js]   SyntaxError: Invalid or unexpected token
    at <bootstrapper>:18:19
[22:59:51][Error][js] SyntaxError: Invalid or unexpected token
[22:59:51][Error][js] [V8] Unhandled promise rejection at test:[unknown] (Error: Failed to start file)
[22:59:51][Error][js] [V8] Exception at test:<bootstrapper>:18
[22:59:51][Error][js]   if(!alt.isWorker) __internal_start_file(mainPath);
[22:59:51][Error][js]   Error: Failed to start file
    at <bootstrapper>:18:19
[22:59:51][Error][js] Error: Failed to start file
[22:59:51][Error] Failed to load resource test

if you change back the index.js (remove the added "1")

[23:00:35] Skipping integrity check for resource test
[23:00:35] Downloaded and validated resource test succesfully 
[23:00:35] Finished downloading all resources
[23:00:35] Loading resource test
[23:00:35][js] [V8] Starting script client/index.js

[23:00:35][js] Message to change

[23:00:35][js] [V8] Started script client/index.js
[23:00:35] Loaded resource test

it goes back to work

Reproduction steps

use the demo resource
test.zip

do bottom test like above
start this resource , change the message ba add something
restart or stop+start

with type jsb (exmaple) you get 0 errors but remain on the old resource
if you change client type to js
you get errors on not matching before resource on restart

Expected behaviour

refresh the resource and let them start with the new content

Additional context

No response

Operating system

Windows/Linux

Version

16.2.25-rc.5 + current release

Crashdump ID

No response

Confirmation of issue's presence

  • By submitting this ticket, I affirm that I have verified the presence of this issue on the latest RC (Release Candidate) version available at the time of writing this ticket.
@BluePeer BluePeer added the Class: bug Something isn't working label Nov 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Class: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant