Skip to content

FATE threads should not be started in the constructor #4609

@kevinrr888

Description

@kevinrr888

Describe the bug
Starting threads within a constructor can lead to inconsistencies since the threads may start and access the object before the object is fully constructed. They should instead be started in a separate method that should be called after the object is created. It should probably also be noted in the javadoc for the constructor that the new method should be called after the Fate is created.

Versions (OS, Maven, Java, and others, as appropriate):

  • Affected version(s) of this project: 3.x, elasticity

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis issue has been verified to be a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions