-
Notifications
You must be signed in to change notification settings - Fork 8
feat(ocap-kernel): name the failing vat when a subcluster vat fails to launch #975
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
Changes from 7 commits
62ac649
500b241
916c952
6a6325a
218a4e3
d977b8b
4fdfb31
e3bba71
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -115,7 +115,13 @@ export class VatManager { | |
| if (subclusterId) { | ||
| this.#kernelStore.addSubclusterVat(subclusterId, vatName, vatId); | ||
| } | ||
| await this.runVat(vatId, vatConfig); | ||
| try { | ||
| await this.runVat(vatId, vatConfig); | ||
| } catch (error) { | ||
| // Attribute the failure to the specific vat by kernel id and name. | ||
| const label = vatName ? `${vatId} (${vatName})` : vatId; | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good catch — |
||
| throw new Error(`Failed to launch vat ${label}`, { cause: error }); | ||
| } | ||
| this.#kernelStore.initEndpoint(vatId); | ||
| const rootRef = this.#kernelStore.exportFromEndpoint( | ||
| vatId, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused. The signature of
launchVatrequires a vat name, and this invocation ought to be illegal.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed — that invocation violated the required signature. Removed the no-name test and fixed the other
launchVat(config)call (the pre-existing one at line 152) to pass a name, in e3bba71.