-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
On Windows, Space is incorrectly given 1970 start time #906
Comments
This can happen in CI conditions too, e.g., https://github.com/brimsec/brim/runs/777954531 . It manifests itself with the histogram test failing because it's not rendered properly. Screen shot shows a histogram starting in 1970. I unpacked the artifacts and found the Brim directory and space directory for the offending space (the histogram test). You can put its contents into the
906.zip if you want it. |
Thanks @mikesbrown... that's surely good info to know. As long as we're piling on evidence, I'll share something else CI-related I mentioned to @mattnibs and @alfred-landrum offline. At one point when I trying lots of variations to see how reliably I could reproduce the "1970" symptom, I managed to trigger an "Access is Denied" message similar to the one described in #613. It only happened that one time, and maybe it was a coincidence and has a separate root cause. Or... maybe we're lucky & they have the same root cause. I know @alfred-landrum has been unable to repro #613 when he's added extra logging in branches. So maybe we'll fix this issue and find the other will go away as well. 🤞 |
Now that #613 has a fix, I created a current Windows artifact to see if this issue was chased away, but alas, it's still with us. A note-to-self or others who may try to repro in the future: It seems like deleting the |
The root cause here is:
|
… no records" by alfred-landrum This is an auto-generated commit with a zq dependency update. The zq PR brimdata/super#938, authored by @alfred-landrum, has been merged. dont update the filestore span from a rewrite with no records Closes brimdata/super#906
Verified on Brim commit With this class of bug that has an unreliable repro, it's always a little tough to know for sure that we've chased it away. However, the approach of deleting Thanks @alfred-landrum! |
I'm pretty sure I've seen this issue in the past, but I've only now come up with a formula for reproducing it with some reliability. This repro was in GA Brim tagged
v0.11.0
talking tozqd
taggedv0.15.0
. I've only been able to reproduce it on Windows. However, because it doesn't repro 100% of the time, it makes me uncertain if it's Windows-specific in a code-centric way or if it's just down to timing, i.e. somehow a side-effect of things running a bit slower on Windows.I've found I can reliably reproduce this with the (uncompressed) pcap at https://archive.wrccdc.org/pcaps/2018/wrccdc.2018-03-23.010014000000000.pcap.gz. The trick seems to be dragging the pcap into the first tab, then quickly dragging another pcap into one or more other tabs before bouncing back to the first tab. I've previously repro'ed it by dragging the wrccdc pcap into the first tab and a different pcap into a second tab, but since it repros with the same wrccdc pcap used over & over, I've stuck with that here for simplicity.
As you can see in the attached video, what happens is that the start time for the created Space incorrectly shows a start time of 1970. We've seen this happen when time-free Zeek events have been generated that get assigned a timestamp of
ts=0
, but that's not what's going on here, evidenced by the fact that:If you let the pcap load on its own in a single tab without disturbing it (not shown in the video, but you can do this on your own), you never get any such events.
Even with the 1970 start times shown on all four tabs as in the video, once they were all done loading, I re-dragged one of their
all.zng
files into yet another tab and the Start time in the picker did not show 1970, indicating no suchts=0
events were found.In the video I show an error that seems to pop up in Dev Tools. I also show in the video that the
info.json
created byzqd
shows amin_time
of0
, so this seems to absolve the Brim app from any wrongdoing.Once again, I'll caution that this is not reproducible 100% of the time, so don't be surprised if you get it wrong on the first try. Since it took me a while to come up with this recipe and I respect that others may struggle to get it right, I'm game to do more repros to help with debug if people tell me what they need done.
Repro.mp4.zip
The text was updated successfully, but these errors were encountered: