5.6.0 Release Notes

edit

Also see Breaking changes in 5.6.

Breaking MSI Windows Installer changes

edit
Upgrades from 5.5.0, 5.5.1, 5.5.2. See release notes
  • ES_HOME and ES_CONFIG environment variables unset after successful upgrade
  • Windows Service stopped after successful upgrade

Breaking Java changes

edit
Java High Level REST Client
  • Allow RestHighLevelClient to use plugins #25024
Java REST Client

Deprecations

edit
Highlighting
  • Postings highlighter deprecation #25073
Indexed Scripts/Templates
  • Scripting: Deprecate stored search template apis #25437 (issue: #24596)
Mapping
  • Add deprecation logging when _all is enabled #26228 (issue: #22144)
Query DSL
  • Deprecate omitting terms lookup index name in 5.6 #25755 (issue: #25750)
Scripting
  • Scripting: Deprecate scripts.max_compilation_per_minute setting #26402
  • Scripting: Change keys for inline/stored scripts to source/id #25127
Tribe Node

New features

edit
Java High Level REST Client
Parent/Child
  • Typeless parent child backport #25104
  • Move parent_id query to the parent-join module #25072 (issue: #20257)
  • Introduce ParentJoinFieldMapper, a field mapper that creates parent/child relation within documents of the same index #24978 (issue: #20257)
Upgrade API
  • TemplateUpgraders should be called during rolling restart #25263 (issues: #24379, #24680)

Enhancements

edit
Allocation
  • Adjust status on bad allocation explain requests #25503 (issue: #25458)
  • Promote replica on the highest version node #25277 (issue: #10708)
Analysis
  • [analysis-icu] Allow setting unicodeSetFilter #20814 (issue: #20820)
CAT API
  • expand /_cat/nodes to return information about hard drive #21775 (issue: #21679)
Cluster
  • Validate a joining node’s version with version of existing cluster nodes #25808
Core
  • Add max file size bootstrap check #25974
  • Explicitly reject duplicate data paths #25178
Highlighting
  • Picks offset source for the unified highlighter directly from the es mapping #25747 (issue: #25699)
Index APIs
  • Create index request should return the index name #25139 (issue: #23044)
Ingest
  • Add Ingest-Processor specific Rest Endpoints & Add Grok endpoint #25059 (issue: #24725)
  • Port support for commercial GeoIP2 databases from Logstash. #24889
  • Allow removing multiple fields in ingest processor #24750 (issue: #24622)
  • Add target_field parameter to ingest processors #24133 (issues: #23228, #23682)
Internal
  • Use holder pattern for lazy deprecation loggers #26218 (issue: #26210)
  • "shard started" should show index and shard ID #25157
  • Break out clear scroll logic from TransportClearScrollAction #25125 (issue: #25094)
  • Add helper methods to TransportActionProxy to identify proxy actions and requests #25124
  • Add remote cluster infrastructure to fetch discovery nodes. #25123 (issue: #25094)
  • Disallow multiple parent-join fields per mapping #25002
Java High Level REST Client
  • [DOCS] restructure java clients docs pages #25517
  • Use SPI in High Level Rest Client to load XContent parsers #25098 (issues: #25024, #25097)
Java REST Client
  • Shade external dependencies in the rest client jar #25780 (issue: #25208)
  • RestClient uses system properties and system default SSLContext #25757 (issue: #23231)
Logging
  • Use LRU set to reduce repeat deprecation messages #25474 (issue: #25457)
Mapping
  • Optimize terms queries on ip addresses to use a PointInSetQuery whenever possible. #25669 (issue: #25667)
Network
  • Simplify connection closing and cleanups in TcpTransport #25250
Packaging
  • Remove memlock suggestion from systemd service #25979
  • Set address space limit in systemd service file #25975
Parent/Child
  • Remove ParentJoinFieldSubFetchPhase #25550 (issue: #25363)
  • Support parent id being specified as number in the _source #25547
Query DSL
  • Make slop optional when parsing span_near query #25677 (issue: #25642)
Search
  • Reduce the overhead of timeouts and low-level search cancellation. #25776
  • Reduce profiling overhead. #25772 (issue: #24799)
  • Backport can_match endpoint to 5.6 to allow 6.0 to use the optimization in mixed version #25704 (issue: #25658)
  • Add a shard filter search phase to pre-filter shards based on query rewriting #25658
  • Ensure we rewrite common queries to match_none if possible #25650
  • Limit the number of concurrent shard requests per search request #25632
  • Add cluster name validation to RemoteClusterConnection #25568
  • Leverage scorerSupplier when applicable. #25109
  • Add cross-cluster search support for scroll searches #25094
Sequence IDs
  • 5.x - Move primary term from ReplicationRequest to ConcreteShardRequest #25824 (issue: #25822)
  • Forward compatibility for primary context handoff on 6.x #25545 (issue: #25468)
Settings
  • Emit settings deprecation logging at most once #25457
  • IndexMetaData: Introduce internal format index setting #25292
Snapshot/Restore
  • Improves snapshot logging and snapshot deletion error handling #25264
Stats
  • Update IndexShard#refreshMetric via a ReferenceManager.RefreshListener #25083 (issues: #24806, #25052)

Bug fixes

edit
Aggregations
  • Fixes array out of bounds for value count agg #26038 (issue: #17379)
