Skip to content

Heartbit doesn't delete resources #12

@netDalek

Description

@netDalek

I probably just can't understand the rigth behaviour, but I don't know the better way to ask. May be this question will help smb.

I start two nodes with resource_discovery application (with heartbit). Run on the first:

resource_discovery:add_local_resource_tuple({worker, a}).
resource_discovery:sync_resources().

And run on the second:

resource_discovery:add_target_resource_types([worker]).
resource_discovery:sync_resources().
resource_discovery:get_resources(worker). #[a]

And get the resource. It's OK. Then I kill first node. But I still get registered resource, calling resource_discovery:get_resources(worker). Calling sync_resources and contract_nodes doesn't help. Should it disappeared? Where is my mistake?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions