fix: handle empty filter topic in ensure_logs_match_filter#517
fix: handle empty filter topic in ensure_logs_match_filter#517ncitron merged 3 commits intoa16z:masterfrom
Conversation
|
In Additionally I think by filtering out empty topics we would be creating a mismatch of indices (although I think since empty topics don't really have a valid serialization it shouldn't matter anyway, but lets supposed someone constructs a filter with an empty topic while calling For example Also I think it doesn't make sense to move this into the Feel free to double check my understanding though, as I don't have that deep knowledge about how log filtering works. |
That's a very valid point -- my bad for missing that. Will do a lil more testing. |
|
@ncitron; Pushed a fix which makes it work with |
7ef504e to
927ed3c
Compare
|
So I think no change is needed to handle an empty filter since if you look in the code for the So I think if I understand correctly, there aren't any code changes needed here (besides maybe moving the check filter method to be a function instead of a method). |
So this is not working as intended because To avoid this, we need the |
ncitron
left a comment
There was a problem hiding this comment.
Ah this makes sense now.
LGTM!

This fixes a bug introduced in PR #507.
Changes
ensure_logs_match_filterfn was not handling the null case for filter topics.asynconensure_logs_match_filterfn.