Open pzel opened 5 years ago
Discussion summary:
1) Address the None
issue with an appropriate error message.
2) Break out the correctness-checking as a separate topic (separate issue). Some ideas: a) "paranoid" mode (like Valgrind) that stores data and performs ongoing run-time validation (e.g. interleaving inputs & comparing results); b) Look at Python3 type annotations and try quick-checking with that info; c) Opt-in pre-flight correctness check.
Point 2. above is not urgent.
Is this a bug, feature request, or feedback?
Bug / UI improvemnt.
What is the current behavior?
I have the following
Aggregation
class in an app that uses the new windowing API:When this app runs,
machida3
segfaults silently without printing anything to stdout/err. Examining the core file, I see:This dump is not really helpful in diagnosing my problem. After some trial and error, I realize that the underlying issue is that I've forgotten to
return
from my `combine' function:should be:
The 'bug' being that nothing in my development experience with the app pointed me in the direction of this fix.
What is the expected behavior?
It would be nice if Wallaroo errored out and provided an explanation of what's expected, like:
ERROR: The function
AggregatedMetric.combine
did not return an Aggregate object. To address this, ensure that this function returns a new Aggregate.We could additionally leverage this check internally to make sure that the object being returned from
combine
is not pointer-equal to either one of the arguments that were passed in.What OS and version of Wallaroo are you using?
Linux tmr.local 4.19.8_1 #1 SMP PREEMPT Sat Dec 8 19:05:10 UTC 2018 x86_64 GNU/Linux
Wallaro branch metrics-app
Steps to reproduce?
metrics-app
cd examples/python/alerts_windowed
machida3
process runningmetrics.py
has crashedlog/metrics.log
machida3
has dumped core