Commit Graph
3636 Commits
Author SHA1 Message Date
Yashodhan JoshiandYashodhan Joshi eaff74ee9d fix: ent deadlock with sqlite (#6878)
Issue was that we use a lock function to lock sqlite client when doing
write ops, because only one thread should do them at a time. However,
the client init also requires a lock. When running ent version, ent init
had a function which would lock as well as be the first one to access
the client, hence deadlock on the client lock.

This issue was not there when running for the first time, because in
migration function we init clients without the locks. However when
running second time, the migration returns early, and does not int
clients hence the ent function deadlocks, and subsequently locks
everything that need the db access.

The fix is simple, in migration function move the client init before
return, so that we always have an initialized client and do not get
deadlocked in ent or non ent version.

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
Co-authored-by: Yashodhan Joshi <yjdoc2@gmail.com>
2025-05-22 16:34:48 +05:30
Loakesh Indiran f683003e8e fix: add lock to download file (#6875) (#6880)
fix #6875
2025-05-22 15:54:42 +05:30
367ddcd821 feat: streaming aggr support for http (#6854)
Co-authored-by: sai nikhil kethe <nikhil@openobserve.ai>
Co-authored-by: omkark06 <omkar@zinclabs.io>
2025-05-22 11:49:54 +05:30
Hengfei Yang b105a9ef99 fix: move event download to download manager (#6873) 2025-05-22 12:46:58 +08:00
Loakesh Indiran 9211b15ef8 feat: download manager improvements (#6852)
Closes: https://github.com/openobserve/openobserve/issues/6786
Ref: https://github.com/openobserve/openobserve/pull/6792

New Env: 
```
ZO_FILE_DOWNLOAD_ENABLE_PRIORITY_QUEUE # default true
ZO_FILE_DOWNLOAD_PRIORITY_QUEUE_THREAD_NUM # default 0
ZO_FILE_DOWNLOAD_PRIORITY_QUEUE_WINDOW_SECS # default 3600
```

New Metrics:
```
zo_query_disk_cache_hit_count
zo_query_disk_cache_miss_count
zo_file_downloader_normal_queue_size
zo_file_downloader_priority_queue_size
```

Todo:
- [x] add priority queue and logic to determine of a file `is_priority` 
- [x] add env for priority queue threads, time window
- [x] add metrics for `cache_hits`, `cache_miss`, `queue_length` (both
normal & priority queue)
2025-05-21 21:33:23 +05:30
udevandhengfei yang 86990481b9 fix: add nats logs (#6860) (#6861)
Co-authored-by: hengfei yang <hengfei.yang@gmail.com>
2025-05-21 20:59:07 +05:30
udev 4ac6cd3a73 fix: truncate if more results from df (#6851) (#6869)
In some cases when limit was added to the sql query we would report more
results than that size was asked. This PR adds checks to never return
more results than the `size` parameter
2025-05-21 20:25:06 +05:30
Loakesh Indiran 1ad3f8368e fix: chery-pick fixes (#6853)
- fix: auth for _values_stream (#6849)
- fix: simple distinct sql for http api (#6836)
- feat: add env to enable use_stream_setting for partitions (#6866)

# closes
- https://github.com/openobserve/openobserve/issues/6863

New Env
```
ZO_USE_STREAM_SETTINGS_FOR_PARTITIONS_ENABLED # default false
```
2025-05-21 17:12:52 +05:30
ktx-vaidehi 3a6f16a5d4 fix: dashboard go to logs vrl issue (#6862) 2025-05-21 14:53:14 +05:30
Hengfei Yang 9a80b336d5 fix: delete stream over regions (#6855)
fixed #6850
2025-05-20 23:12:03 +08:00
Subhra264 e268fe6f64 fix: Update enrichment table cache with correct start time after meta table update and pipeline delayed timerange fix (#6844)
- when creating an enrichment table, the `notify_update` is called
before the enrichment table stats is stored in the meta table.
- When pipeline reaches max retries and gets triggered again in the next
run, it uses one single time window for the whole delayed timerange.
2025-05-20 17:15:20 +05:30
Shyam Panjiyar c84792d3eb test: streaming search pytest (#6803)
Streaming Search PyTest
2025-05-20 16:22:24 +05:30
42522e357a fix: skip download and early return if partial download after retries (#6847)
Previously we did a footer check even when after all retries the blob
download was partial. Now we skip and return error, as no sense in
checking footer when we know the blob size is incomplete.

---------

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
Co-authored-by: Yashodhan Joshi <yjdoc2@gmail.com>
Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
2025-05-20 14:26:09 +05:30
Huaijinandgreptile-apps[bot] f5cb6292a0 fix: match one join query with join key filter (#6845)
close #6843

---------

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
2025-05-20 15:38:47 +08:00
Shyam Panjiyar 53459dcecc test: enabled streaming search playwright (#6795)
log search after streaming search enabled playwright
2025-05-20 12:04:30 +05:30
Taiming Liu c8f162eb5a fix: ent build and clippy (#6842) 2025-05-19 15:31:36 -07:00
udev da2a769762 feat: Add HTTP2 Streaming support (#6721) (#6827) 2025-05-20 00:06:05 +08:00
Hengfei Yang ca69ce0118 fix: alert can't query latest data for separate alert query (#6831)
- [x] fix: alert can't query latest data for separate alert query
- [x] feat: add size limit for download from other nodes
- [x] fix: use real time id generator
2025-05-19 19:29:12 +08:00
Yashodhan JoshiandYashodhan Joshi 1b3c993fc4 fix: validate downlaod size with blob store and validate file (#6822)
- get file size from db and download file from blob
- if mismatch in size between db and file downloaded then
- get content length of file from blob
- if content length != file downloaded -> we had a partial download from
blob -> retry download with exponential backoff
- if content length == file downloaded -> check footer of downloaded
file to see if parquet in blob is actually corrupt
- if file is corrupt -> log as info and mark deleted in db
- if file is good -> update size in db

---------

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
Co-authored-by: Yashodhan Joshi <yjdoc2@gmail.com>
2025-05-19 14:39:49 +05:30
Ashish Kolheandhengfei yang 256f52ce50 fix: parquet not found ingester (#6820)
Co-authored-by: hengfei yang <hengfei.yang@gmail.com>
2025-05-19 14:56:01 +08:00
Loakesh Indiran 5edcbd6e02 fix: search partition order_by (#6817) 2025-05-15 14:52:02 +05:30
Sai Nikhil 2d00c6e9b7 fix: pipeline list show cron expression if enabled (#6808)
if cron is enabled for scheduled pipeline then it should it be shown in
the listing page
and it should show cron column as true 
This PR fixes #6809
2025-05-15 11:34:58 +05:30
Neha P e40ecdcdcd test: e2e-cmd+enter-test (#6802)
- Verify search results are triggered when pressing Cmd+Enter or
Ctrl+Enter
- Verify query executes with keyboard shortcut after clicking elsewhere
- Verify different query executes with keyboard shortcut
- Verify SQL query executes with keyboard shortcut
2025-05-14 15:01:41 +05:30
ktx-akshay 8eed07fbb6 test: fix dashboard filter testcase (#6790)
Fixed the skipped test cases by using an appropriate selector instead of
force: true.
2025-05-14 12:13:35 +05:30
e1ab3da68f feat: add optional start date for scheduled pipeline (#6779)
- Adds a variable `start_at` in `DerivedStream`
- replaces `start_time` in `Trigger`

Closes #6758

Co-authored-by: Subhra264 <chakrabortysubhradeep556@gmail.com>
Co-authored-by: Taiming Liu <liutaiming3@gmail.com>
2025-05-13 09:40:08 -07:00
udev 3f793d9169 fix: Values API get partitions for no count (#6794)
Change the query type to do a dummy aggregation for no count query
2025-05-13 15:25:57 +05:30
Yashodhan JoshiandYashodhan Joshi ff9660fff0 fix: internal error audit (#6768)
This adds the error header to all cases of internal server error so they
show up properly in audit. This is done by one of two approaches -
1. preferably using the `map_error_to_http_response` function , so that
everything goes via the same function
2. directly adding the header where the above function cannot be used
because is is not an error per say like trying to ingest at
non-ingester.

---------

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
Co-authored-by: Yashodhan Joshi <yjdoc2@gmail.com>
2025-05-12 18:32:36 +05:30
Abhay Padamaniandktx-akshay 7d6b828646 fix: dashboard panel error msg automation issue (#6787)
Co-authored-by: ktx-akshay <akshay.patil@kiara.tech>
2025-05-12 17:47:28 +05:30
udev 9737dc1d20 feat: add condition list for OR operator support in alerts (#6607)
- use list of condition for legacy conditions
- add serde rename to operator struct.
2025-05-11 22:55:04 +05:30
Hengfei Yang 10cf4f2640 fix: s3 ListBucket error (#6777) 2025-05-09 23:09:29 +08:00
Taiming Liu 723b681a2e fix: pipeline panic due to empty input (#6776) 2025-05-09 07:22:14 -07:00
ktx-vaidehi b824dacce1 fix: dashboard annotations api response for some charts (#6769) 2025-05-09 16:48:34 +05:30
Subhra264andsai nikhil kethe 330cf14ec0 fix: ZO_DEFAULT_MAX_QUERY_RANGE_DAYS env should be returned by streams list api (#6762)
Fixes #6753

---------

Co-authored-by: sai nikhil kethe <nikhil@openobserve.ai>
2025-05-09 14:22:58 +05:30
Yashodhan Joshi 63804e8680 fix: supercluster scan stats (#6763) 2025-05-09 16:20:18 +08:00
Neha P 3ff97016cf test: e2e-stream-name (#6764)
Added a test to add stream name and assert if stream with uppercase
exists
add a stream with lowercase and assert if stream name with lowercase
exists
2025-05-08 20:16:03 +05:30
Hengfei Yang cb18d89e44 fix: is_querier error for super cluster (#6761) 2025-05-08 21:40:26 +08:00
Omkar Kesarkhane 5e9db8c3f3 fix: Stack Overflow when updating log search results (#6706) 2025-05-08 18:28:47 +05:30
Ashish Kolhe 9a44e688b8 fix: lowercase stream name as option (#6756) 2025-05-08 17:13:57 +05:30
Sai Nikhil ea866c0475 fix: highlight syntax in logs page (#6647)
1. This PR reintroduces the highlighting the particular keywords that
are there in the match_all or fuzzy_match_all conditions
2025-05-08 10:00:52 +05:30
Bhargav 45e3014707 fix: added error message code for cancelled search query (#6748) 2025-05-07 17:04:43 +05:30
Taiming Liu 371d055a14 feat: deployment type value in o2 telemetry (#6737) v0.14.7 2025-05-07 18:24:10 +08:00
Subhra264 c81b206338 fix: enrichment_table::get returns error when both meta and stream_stats table is empty (#6744) 2025-05-07 18:23:00 +08:00
Hengfei Yang 8dd1782bca fix: otlp ingestion attribute name (#6747) 2025-05-07 18:00:46 +08:00
Sai Nikhilandktx-abhay 1d0ec690fa fix: search field not found issue (#6745)
1. this PR fixes not showing what is the search field that was not found
in both logs page and dashbaords panel
2. alert list pagination fix

---------

Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
2025-05-07 14:14:24 +05:30
Hengfei Yang 9c52b96a79 fix: metrics report duplicated (#6743) 2025-05-07 14:05:50 +08:00
Hengfei YangandTaiming Liu 0f4125b32d fix: multiple account with file_list_dump (#6739)
Co-authored-by: Taiming Liu <liutaiming3@gmail.com>
2025-05-06 20:58:16 -07:00
Taiming LiuandHengfei Yang e567f7c3a1 fix: cache miss after NATs restarts (#6726)
Refreshing in-memory cache in such NATs event trigger by NATs client's
callback closure.

---------

Co-authored-by: Hengfei Yang <hengfei.yang@gmail.com>
2025-05-06 19:33:31 -07:00
Taiming Liu 6ad1b6f400 fix: realtime pipeline for trace ingestion into wrong stream (#6738)
fix: #6736
2025-05-07 09:31:39 +08:00
Hengfei Yang b9048cff3e fix: delete whole month by mistake (#6734) v0.14.6 2025-05-06 22:40:57 +08:00
ktx-akshay dbd6c1017b test(dashboard): add geomap and map test cases (#6722) 2025-05-06 19:14:13 +05:30