Subject: CVS commit: pkgsrc/databases/elasticsearch
From: Filip Hajny
Date: 2017-09-27 14:33:36
Message id: 20170927123336.3B2E7FA9C@cvs.NetBSD.org

Log Message:
Update databases/elasticsearch to 5.6.2.

== 5.6.2 Release Notes

=== Bug fixes

Aggregations::
- Do not delegate a null scorer to LeafBucketCollectors

Inner Hits::
- Do not allow inner hits that fetch _source and have a non nested
  object field as parent

Internal::
- Catch exceptions and inform handler in
  RemoteClusterConnection#collectNodes

Java API::
- BulkProcessor flush runnable preserves the thread context from
  creation time

Java High Level REST Client::
- Make RestHighLevelClient's Request class public

Plugin Analysis Kuromoji::
- Fix kuromoji default stoptags

Plugin Repository HDFS::
- Fix permission errors when using Read Only HDFS Repository

Query DSL::
-  Fixed incomplete JSON body on count request making
   org.elasticsearch.rest.action.RestActions#parseTopLevelQueryBuilder
   go into endless loop

Scripting::
- Add missing script contexts and types allowed settings

Upgrade API::
- Upgrade API: fix excessive logging and unnecessary template updates

=== Upgrades

Logging::
- Upgrade to Log4j 2.9.1

== 5.6.1 Release Notes

=== Bug fixes

Highlighting::
- Fix percolator highlight sub fetch phase to not highlight query twice

Mapping::
- Fix unmapped_type creation for indices created in 2.x

Similarities::
- Add boolean similarity to built in similarity types

=== Upgrades

Core::
- Upgrade to Lucene-6.6.1.

== 5.6.0 Release Notes

=== Breaking Java changes

Java High Level REST Client::
- Allow RestHighLevelClient to use plugins

Java REST Client::
- Rename client artifacts

=== Deprecations

Highlighting::
- Postings highlighter deprecation

Indexed Scripts/Templates::
- Scripting: Deprecate stored search template apis

Mapping::
- Add deprecation logging when _all is enabled

Query DSL::
- Deprecate omitting terms lookup index name in 5.6

Scripting::
- Scripting: Deprecate scripts.max_compilation_per_minute setting
- Scripting: Change keys for inline/stored scripts to source/id

Tribe Node::
- Deprecate tribe service

=== New features

Java High Level REST Client::
- Backport high level REST client

Parent/Child::
- Typeless parent child backport
- Move parent_id query to the parent-join module
- Introduce ParentJoinFieldMapper, a field mapper that creates
  parent/child relation within documents of the same index

Upgrade API::
- TemplateUpgraders should be called during rolling restart

=== Enhancements

Allocation::
- Adjust status on bad allocation explain requests
- Promote replica on the highest version node

Analysis::
- [analysis-icu] Allow setting unicodeSetFilter

CAT API::
- expand `/_cat/nodes` to return information about hard drive

Cluster::
- Validate a joining node's version with version of existing cluster
  nodes

Core::
- Add max file size bootstrap check
- Explicitly reject duplicate data paths

Highlighting::
- Picks offset source for the unified highlighter directly from the es
  mapping

Index APIs::
- Create index request should return the index name

Ingest::
- Add Ingest-Processor specific Rest Endpoints & Add Grok endpoint
- Port support for commercial GeoIP2 databases from Logstash.
- Allow removing multiple fields in ingest processor
- Add target_field parameter to ingest processors

Internal::
- Use holder pattern for lazy deprecation loggers
- "shard started" should show index and shard ID
- Break out clear scroll logic from TransportClearScrollAction
- Add helper methods to TransportActionProxy to identify proxy actions
  and requests
- Add remote cluster infrastructure to fetch discovery nodes.
- Disallow multiple parent-join fields per mapping

Java High Level REST Client::
- [DOCS] restructure java clients docs pages
- Use SPI in High Level Rest Client to load XContent parsers

Java REST Client::
- Shade external dependencies in the rest client jar
- RestClient uses system properties and system default SSLContext

Logging::
- Use LRU set to reduce repeat deprecation messages

Mapping::
- Optimize `terms` queries on `ip` addresses to use a `PointInSetQuery`
  whenever possible.

Network::
- Simplify connection closing and cleanups in TcpTransport

Packaging::
- Remove memlock suggestion from systemd service
- Set address space limit in systemd service file

Parent/Child::
- Remove ParentJoinFieldSubFetchPhase
- Support parent id being specified as number in the _source

Query DSL::
- Make slop optional when parsing `span_near` query

Search::
- Reduce the overhead of timeouts and low-level search cancellation.
- Reduce profiling overhead.
- Backport `can_match` endpoint to 5.6 to allow 6.0 to use the
  optimization in mixed version
- Add a shard filter search phase to pre-filter shards based on query
  rewriting
- Ensure we rewrite common queries to `match_none` if possible
- Limit the number of concurrent shard requests per search request
- Add cluster name validation to RemoteClusterConnection
- Leverage scorerSupplier when applicable.
- Add Cross Cluster Search support for scroll searches

Sequence IDs::
- 5.x - Move primary term from ReplicationRequest to
  ConcreteShardRequest
- Forward compatibility for primary context handoff on 6.x

Settings::
- Emit settings deprecation logging at most once
- IndexMetaData: Introduce internal format index setting

Snapshot/Restore::
- Improves snapshot logging and snapshot deletion error handling

Stats::
- Update `IndexShard#refreshMetric` via a
  `ReferenceManager.RefreshListener`

=== Bug fixes

Aggregations::
- Fixes array out of bounds for value count agg

Aliases::
- mget with an alias shouldn't ignore alias routing

Allocation::
- Allow wildcards for shard IP filtering

Analysis::
- Pre-configured shingle filter should disable graph analysis

CRUD::
- Serialize and expose timeout of acknowledged requests in REST layer
  (ES 5.6)

Cluster::
- Register setting `cluster.indices.tombstones.size`

Core::
- Release operation permit on thread-pool rejection
- Node should start up despite of a lingering `.es_temp_file`

Discovery::
- MasterNodeChangePredicate should use the node instance to detect
  master change

Engine::
- Engine - Do not store operations that are not index into lucene in the
  translog (5.x only)

Geo::
- Fix GeoPoint FieldStats ternary logic bug

Highlighting::
- Fix nested query highlighting
- FastVectorHighlighter should not cache the field query globally

Index APIs::
- Shrink API should ignore templates
- Rollover max docs should only count primaries

Ingest::
- Sort Processor does not have proper behavior with targetField

Inner Hits::
- Fix inner hits to work with queries wrapped in an indices query
- When fetching nested inner hits only access stored fields when needed

Internal::
- Fix BytesReferenceStreamInput#skip with offset
- Fix race condition in RemoteClusterConnection node supplier
- Initialise empty lists in BaseTaskResponse constructor

Java High Level REST Client::
- Register ip_range aggregation with the high level client
- add top hits as a parsed aggregation to the rest high level client

Logging::
- Lazy initialize deprecation logger in parser
- Allow not configure logging without config
- Declare XContent deprecation logger as static

Mapping::
- ICUCollationKeywordFieldMapper use SortedSetDocValuesField
- Fixed bug that mapper_parsing_exception is thrown for numeric field
  with ignore_malformed=true when inserting "NaN"
- Coerce decimal strings for whole number types by truncating the
  decimal part
- Fix parsing of ip range queries.
- Remove `fielddata:false` from mappings of non-analyzed strings.
- Disable date field mapping changing
- token_count datatype should handle null value
- keep _parent field while updating child type mapping

Nested Docs::
- In case of a single type the _id field should be added to the nested
  document instead of _uid field

Network::
- Release pipelined http responses on close
- Ensure pending transport handlers are invoked for all channel failures

Packaging::
- setgid on /etc/elasticearch on package install
- Stop disabling explicit GC
- Avoid failing install if system-sysctl is masked
- Get short path name for native controllers
- When stopping via systemd only kill the JVM, not its control group

Parent/Child::
- The default _parent field should not try to load global ordinals

Plugin Lang Painless::
- Painless: allow doubles to be casted to longs.

Plugin Repository HDFS::
- Upgrading HDFS Repository Plugin to use HDFS 2.8.1 Client

Query DSL::
- Parse "*" in query_string_query as MatchAllDocsQuery
- SpanNearQueryBuilder should return the inner clause when a single
  clause is provided
- WrapperQueryBuilder should also rewrite the parsed query

REST::
- Fix handling of exceptions thrown on HEAD requests

Search::
- Fix term(s) query for range field
- Caching a MinDocQuery can lead to wrong results.
- First increment shard stats before notifying and potentially sending
  response
- Remove assertion about deviation when casting to a float.
- Prevent skipping shards if a suggest builder is present
- Ensure remote cluster alias is preserved in inner hits aggs
- Do not search locally if remote index pattern resolves to no indices

Settings::
- Fix settings serialization to not serialize secure settings or not
  take the total size into account
- Keystore CLI should use the AddFileKeyStoreCommand for files

Snapshot/Restore::
- Snapshot/Restore: fix NPE while handling null failure reasons
- Snapshot/Restore: Ensure that shard failure reasons are correctly
  stored in CS
- Output all empty snapshot info fields if in verbose mode

Stats::
- _nodes/stats should not fail due to concurrent AlreadyClosedException

Suggesters::
- Context suggester should filter doc values field

=== Upgrades

Network::
- Upgrade to Netty 4.1.13.Final

Upgrade API::
- Improve stability and logging of TemplateUpgradeServiceIT tests

== 5.5.3 Release Notes

=== Deprecations

Mapping::
- Add deprecation logging when _all is enabled

=== Bug fixes

Packaging::
- setgid on /etc/elasticearch on package install

Files:
RevisionActionfile
1.33modifypkgsrc/databases/elasticsearch/Makefile
1.22modifypkgsrc/databases/elasticsearch/PLIST
1.34modifypkgsrc/databases/elasticsearch/distinfo