Commit graph

8978 commits

Author SHA1 Message Date
Ryan Ernst
3c129e7fce
Re-enable analysis stemmer test (#124961)
This test was disabled until exclusive entitlements were added.

closes #119130
2025-03-17 02:57:36 +11:00
John Verwolf
cb3c35783b
Bug Fix: System Data Streams Should Be Restorable (#124651)
This PR adds a new MetadataDeleteDataStreamService that allows us to delete system data streams prior to a restore operation.  This fixes a bug where system data streams were previously un-restorable.
2025-03-14 08:00:44 -07:00
Niels Bauman
f0eb8da172
Make DeleteSourceAndAddDownsampleToDS project-aware (#124808)
This is part of the work to make DLM project-aware.
2025-03-14 08:40:37 +00:00
Niels Bauman
af6eb8cc38
Run TransportGetDataStreamsAction on local node (#122852)
This action solely needs the cluster state, it can run on any node.
Additionally, it needs to be cancellable to avoid doing unnecessary work
after a client failure or timeout.

Relates #101805
2025-03-13 21:16:14 +00:00
Patrick Doyle
df7be39de3
Silence AWS entitlement warnings from ALL-UNNAMED (#124805) 2025-03-13 16:42:29 -04:00
Ignacio Vera
6036a1ef00
Build list of the right length in #finalizeSampling (#124762)
Avoid oversize list in internal aggregations.
2025-03-13 17:14:20 +01:00
Nick Tindall
74d61a4052
Retry when the server can't be resolved (#123852) 2025-03-13 12:38:04 +11:00
Mikhail Berezovskiy
ecb602de7f
change payload lower bound for resumable upload test (#124674) 2025-03-12 14:10:51 -07:00
Joe Gallo
d565304f4b
Fix geoip databases index access after system feature migration (take 3) (#124604) 2025-03-12 14:03:57 -04:00
Nik Everett
50aaa1c2a6
ESQL: Pragma to load from stored fields (#122891)
This creates a `pragma` you can use to request that fields load from a
stored field rather than doc values. It implements that pragma for
`keyword` and number fields.

We expect that, for some disk configuration and some number of fields,
that it's faster to load those fields from _source or stored fields than
it is to use doc values. Our default is doc values and on my laptop it's
*always* faster to use doc values. But we don't ship my laptop to every
cluster.

This will let us experiment and debug slow queries by trying to load
fields a different way.

You access this pragma with:
```
curl -HContent-Type:application/json -XPOST localhost:9200/_query?pretty -d '{
    "query": "FROM foo",
    "pragma": {
        "field_extract_preference": "STORED"
    }
}'
```

On a release build you'll need to add `"accept_pragma_risks": true`.
2025-03-12 09:40:42 -04:00
Mikhail Berezovskiy
053b037a9b
GCS blob store: add OperationPurpose/Operation stats counters (#122991) 2025-03-11 17:57:15 -07:00
Lee Hinman
dd2a5c691a
Add .monitoring exemption to DotPrefixValidator (#124158)
This was something we were planning on removing, but have not yet.

Resolves #124131
2025-03-12 10:06:14 +11:00
Patrick Doyle
5112dbbb3b
Reduce noise from NotEntitledException logging (#124511)
* Refactor: findRequestingFrame

* INFO instead of WARN for NotEntitledException.

Some of these are expected, so an INFO seems more appropriate.

The stack trace tends to attract attention even when entitlements are not the
cause of a problem, so let's avoid the stack trace, but still include stack
frame info from the frame of interest.

* Use child loggers for Not Entitled logs

* Use warn, and include compoenent name

* Fix ALL_UNNAMED

* Mute entitlement warnings from repositories

* PR feedback

* Common out the Not Entitled prefix.

We're alerting on this, so let's not rely on every caller of notEntitled to remember it.
2025-03-11 15:50:31 -04:00
Johannes Fredén
e11d89d76b
Bump nimbus-jose-jwt to 10.0.2 (#124544)
This bumps nimbus-jose-jwt from 10.0.1 -> 10.0.2
2025-03-12 00:23:33 +11:00
Luca Cavanna
def4c890bc
Fix concurrency issue in ScriptSortBuilder (#123757)
Inter-segment concurrency is disabled whenever sort by field, included script sorting, is used in a search request.

The reason why sort by field does not use concurrency is that there are some performance implications, given that the hit queue in Lucene is build per slice and the different search threads don't share information about the documents they have already visited etc.

The reason why script sort has concurrency disabled is that the script sorting implementation is not thread safe. This commit addresses such concurrency issue and re-enables search concurrency for search requests that use script sorting. In addition, missing tests are added to cover for sort scripts that rely on _score being available and top_hits aggregation with a scripted sort clause.
2025-03-10 21:10:53 +01:00
Lorenzo Dematté
b8f1faac8d
remove addess to home/.aws for repository-s3 (#124190) 2025-03-08 23:30:17 +01:00
Lorenzo Dematté
a753d4392a
Revert "missing file entitlement used by google-http-client for oauth2 (#123985)" (#124329)
This reverts commit 404c9e6290.
2025-03-08 23:17:53 +01:00
Joe Gallo
0e87e8454d
DateProcessor refactoring (#124349) 2025-03-08 09:03:50 -05:00
David Turner
88eeb8a5a1
Refactor SnapshotInfo dataflow in finalization (#124336)
There's no need to have a `SnapshotInfo` consumer to run at the end of
finalization, we only pass it the value we already calculated earlier.
This replaces it with a bare `Runnable` instead.
2025-03-08 09:17:13 +11:00
Alexey Ivanov
02f01af2a0
Change setting's deprecation message wording (#120718)
Depending on whether a message is critical or warning a message should
indicate to check breaking changes documentation (critical level) or
deprecation changes documentation (warn level)

relates #79666
2025-03-07 15:31:55 +00:00
Simon Cooper
b218f698f1
Remove 7.13 and 7.14 transport versions (#124115) 2025-03-07 08:19:56 +00:00
Niels Bauman
20e186a252
Make enrich project-aware (#124099)
Makes the execution and use of enrich policies project-aware.
Note: this does not make the enrich cache project-aware. That is to be
handled in a follow-up PR.
2025-03-06 19:20:46 +01:00
Joe Gallo
54c826532c
Refactor RegisteredDomainProcessorTests (#124175) 2025-03-06 11:01:12 -05:00
Francisco Fernández Castaño
387eef070c
Enhance memory accounting for document expansion and introduce max document size limit (#123543)
This commit improves memory accounting by incorporating document
expansion during shard bulk execution. Additionally, it introduces a new
limit on the maximum document size, which defaults to 5% of the
available heap.

This limit can be configured using the new setting:

indexing_pressure.memory.max_operation_size
These changes help prevent excessive memory consumption and
improve indexing stability.

Closes ES-10777
2025-03-06 11:26:49 +01:00
Yang Wang
a9432ba07a
Limit the log line length for s3 deletion error (#123953)
If all items fail to delete, the current warning log builds a huge
string to include all of them (up to 1000). This PR limits the string
length to first 10 entries.

Relates: #123630
2025-03-06 12:02:27 +11:00
Joe Gallo
d7b8b728e9
Cleanup RegisteredDomainProcessor (#124123) 2025-03-05 17:05:07 -05:00
Lee Hinman
47706b505f
Add index mode to get data stream API (#122486)
This commit adds the `index_mode` for both the data stream and each
backing index to the output of `GET /_data_stream`. An example looks
like:

```
{
  "data_streams" : [
    {
      "name" : "foo-things",
      "indices" : [
        {
          "index_name" : ".ds-foo-things-2025.02.13-000001",
          ...
          "index_mode" : "standard"
        }
      ],
      ...
      "index_mode" : "standard"
    },
    {
      "name" : "logs-foo-bar",
      "indices" : [
        {
          "index_name" : ".ds-logs-foo-bar-2025.02.13-000001",
          ...
          "index_mode" : "logsdb"
        },
        {
          "index_name" : ".ds-logs-foo-bar-2025.02.13-000002",
          ...
          "index_mode" : "logsdb"
        }
      ],
      ...
      "index_mode" : "logsdb",
    }
  ]
}
```
2025-03-06 07:39:58 +11:00
Oleksandr Kolomiiets
99262c6256
Use FallbackSyntheticSourceBlockLoader for boolean and date fields (#124050) 2025-03-05 11:43:47 -08:00
Benjamin Trent
a92b1d6892
Adjust exception thrown when unable to load hunspell dict (#123743)
On index creation, its possible to configure an hunspell analyzer, but
reference a locale file that actually doesn't exist or isn't accessible.

This error, like our other user dictionary errors, should be an IAE not
an ISE.

closes: https://github.com/elastic/elasticsearch/issues/123729
2025-03-06 06:19:21 +11:00
Joe Gallo
65a8e778e3
Cleanup RegisteredDomainProcessorTests (#124118) 2025-03-05 13:19:12 -05:00
Gal Lalouche
a6e47ae85b
Refactor FieldCapabilities creation by adding a proper builder object (#121310)
Reduce boilerplate associated with creating `FieldCapabilities` instances.
Since it's a class with a huge number of fields, it makes sense to define a builder object, as that can also help with all the Boolean and null blindness going on.
Note while there is a static Builder class in `FieldCapabilities`, it is not a proper builder object (no setters, still need to pass a lot of otherwise default parameters) and also package-private. To avoid changing that, I defined a new `FieldCapabilitiesBuilder` class. I also went over the code and refactored places which used the old constructor.
2025-03-05 13:09:36 +01:00
Rene Groeschke
496c38e5a5
Reapply "Update Gradle wrapper to 8.13 (#122421)" (#123889) (#123896)
This reverts commit 36660f2e5f.
2025-03-05 08:02:13 +01:00
David Turner
77a3d30d26
Remove trappy timeouts from IndicesAliasesRequest (#123987)
Relates #107984
2025-03-05 02:11:50 +11:00
Lorenzo Dematté
404c9e6290
missing file entitlement used by google-http-client for oauth2 (#123985) 2025-03-04 16:06:44 +01:00
Lorenzo Dematté
c663e3ded8
Add missing APM entitlements (#123462) 2025-03-04 08:32:59 +01:00
Jordan Powers
737ab62393
Enable a sparse doc values index for @timestamp in time-series indices (#123191)
This patch builds on the work done in #122161 by also enabling the sparse doc values index for @timestamp in time-series indices.
2025-03-03 11:29:38 -08:00
Pooya Salehi
113f0c17cc
Limit number of suppressed S3 deletion errors (#123630)
We've seen this being an issue on 7.x although can happen on all 
versions (I'm pretty sure this PR doesn't cleanly back-port to 7.x
though).

Closes https://github.com/elastic/elasticsearch/issues/123354
2025-03-04 03:06:27 +11:00
Rene Groeschke
36660f2e5f
Revert "Update Gradle wrapper to 8.13 (#122421)" (#123889)
This reverts commit e19b2264af.
2025-03-03 15:51:07 +01:00
Rene Groeschke
e19b2264af
Update Gradle wrapper to 8.13 (#122421)
* Fix Gradle Deprecation warning as declaring an is- property with a Boolean type has been deprecated.
* Make use of new layout.settingsFolder api to address some cross project references
* Fix buildParams snapshot check for multiprojet projects
2025-03-03 14:10:00 +01:00
Luca Cavanna
8baba58529
Address TopFieldCollectorManager and TopScoreDocCollectorManager related deprecation warnings (#123615)
The supportsConcurrency flag has been deprecated in Lucene,
see https://github.com/apache/lucene/pull/13977 .
2025-03-03 10:38:52 +01:00
Simon Cooper
82668b40f4
Add basic implementations of float-byte script comparisons (#122381)
Add implementations of `cosineSimilarity` and `dotProduct` to query byte vector fields using float vectors
2025-03-03 09:38:37 +00:00
Yang Wang
5697f7f016
Make GeoIpDownload work for default project explicitly (#123845)
GeoIpDownloaderTaskExecutor needs to be made project aware eventually.
In the meantime, to unblock tests, this PR makes the stopping action
work explicitly for the default project only.
2025-03-03 20:27:55 +11:00
Lorenzo Dematté
678738acc0
[Entitlements] Add URLConnection instrumentation (#123503) 2025-03-03 08:40:53 +01:00
Lorenzo Dematté
850d48a944
Missing policies for netty, discovery-azure and repository-s3 (#123696) 2025-03-02 22:34:38 +01:00
Martijn van Groningen
086329c5cb
Tidy up some noise during indexing with synthetic source. (#123724) 2025-02-28 16:52:17 +00:00
Ievgen Degtiarenko
201a37012d
Document how to enable tracing (#123713) 2025-02-28 16:16:04 +01:00
Lorenzo Dematté
6be0887778
Missing geoip policy (#123597) 2025-02-28 12:06:05 +01:00
Alexey Ivanov
ab835a96b1
Update elastic-apm-agent to support Java 24 (#123052)
Updates elastic-apm-agent to 1.52.2 to support Java 24.
2025-02-28 00:14:33 +00:00
Joe Gallo
37f0b3c932
Adjust the versions for :modules:ingest-geoip:qa:full-cluster-restart 2025-02-27 16:00:49 -05:00
Tim Vernum
1d3106f288 Merge branch 'feature/multi-project' 2025-02-27 19:51:21 +11:00