wspr-ncsu / visiblev8

A instrumented variant of the V8 JavaScript Engine
https://kapravelos.com/projects/vv8
BSD 3-Clause "New" or "Revised" License
151 stars 37 forks source link

[Bug] MFeatures break when dumping to postgres #71

Closed psavvaidis closed 6 months ago

psavvaidis commented 1 year ago

Hello, I have a problem dumping into Postgresql when using MFeatures. Here is the log I get:

main.go:185: Output enabled: Mfeatures main.go:241: Opening /home/panos/logs/node/vv8-1694703191658-4001-4001-chrome.0.log... core.go:328: 512 lines (29320 bytes) processed main.go:291: Started dumping for aggregator... main.go:313: megaFeatures.DumpToMongresql/logFile: pq: relation "logfile" does not exist

I have seen from previous commits that there there is some code deleted from the features/features.go that contains a reference to a logfile table. Should this piece of code be deleted from MFeatures as well?

EDIT

There is a logfile table in features, but the schema is different from the row being dumped and it resembles mega_logfile

Thank you in advance

Ale0x78 commented 6 months ago

Should be fixed in 8a3e8f8cce341a1fe8716fc9eb550a7e04854857

We updated the sql file and moved it outside of the mega folder since it contains tables for other post-processors as well.