Skip to content

closed streams leaking with stream/transform #197

Open
@mccraigmccraig

Description

@mccraigmccraig

i concatenated vectors from a stream using (stream/transform (mapcat identity) s)

this seemed to cause a leak as described here: mpenet/alia#115

investigation showed lots of our EntityInstance records from db queries referenced from the downstream graph metadata in manifold.stream.graph/handle->downstreams - however the system making the queries was running ok, and since it mostly reduces over streams to get results, it seems that streams were being closed yet somehow remaining in the handle->downstreams map

i'm inferring that it's the stream/transform causing the problem because replacing it with a simple connect-via got rid of the memory leak

i've tried to repro this problem in isolation, and so far failed to do so, but i'm creating this issue in case anyone else has been observing similar behaviour

Metadata

Metadata

Assignees

No one assigned

    Labels

    cant replicateCan't replicate the issue. Frequently goes with "waiting on user"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions