forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 2024/05/30/do-not-request-gaps-when-sub-rang…
…e-is-completed
- Loading branch information
Showing
33 changed files
with
760 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
pr: 105709 | ||
summary: Disable validate when rewrite parameter is sent and the index access control | ||
list is non-null | ||
summary: Apply stricter Document Level Security (DLS) rules for the validate query API with the rewrite parameter. | ||
area: Security | ||
type: bug | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
pr: 105714 | ||
summary: Cross check livedocs for terms aggs when index access control list is non-null | ||
summary: Apply stricter Document Level Security (DLS) rules for terms aggregations when min_doc_count is set to 0. | ||
area: "Aggregations" | ||
type: bug | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 109078 | ||
summary: Expose API Key cache metrics | ||
area: Authentication | ||
type: enhancement | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 109174 | ||
summary: "ESQL: Change \"substring\" function to not return null on empty string" | ||
area: ES|QL | ||
type: bug | ||
issues: [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
pr: 109205 | ||
summary: "ESQL: Fix `IpPrefix` function not handling correctly `ByteRefs`" | ||
area: ES|QL | ||
type: bug | ||
issues: | ||
- 109198 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
85 changes: 85 additions & 0 deletions
85
server/src/main/java/org/elasticsearch/cluster/routing/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
/** | ||
* <p>The cluster routing package provides routing information and manages shard | ||
* allocations in a cluster. The routing part contains two different views of | ||
* shards in {@link org.elasticsearch.cluster.routing.RoutingTable} and | ||
* {@link org.elasticsearch.cluster.routing.RoutingNodes}. RoutingTable provides | ||
* a view from index to shard to node. RoutingNodes provides view from node to | ||
* shard. Shard allocation is a process of assigning and moving shards between | ||
* nodes. For more details about allocation see | ||
* {@link org.elasticsearch.cluster.routing.allocation}.</p> | ||
* | ||
* <b>Routing Table</b> | ||
* | ||
* <p>The routing table provide a view of global cluster state from an index | ||
* perspective. It's a mapping from indices to shards and shards to nodes, where | ||
* the relationship between shard and node may not exist if a shard | ||
* allocation is not possible. | ||
* | ||
* <p>{@link org.elasticsearch.cluster.routing.RoutingTable} is the access | ||
* point to the routing information. RoutingTable is a part of the | ||
* {@link org.elasticsearch.cluster.ClusterState}. It maps index names to | ||
* {@link org.elasticsearch.cluster.routing.IndexRoutingTable}. | ||
* {@link org.elasticsearch.cluster.routing.IndexRoutingTable}, in turn, | ||
* holds a list of shards in that index, | ||
* {@link org.elasticsearch.cluster.routing.IndexShardRoutingTable}. Each | ||
* shard has one or more instances: a primary and replicas. An | ||
* IndexShardRoutingTable contains information about all shard instances for | ||
* a specific shard, {@link org.elasticsearch.cluster.routing.ShardRouting}. | ||
* The ShardRouting is the state of a shard instance in a cluster. There are | ||
* several states of ShardRouting: unassigned, initializing, relocating, | ||
* started.</p> | ||
* | ||
* An example of routing table: | ||
* | ||
* <pre> | ||
* {@code | ||
* └── ClusterState | ||
* └── RoutingTable | ||
* ├── index1-IndexRoutingTable | ||
* │ ├── shard1-IndexShardRoutingTable | ||
* │ │ ├── primary-ShardRouting | ||
* │ │ │ └── STARTED-node1 | ||
* │ │ ├── replica1-ShardRouting | ||
* │ │ │ └── INITIALIZING-node2 | ||
* │ │ └── replica2-ShardRouting | ||
* │ │ └── UNASSIGNED | ||
* │ └── shard2-IndexShardRoutingTable ... | ||
* └── index2-IndexRoutingTable ... | ||
* } | ||
* </pre> | ||
* | ||
* | ||
* <b>Routing Nodes</b> | ||
* | ||
* <p>{@link org.elasticsearch.cluster.routing.RoutingNode} provides a view | ||
* from node to shard routing. There is a RoutingNode for every | ||
* {@link org.elasticsearch.cluster.node.DiscoveryNode}. It contains | ||
* information about all shards and their state on this node. | ||
* {@link org.elasticsearch.cluster.routing.RoutingNodes} (plural) provide | ||
* aggregated view from all cluster nodes. It supports finding all shards by | ||
* specific node or finding all nodes for specific shard.</p> | ||
* | ||
* <b>Reroute</b> | ||
* | ||
* <p>Reroute is a process of routing update in the cluster. Routing update | ||
* may start allocation process, which assign or move shards around. When | ||
* cluster has an update that impacts routing (for example: node join | ||
* cluster, index created, snapshot restored, ...) the code that handles | ||
* cluster update should trigger reroute. There are 2 ways to trigger reroute - | ||
* batched with | ||
* {@link org.elasticsearch.cluster.routing.BatchedRerouteService} and | ||
* unbatched | ||
* {@link org.elasticsearch.cluster.routing.allocation.AllocationService}. | ||
* Batched reroute can combine multiple requests into one (used when starting | ||
* initializing shards). Unbatched reroute allows to mix other cluster state | ||
* changes that might be required to create or delete index.</p> | ||
*/ | ||
package org.elasticsearch.cluster.routing; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.