Aliases
  • mget with an alias shouldn’t ignore alias routing #25697 (issue: #25696)
Allocation
Analysis
  • Pre-configured shingle filter should disable graph analysis #25853 (issue: #25555)
CRUD
  • Serialize and expose timeout of acknowledged requests in REST layer (ES 5.6) #26213 (issue: #26189)
Cluster
  • Register setting cluster.indices.tombstones.size #26193 (issue: #26191)
Core
  • Release operation permit on thread-pool rejection #25930 (issue: #25863)
  • Node should start up despite of a lingering .es_temp_file #21210 (issue: #21007)
Discovery
  • MasterNodeChangePredicate should use the node instance to detect master change #25877 (issue: #25471)
Engine
  • Engine - Do not store operations that are not index into lucene in the translog (5.x only) #25592
Geo
  • Fix GeoPoint FieldStats ternary logic bug #25211 (issue: #24275)
Highlighting
  • Fix nested query highlighting #26305 (issue: #26230)
  • FastVectorHighlighter should not cache the field query globally #25197 (issue: #25171)
Index APIs
  • Shrink API should ignore templates #25380 (issue: #25035)
  • Rollover max docs should only count primaries #24977 (issue: #24217)
Ingest
  • Sort Processor does not have proper behavior with targetField #25237 (issue: #24133)
Inner Hits
  • Fix inner hits to work with queries wrapped in an indices query #26138 (issue: #26133)
  • When fetching nested inner hits only access stored fields when needed #25864 (issue: #6)
Internal
  • Fix BytesReferenceStreamInput#skip with offset #25634
  • Fix race condition in RemoteClusterConnection node supplier #25432
  • Initialise empty lists in BaseTaskResponse constructor #25290
Java High Level REST Client
  • Register ip_range aggregation with the high level client #26383
  • add top hits as a parsed aggregation to the rest high level client #26370
Logging
  • Lazy initialize deprecation logger in parser #26210 (issue: #25879)
  • Allow not configure logging without config #26209 (issues: #20575, #24076)
  • Declare XContent deprecation logger as static #25881 (issue: #25879)
Mapping
  • ICUCollationKeywordFieldMapper use SortedSetDocValuesField #26267
  • Fixed bug that mapper_parsing_exception is thrown for numeric field with ignore_malformed=true when inserting "NaN" #25967 (issue: #25289)
  • Coerce decimal strings for whole number types by truncating the decimal part #25835 (issue: #25819)
  • Fix parsing of ip range queries. #25768 (issue: #25636)
  • Remove fielddata:false from mappings of non-analyzed strings. #25542
  • Disable date field mapping changing #25285 (issue: #25271)
  • token_count datatype should handle null value #25046 (issue: #24928)
  • keep _parent field while updating child type mapping #24407 (issue: #23381)
Nested Docs
  • In case of a single type the _id field should be added to the nested document instead of _uid field #25149
Network
  • Release pipelined http responses on close #26226
  • Ensure pending transport handlers are invoked for all channel failures #25150
Packaging
  • setgid on /etc/elasticearch on package install #26412 (issue: #26410)
  • Stop disabling explicit GC #25759
  • Avoid failing install if system-sysctl is masked #25657 (issue: #24234)
  • Get short path name for native controllers #25344
  • When stopping via systemd only kill the JVM, not its control group #25195
Parent/Child
  • The default _parent field should not try to load global ordinals #25851 (issue: #25849)
Plugin Lang Painless
  • Painless: allow doubles to be casted to longs. #25936
Plugin Repository HDFS
  • Upgrading HDFS Repository Plugin to use HDFS 2.8.1 Client #25497 (issue: #25450)
Query DSL
  • Parse "*" in query_string_query as MatchAllDocsQuery #25872 (issues: #25556, #25726)
  • SpanNearQueryBuilder should return the inner clause when a single clause is provided #25856 (issue: #25630)
  • WrapperQueryBuilder should also rewrite the parsed query #25480
REST
  • Fix handling of exceptions thrown on HEAD requests #25172 (issue: #21125)
Search
  • Fix term(s) query for range field #25918
  • Caching a MinDocQuery can lead to wrong results. #25909
  • First increment shard stats before notifying and potentially sending response #25818
  • Remove assertion about deviation when casting to a float. #25806 (issue: #25330)
  • Prevent skipping shards if a suggest builder is present #25739 (issue: #25658)
  • Ensure remote cluster alias is preserved in inner hits aggs #25627 (issue: #25606)
  • Do not search locally if remote index pattern resolves to no indices #25436 (issue: #25426)
Settings
  • Fix settings serialization to not serialize secure settings or not take the total size into account #25323
  • Keystore CLI should use the AddFileKeyStoreCommand for files #25298
Snapshot/Restore
  • Snapshot/Restore: fix NPE while handling null failure reasons #26127 (issues: #25878, #25941)
  • Snapshot/Restore: Ensure that shard failure reasons are correctly stored in CS #25941 (issue: #25878)
  • Output all empty snapshot info fields if in verbose mode #25455 (issue: #24477)
Stats
  • _nodes/stats should not fail due to concurrent AlreadyClosedException #25016 (issue: #23099)
Suggesters
  • Context suggester should filter doc values field #25858 (issue: #25404)

Upgrades

edit
Network
Upgrade API
  • Improve stability and logging of TemplateUpgradeServiceIT tests #25386 (issue: #25382)