Skip to content
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

Web console: fix crash when parsing data in data loader that can not be parsed #15983

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

vogievetsky
Copy link
Contributor

Due to a fragility in allowKeys and the change introduced in #15858 the data loader now crashes if the incoming sample can not be parsed. (undefined value going into allowKeys causes crash).

For repro try loading

{"__time":"2016-06-27T00:00:11.080Z","isRobot":"true","channel":"#sv.wikipedia","flags":"NB","isUnpatrolled":"false","page":"Salo Toraut","diffUrl":"https://sv.wikipedia.org/w/index.php?oldid=36099284&rcid=89369918","added":31,"comment":"Botskapande Indonesien omdirigering","commentLength":35,"isNew":"true","isMinor":"false","delta":31,"isAnonymous":"false","user":"Lsjbot","deltaBucket":0,"deleted":0,"namespace":"Main","cityName":null,"countryName":null,"regionIsoCode":null,"metroCode":null,"countryIsoCode":null,"regionName":null}

which will not parse due to the __time column

@vogievetsky vogievetsky merged commit 6e222d4 into apache:master Feb 28, 2024
11 checks passed
@vogievetsky vogievetsky deleted the fix_crash_when_no_parsed branch February 28, 2024 22:37
asdf2014 added a commit that referenced this pull request Mar 4, 2024
* docs: add mermaid diagram support

* fix crash when parsing data in data loader that can not be parsed (#15983)

* update jetty to address CVE (#16000)

* Concurrent replace should work with supervisors using concurrent locks (#15995)

* Concurrent replace should work with supervisors using concurrent locks

* Ignore supervisors with useConcurrentLocks set to false

* Apply feedback

* Add pre-check for heavy debug logs (#15706)

Co-authored-by: Kashif Faraz <kashif.faraz@gmail.com>
Co-authored-by: Benedict Jin <asdf2014@apache.org>

* Remove helm paths from CodeQL config (#16006)

* docs: mention acid-compliance for metadb

---------

Co-authored-by: Vadim Ogievetsky <vadim@ogievetsky.com>
Co-authored-by: Jan Werner <105367074+janjwerner-confluent@users.noreply.github.com>
Co-authored-by: AmatyaAvadhanula <amatya.avadhanula@imply.io>
Co-authored-by: Sensor <fectrain@outlook.com>
Co-authored-by: Kashif Faraz <kashif.faraz@gmail.com>
Co-authored-by: Benedict Jin <asdf2014@apache.org>
vogievetsky added a commit that referenced this pull request Mar 8, 2024
…5983) (#16059)

Co-authored-by: Vadim Ogievetsky <vadim@ogievetsky.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants