5.1.2 Release Notes

edit

Also see Breaking changes in 5.1.

Enhancements

edit
Internal
  • Don’t output null source node in RecoveryFailedException #21963
Mapping
  • Only update DocumentMapper if field type changes #22165
Network
Plugins
  • Provide helpful error message if a plugin exists #22305 (issue: #22084)
  • Add shutdown hook for closing CLI commands #22126 (issue: #22111)

Bug fixes

edit
Aggregations
  • Allow terms aggregations on pure boolean scripts. #22201 (issue: #20941)
  • IP range masks exclude the maximum address of the range. #22018 (issue: #22005)
  • Fix other_bucket on the filters agg to be enabled if a key is set. #21994 (issue: #21951)
Allocation
  • Promote shadow replica to primary when initializing primary fails #22021
  • Trim in-sync allocations set only when it grows #21976 (issue: #21719)
Analysis
  • Pre-built analysis factories do not implement MultiTermAware correctly. #21981
CRUD
  • Reject external versioning and explicit version numbers on create #21998
Core
  • Support negative numbers in readVLong #22314
Exceptions
  • Fixing shard recovery error message to report the number of docs correctly for each node #22515 (issue: #21893)
Index APIs
  • Ensure shrunk indices carry over version information from its source #22469 (issue: #22373)
Java REST Client
  • Don’t use null charset in RequestLogger #22197 (issue: #22190)
Mapping
  • The _all default mapper is not completely configured. #22236
  • Fix MapperService.allEnabled(). #22227
Nested Docs
  • Fix bug in query builder rewrite that ignores the ignore_unmapped option #22456
Packaging
  • Another fix for handling of paths on Windows #22132 (issue: #21921)
Percolator
  • Fix NPE in percolator’s now range check for percolator queries with range queries #22356 (issue: #22355)
Plugin Lang Painless
  • Update Painless Loop Counter to be Higher #22560 (issue: #22508)
Plugin Repository Azure
Recovery
  • Fix primary relocation for shadow replicas #22474 (issue: #20300)
  • Don’t close store under CancellableThreads #22434 (issue: #22325)
  • Use a fresh recovery id when retrying recoveries #22325 (issue: #22043)
  • Allow flush/force_merge/upgrade on shard marked as relocated #22078 (issue: #22043)
Reindex API
  • Don’t close rest client from its callback #22061 (issue: #22027)
Search
  • Improve concurrency of ShardCoreKeyMap. #22316
  • Make -0 compare less than +0 consistently. #22173 (issue: #22167)
  • FiltersAggregationBuilder: rewriting filter queries, the same way as in FilterAggregationBuilder #22076
Stats
  • Implement stats for geo_point and geo_shape field #22391 (issue: #22384)
  • Use reader for doc stats #22317 (issue: #22285)
  • Avoid NPE in NodeService#stats if HTTP is disabled #22060 (issue: #22058)
  • Add support for "include_segment_file_sizes" in indices stats REST handler #21879 (issue: #21878)
Term Vectors
  • Fix _termvectors with preference to not hit NPE #21959
  • Return correct term statistics when a field is not found in a shard #21922 (issue: #21906)

Regressions

edit
Logging
  • Restores the original default format of search slow log #21770 (issue: #21711)