Skip to content

Domain usage broken in 0.12.x and later #4359

@okeuday

Description

@okeuday

I understand the contents of #66 . This issue is not meant to focus on the removal of domain. Instead, it is meant to report broken behavior when using domain with node.js versions 0.12.x and later when using the source code https://github.com/CloudI/CloudI/blob/develop/src/api/javascript/CloudI.js (the integration test which is unable to function is https://github.com/CloudI/CloudI/blob/develop/src/tests/msg_size/msg_size.js).

I do not see a way to avoid domain usage (https://github.com/strongloop/zone doesn't support cluster/crypto/fs/process/tls/https/udp/zlib, async-listener doesn't support exceptions (nodejs/node-v0.x-archive#6011 (comment))) and with domain usage being broken, I do not see a way to fix the source code for node.js versions 0.12.x and higher.

If you recreate the failure in the msg_size integration test, you will see in the cloudi.log output that forwards are unable to take place. The exception created by the forward_ function call (in msg_size.js) is not seen as it was before, with domain in 0.10.x. The more complicated messaging integration test (https://github.com/CloudI/CloudI/blob/develop/src/tests/messaging/messaging.js) does not have problems running with node.js versions 0.12.x and higher.

Metadata

Metadata

Assignees

No one assigned

    Labels

    domainIssues and PRs related to the domain subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions