Memory leak due to join node

Hello team,

I am a running a tickscript by joining data from two measurments but one of the measurments has no data.When i disable the tickscript, the memory usage becomes stable but on enabling it, kapacitor docker( where the tickscripts are running) ooms. Is there a way to let join node know that one of the measurments is empty or sparse and not wait for the data, preventing the high memory consumption?

This is the DOT graph portion of the “show” operation:
DOT:
digraph process_crash_restart {
graph [throughput=“0.00 points/s”];

stream0 [avg_exec_time_ns=“0s” errors=“0” working_cardinality=“0” ];
stream0 → from2 [processed=“2099931”];
stream0 → from1 [processed=“2099931”];

from2 [avg_exec_time_ns=“8.594µs” errors=“0” working_cardinality=“0” ];
from2 → where3 [processed=“2099931”];

where3 [avg_exec_time_ns=“15.361µs” errors=“0” working_cardinality=“10000” ];
where3 → eval4 [processed=“699977”];

eval4 [avg_exec_time_ns=“145.1µs” errors=“0” working_cardinality=“10000” ];
eval4 → join14 [processed=“699977”];

from1 [avg_exec_time_ns=“1.924µs” errors=“0” working_cardinality=“0” ];
from1 → eval9 [processed=“0”];
from1 → elapsed6 [processed=“0”];
from1 → difference5 [processed=“0”];

eval9 [avg_exec_time_ns=“0s” errors=“0” working_cardinality=“0” ];
eval9 → join12 [processed=“0”];

elapsed6 [avg_exec_time_ns=“0s” errors=“0” working_cardinality=“0” ];
elapsed6 → eval7 [processed=“0”];

eval7 [avg_exec_time_ns=“0s” errors=“0” working_cardinality=“0” ];
eval7 → eval8 [processed=“0”];

eval8 [avg_exec_time_ns=“0s” errors=“0” working_cardinality=“0” ];
eval8 → join12 [processed=“0”];

difference5 [avg_exec_time_ns=“0s” errors=“0” working_cardinality=“0” ];
difference5 → join12 [processed=“0”];

join12 [avg_exec_time_ns=“0s” errors=“0” working_cardinality=“0” ];
join12 → join14 [processed=“0”];

join14 [avg_exec_time_ns=“28.218µs” errors=“0” working_cardinality=“0” ];
join14 → log15 [processed=“0”];

log15 [avg_exec_time_ns=“0s” errors=“0” working_cardinality=“0” ];
log15 → alert16 [processed=“0”];

alert16 [alerts_inhibited=“0” alerts_triggered=“0” avg_exec_time_ns=“0s” crits_triggered=“0” errors=“0” infos_triggered=“0” oks_triggered=“0” warns_triggered=“0” working_cardinality=“0” ];
}

@Anaisdg @staff Please help