Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reset failed allocation counter before executing routing commands #41050

Closed
wants to merge 322 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
322 commits
Select commit Hold shift + click to select a range
6d95386
Simplify handling of keyword field normalizers (#42002)
romseygeek May 10, 2019
f42dcf2
Docs: Tweak list formatting
costin May 10, 2019
da4899f
[ML] adding pivot.max_search_page_size option for setting paging size…
benwtrent May 10, 2019
7953f9a
Remove close method in PageCacheRecycler/Recycler (#41917)
jaymode May 10, 2019
71dd6e5
Mute failing AsyncTwoPhaseIndexerTests
davidkyle May 10, 2019
31a7df8
Remove reference to fs.data.spins in docs
jasontedor May 10, 2019
eb42fa8
Change IndexAnalyzers default analyzer access (#42011)
May 10, 2019
74a7438
Prevent order being lost for _nodes API filters (#42045)
astefan May 10, 2019
5cbce31
Cleanup plugin bin directories (#41907)
rjernst May 10, 2019
7a88c4a
Fix debian-8 update (#42056)
rjernst May 10, 2019
f97606e
Don't create tempdir for cli scripts (#41913)
rjernst May 10, 2019
afba887
Remove global checkpoint assertion in peer recovery (#41987)
dnhatn May 10, 2019
0192fe7
Add documentation for calendar/fixed intervals (#41919)
polyfractal May 10, 2019
ac34af5
[ML] adds geo_centroid aggregation support to data frames (#42088)
benwtrent May 10, 2019
8084519
Make packaging tests use jdk downloader (#42097)
rjernst May 12, 2019
45e1e59
[DOCS] Rewrite 'rewrite' parameter docs (#42018)
jrodewig May 13, 2019
0e48bbb
Remove 6.0 version constant uses (#41965)
rjernst May 14, 2019
0b94416
SQL: Add initial geo support (#42031)
imotov May 14, 2019
64e3f64
Log cluster UUID when committed (#42065)
DaveCTurner May 14, 2019
750eb6e
Fix test for JDBC version check (#42139)
tvernum May 14, 2019
77d0c79
Adjust load and timeout in testShrinkIndexPrimaryTerm (#42098)
dnhatn May 14, 2019
32553ef
Remove TestXPackTransportClient (#42103)
rjernst May 14, 2019
5cadfe7
Some Cleanup in o.e.gateway Package (#42108)
original-brownbear May 14, 2019
3266011
Fix versionutils previous compatiblity method (#42140)
rjernst May 14, 2019
c59da59
Concurrent tests wait for threads to be ready (#42083)
jaymode May 14, 2019
03e53e8
Cacheability improvements for thirdparty audit task (#42085)
mark-vieira May 15, 2019
ed3230b
Minor cluster coordination docs fixes (#42111)
DaveCTurner May 15, 2019
4b28f5b
remove backcompat handling of 6.1.x versions (#42032)
talevy May 15, 2019
3ac6d52
Docs: Mark SQL Geo functionality as beta (#42138)
imotov May 15, 2019
7e0ffae
Enforce transport TLS on Basic with Security (#42150)
tvernum May 15, 2019
673db85
Add ChaCha20 TLS ciphers on Java 12+ (#42155)
jaymode May 15, 2019
91039ba
SQL: Fix issue regarding INTERVAL * number (#42014)
matriv May 15, 2019
230ae18
Don't verify evictions in testFilterCacheStats (#42091)
dnhatn May 15, 2019
bc0b0f5
Hide bwc build output on success (#42102)
rjernst May 16, 2019
f16209a
Deprecate the native realm migration tool (#42142)
rjernst May 16, 2019
06cfc7a
[DOCS] add a warning about bypassing PUT API's, update example respon…
May 16, 2019
178ebd7
[ML] Improve message misformation error in file structure finder (#42…
droberts195 May 16, 2019
f3dbfdb
Clarify rolling upgrade fallback to restart upgrade (#42161)
DaveCTurner May 16, 2019
41739a1
Use local outputstream reference (#42180)
rjernst May 16, 2019
4496794
Protect logged exec spooling from no output (#42177)
rjernst May 16, 2019
6cea318
Wildfly tests use rest high level client (#42186)
jaymode May 17, 2019
f45a473
Remove the migrate tool (#42174)
rjernst May 17, 2019
e63b1fb
SQL: Suppress geo tests failing on tr-TR locale (#42200)
imotov May 17, 2019
8c01a8d
[ML] Improve hard_limit audit message (#42086)
edsavage May 17, 2019
5a06cc8
Remove Legacy UUID Generator (#42204)
original-brownbear May 18, 2019
bd6c85b
Cleanup AllocateDangledResponse (#42149)
original-brownbear May 18, 2019
3dbfe03
[ML] Temporarily muting failing tests
edsavage May 19, 2019
0729dc4
Minor improvement translog docs (#42184)
dnhatn May 20, 2019
efbe581
Do not refresh realm cache unless required (#42169)
tvernum May 20, 2019
f765e21
Enable debug log in testRetentionLeasesSyncOnRecovery
dnhatn May 20, 2019
5fe1fda
Add cluster restart for security on basic (#41933)
tvernum May 20, 2019
f7a4f92
Fix random failure in SearchRequestTests#testRandomVersionSerializati…
jimczi May 20, 2019
307bc17
Hash token values for storage (#41792)
jkakavas May 20, 2019
e700c4c
Remove parent query string parameter (#41098)
russcam May 20, 2019
18f3b27
OpenID Connect realm guide (#41423)
jkakavas May 20, 2019
cc988ce
[ML Data Frame] Start directly data frame rather than via the schedul…
davidkyle May 20, 2019
9002be4
[DOCS] Updates TLS configuration info (#41983)
lcawl May 20, 2019
0635f5a
Fix FiltersAggregation NPE when `filters` is empty (#41459)
polyfractal May 20, 2019
e9cb0db
Fix max boundary for rollups job that use a delay (#42158)
jimczi May 20, 2019
3b79300
Update skip version after backport
polyfractal May 20, 2019
40280bf
Update to joda time 2.10.2 (#42199)
spinscale May 20, 2019
77b895f
[ML] Fix logger declaration in ML plugins (#42222)
dimitris-athanasiou May 20, 2019
48b55e9
Update api links per context (#42033)
jdconrad May 20, 2019
fdcbf05
Cleanup Various Uses of ActionListener (#40126)
original-brownbear May 20, 2019
da5abe2
Validate non-secure settings are not in keystore (#42209)
rjernst May 20, 2019
570e8ed
Mute date_histo interval bwc test
polyfractal May 21, 2019
749135b
Prevent in-place downgrades and invalid upgrades (#41731)
DaveCTurner May 21, 2019
49bd667
Bump version in BWC check after backport
jkakavas May 21, 2019
2c8aa0e
Fix version in tests since #41906 was merged
jkakavas May 21, 2019
6f8dfeb
Add experimental and warnings to vector functions (#42205)
mayya-sharipova May 21, 2019
e27035a
Use spearate testkit dir for each run (#42013)
alpar-t May 21, 2019
e126d18
add 7.1.1 and 6.8.1 versions (#42253)
jakelandis May 21, 2019
026c96d
Add missing comma in code section (#41678)
kamyarghajar May 21, 2019
c897404
Remove stray back tick that's messing up table format (#41705)
GlenRSmith May 21, 2019
1911d2a
Move the FIPS configuration back to the build plugin (#41989)
alpar-t May 21, 2019
455cf8b
Mute all ml_datafeed_crud rolling upgrade tests
polyfractal May 21, 2019
aac7473
Remove 7.0.2 (#42282)
henningandersen May 21, 2019
b8be2d0
[DOCS] Copied note on slicing support to Slicing section. Closes 2611…
May 21, 2019
78259f7
Revert "Remove 7.0.2 (#42282)"
henningandersen May 21, 2019
a2c35a7
Remove 7.0.2 (#42282)
henningandersen May 21, 2019
753726c
Safer Wait for Snapshot Success in ClusterPrivilegeTests (#40943)
original-brownbear May 21, 2019
8907dc9
mute failing filerealm hash caching tests (#42304)
talevy May 21, 2019
7c503ce
[ML Data Frame] Persist and restore checkpoint and position (#41942)
davidkyle May 21, 2019
d150880
[ML][TEST] Fix limits in AutodetectMemoryLimitIT (#42279)
edsavage May 21, 2019
5f9c8ba
Avoid unnecessary persistence of retention leases (#42299)
jasontedor May 21, 2019
c59fbb3
Reorganize Painless doc structure (#42303)
jdconrad May 21, 2019
be412ca
Remove Dead Code from Azure Repo Plugin (#42178)
original-brownbear May 21, 2019
4766ffa
Make unwrapCorrupt Check Suppressed Ex. (#41889)
original-brownbear May 21, 2019
07ab45a
Mute transforms_stats yaml test
polyfractal May 21, 2019
f5e54b4
Deprecate support for chained multi-fields. (#41926)
jtibshirani May 21, 2019
1dcaf4f
Mute another transforms_stats yaml test
polyfractal May 21, 2019
4b0f36d
Execute actions under permit in primary mode only (#42241)
jasontedor May 21, 2019
e8b85c9
Mute testDelayedOperationsBeforeAndAfterRelocated
dnhatn May 21, 2019
2d88691
remove backcompat handling of 6.2.x versions (#42044)
talevy May 21, 2019
a3bd569
Cleanup Redundant BlobStoreFormat Class (#42195)
original-brownbear May 21, 2019
bb2ec18
Fix off-by-one error in an index shard test
jasontedor May 21, 2019
c1aef4b
Estimate num history ops should always use translog (#42211)
dnhatn May 21, 2019
5785941
Skip global checkpoint sync for closed indices (#41874)
dnhatn May 21, 2019
75be2a6
Peer recovery should flush at the end (#41660)
dnhatn May 22, 2019
e572214
Remove the 6.7 version constants. (#42039)
jtibshirani May 22, 2019
f007163
Allow Kibana user to use the OpenID Connect APIs (#42305)
jkakavas May 22, 2019
18bff0c
Ensure SHA256 is not used in tests (#42289)
jkakavas May 22, 2019
db0fbf0
Add Package Level Documentation to o.e.r.blobstore (#42101)
original-brownbear May 22, 2019
9a152ee
move latch await to doNextSearch (#42275)
May 22, 2019
610230f
[ML-DataFrame] validate group name to not contain invalid characters …
May 22, 2019
fccb7a2
[ML] Include node name when native controller cannot start process (#…
dimitris-athanasiou May 22, 2019
464f769
Use comparator for Reconfigurator (#42283)
ywelsch May 22, 2019
2ddd39a
Introduce ShardState Enum + Slight Cleanup SnapshotsInProgress (#41940)
original-brownbear May 22, 2019
4a9788e
Fix testTracerLog Network Tests (#42286)
original-brownbear May 22, 2019
a28d405
Revert "mute failing filerealm hash caching tests (#42304)"
jkakavas May 22, 2019
b31482e
Remove usage of max_local_storage_nodes in test infrastructure (#41652)
ywelsch May 22, 2019
d589cad
Rework discovery-ec2 docs (#41630)
DaveCTurner May 22, 2019
23e4d46
Merge claims from userinfo and ID Token correctly (#42277)
jkakavas May 22, 2019
dcf2929
Fix settings prefix for realm truststore password (#42336)
tvernum May 22, 2019
5fb55f6
Remove type-related methods from QueryBuilders (#42284)
May 22, 2019
9609497
Fix TopHitsAggregationBuilder adding duplicate _score sort clauses (#…
Hohol May 22, 2019
d228442
Remove IndexShard dependency from Repository (#42213)
s1monw May 22, 2019
8918dd1
Fail early when rp.client_secret is missing in OIDC realm (#42256)
jkakavas May 22, 2019
3b67d87
Avoid bubbling up failures from a shard that is recovering (#42287)
ywelsch May 22, 2019
7ab59ee
Some Cleanup in o.e.i.engine (#42278)
original-brownbear May 22, 2019
28aae64
TestClusters: Convert docs (#42100)
alpar-t May 22, 2019
385dfd9
Update version skips and constants after backport (#42290)
polyfractal May 22, 2019
1e9221d
Remove Obsolete BwC Logic from BlobStoreRepository (#42193)
original-brownbear May 22, 2019
05809de
Revert "Mute SpecificMasterNodesIT.testElectOnlyBetweenMasterNodes()"
ywelsch May 22, 2019
d292d95
Fix testCannotJoinIfMasterLostDataFolder
ywelsch May 22, 2019
40beecd
Search - enable low_level_cancellation by default. (#42291)
markharwood May 22, 2019
b03d7b2
Remove testNodeFailuresAreProcessedOnce
ywelsch May 22, 2019
94848d8
Dump Stacktrace on Slow IO-Thread Operations (#42000)
original-brownbear May 22, 2019
4a94387
Mute Data Frame integration tests
davidkyle May 22, 2019
a568c3c
[ML Data Frame] Persist data frame after state changes (#42347)
davidkyle May 22, 2019
c1d980c
Fix testAutoFollowManyIndices
ywelsch May 22, 2019
145c3be
Add .code_internal-* index pattern to kibana user (#42247)
mw-ding May 22, 2019
d5888b2
Fix alpha version error message (#40406)
mushao999 May 22, 2019
148df31
Fix a rendering issue in the geo envelope docs. (#42332)
jtibshirani May 22, 2019
943344f
Fix grammar problem in stemming reference. (#42148)
swstepp May 22, 2019
458aa64
add 7_3 as version (#42368)
jakelandis May 22, 2019
d49d9b5
Ensure testAckedIndexing uses disruption index settings
ywelsch May 22, 2019
35c4c9e
Re-mute all ml_datafeed_crud rolling upgrade tests
polyfractal May 21, 2019
c9d04cc
Make packer cache branches explicit (#41990)
alpar-t May 22, 2019
da77b97
[ML Data Frame] Account for completed data frames in test (#42351)
davidkyle May 23, 2019
e75ff0c
Allow `fields` to be set to `*` (#42301)
matriv May 23, 2019
f5a6aa7
Test fix - results equality failed because of subtle scoring differen…
markharwood May 23, 2019
4e999d7
Upgrade to Lucene 8.1.0 (#42214)
jimczi May 23, 2019
72ab7b6
Rename SearchRequest#crossClusterSearch (#42363)
javanna May 23, 2019
5da6f5d
upgrade Lucene Version for ES 7.3.0 after backport of #42214
jimczi May 23, 2019
cb40222
Remove deprecated Repository methods (#42359)
s1monw May 23, 2019
2721326
Remove old assertion in resync replication request (#42390)
jasontedor May 23, 2019
bd1dc98
Bulk processor concurrent requests (#41451)
jakelandis May 23, 2019
cbb3bbd
Prevent normalizer from not being closed on exception (#42375)
May 23, 2019
c459ea8
Remove node.max_local_storage_nodes (#42428)
ywelsch May 23, 2019
13dc1cf
Update max_concurrent_shard_request parameter docs (#42227)
javanna May 23, 2019
733e589
Remove leftover code from one shard by default (#42374)
jasontedor May 23, 2019
1b0c728
Remove deprecated search.remote settings (#42381)
jasontedor May 23, 2019
39a3d63
Unguice Snapshot / Restore services (#42357)
s1monw May 23, 2019
9cadfd2
Mute slow and flaky build-tools integration tests
mark-vieira May 23, 2019
274b634
Build local year inside DateFormat lambda
emasab May 23, 2019
4520e88
Remove transport client from xpack (#42202)
rjernst May 23, 2019
e46622b
SQL: Add back the single node JDBC tests (#41960)
imotov May 23, 2019
4bec333
Mute accounting circuit breaker check after test (#42448)
dnhatn May 23, 2019
8177e71
Split document and metadata fields in GetResult (#38373)
sandmannn May 23, 2019
81f3b5d
Improve Close Index Response (#39687)
tlrx May 23, 2019
f6ae6c4
Implement XContentParser.genericMap and XContentParser.genericMapOrde…
przemekwitek May 23, 2019
677c391
Avoid HashMap construction on Grok non-match (#42444)
droberts195 May 23, 2019
a15f1ee
[ML] Improve file structure finder timestamp format determination (#4…
droberts195 May 23, 2019
6e307d9
[DOCS] Removes inclusion of java.asciidoc (#42459)
lcawl May 23, 2019
c87ea81
Bug fix to allow access to top level params in reduce script (#42096)
jdconrad May 23, 2019
ca7b80a
Reenable bwc tests (#42478)
rjernst May 23, 2019
5db7667
Gradle init script for enabling remote build cache (#42484)
mark-vieira May 24, 2019
2d43dd6
Add more logging to MockDiskUsagesIT (#42424)
DaveCTurner May 24, 2019
360939f
Add stack traces to RetentionLeasesIT failures (#42425)
DaveCTurner May 24, 2019
c1de8c2
Cluster state from API should always have a master (#42454)
DaveCTurner May 24, 2019
4b21100
Remove IndexStore and DirectoryService (#42446)
s1monw May 24, 2019
93f3d12
[ML] Reenable ml distributed failure test after issue resolution (#42…
davidkyle May 24, 2019
306faa4
[ML Data Frame] Reenable muted integration tests (#42373)
davidkyle May 24, 2019
3907a6d
Drain master task queue when stabilising (#42504)
DaveCTurner May 24, 2019
631142d
Fix sorting on nested field with unmapped (#42451)
matriv May 24, 2019
cbf1150
Small internal AnalysisRegistry changes (#42500)
May 24, 2019
da1ba68
remove 6.3.x constants (#42087)
talevy May 24, 2019
d992b1d
Shard CLI tool always check shards (#41480)
henningandersen May 24, 2019
43848fc
Wipe repositories more often (#42511)
ywelsch May 24, 2019
cd324a1
Add test to verify force primary allocation on closed indices (#42458)
dnhatn May 24, 2019
dfc3b8e
[DOCS] Removes X-Pack setup (#42481)
lcawl May 24, 2019
ffa5461
[DOCS] Removes X-Pack Java client configuration (#42480)
lcawl May 24, 2019
a92f350
SQL: Moves the JTS-based tests suppression to Before (#42526)
imotov May 24, 2019
1b6dc17
Remove transport client from tests (#42457)
rjernst May 24, 2019
9b800a5
[DOCS] Fix nested def list for Asciidoctor (#42353)
jrodewig May 24, 2019
37be0a1
[DOCS] Adding ML-specific prerequisites to setup docs (#42529)
droberts195 May 24, 2019
e87c8b2
Fix compilation
rjernst May 24, 2019
44c1551
[ML-DataFrame] add support for fixed_interval, calendar_interval, rem…
May 24, 2019
8f03033
[DOCS] Move callouts to end of line for Asciidoctor migration (#42356)
jrodewig May 24, 2019
5eb38ec
[ML] Fix possible race condition when closing an opening job (#42506)
droberts195 May 24, 2019
5720a32
[ML] Use map and filter instead of flatMap in find_file_structure (#4…
droberts195 May 24, 2019
eda3da3
Improve build configuration time (#41392)
mark-vieira May 24, 2019
5f3d0e4
Adjust load SplitIndexIT#testSplitIndexPrimaryTerm (#42477)
dnhatn May 24, 2019
8bbd3e3
Address test failures for SmokeTestWatcherWithSecurityIT (#42092)
jakelandis May 24, 2019
a7cf299
Fix issue with using runtime JDK of Java12
mark-vieira May 24, 2019
9772574
Use reproducible method of generating properties file for better cach…
mark-vieira May 24, 2019
5b0b98b
Recovery with syncId should verify seqno infos (#41265)
dnhatn May 21, 2019
6362328
Remove renewal in retention lease recovery test (#42536)
jasontedor May 24, 2019
d5281fc
Ignore JAR manifests when snapshotting runtime classpaths (#42548)
mark-vieira May 25, 2019
0bb46d7
Make LoggerUsageTask cacheable (#42550)
mark-vieira May 25, 2019
1ed7b61
Adjust bwc version
dnhatn May 25, 2019
5ca06a5
Make JarHell task cacheable (#42551)
mark-vieira May 25, 2019
13af50a
Enable recoveries trace log in CcrRetentionLeaseIT
dnhatn May 25, 2019
d6d032d
Fix Test Failures from MockNioTransport Logger (#42545)
original-brownbear May 25, 2019
f95071d
Upgrade to Netty 4.1.36 (#42543)
original-brownbear May 25, 2019
5d837fa
[ML Data Frame] Mute Data Frame tests
davidkyle May 25, 2019
0291f94
Unmute FullClusterRestartIT#testClosedIndices
dnhatn May 26, 2019
70b4f67
Add debug log for retention leases (#42557)
dnhatn May 26, 2019
7936275
Improve how internal representation of pipelines are updated (#42257)
martijnvg May 27, 2019
cdb482e
Fix RareClusterStateIT (#42430)
original-brownbear May 27, 2019
71e978b
Update script-fields.asciidoc (#42490)
gaobinlong May 27, 2019
50ed840
Fixed typo in docker.asciidoc (#42455)
endeavor85 May 27, 2019
c57b575
Remove unused mapStringsOrdered method (#42513)
przemekwitek May 27, 2019
074da02
Dry up BlobStoreRepository#basePath Implementations (#42578)
original-brownbear May 27, 2019
349d2ce
Add Infrastructure to Run 3rd Party Repository Tests (#42586)
original-brownbear May 27, 2019
337cef1
Add test ensure we can execute update requests in mixed cluster
dnhatn May 27, 2019
643eb35
Allocate to data-only nodes in ReopenWhileClosingIT (#42560)
dnhatn May 27, 2019
7cf9eb2
Reset mock transport service in CcrRetentionLeaseIT (#42600)
dnhatn May 28, 2019
7209f97
Fixed ignoring name parameter for percolator queries (#42598)
gurkankaymak May 28, 2019
578c05e
[Ml Data Frame] Return bad_request on preview when config is invalid …
davidkyle May 28, 2019
777be09
Mute AsyncTwoPhaseIndexerTests#testStateMachine() (#42609)
danielmitterdorfer May 28, 2019
0de1177
[ML DataFrame] Use date histogram fixed_interval syntax
davidkyle May 28, 2019
5f651f4
Mute NodeTests (#42614)
danielmitterdorfer May 28, 2019
e97bee6
Fix Incorrect Time Math in MockTransport (#42595)
original-brownbear May 28, 2019
2c84409
Remove PRE_60_NODE_CHECKPOINT (#42527)
DaveCTurner May 28, 2019
692245c
Reset state recovery after successful recovery (#42576)
ywelsch May 28, 2019
b57cbb6
[DOCS] Escape cross-ref link comma for Asciidoctor (#42402)
jrodewig May 28, 2019
69ef51d
[DOCS] Fix API Quick Reference rollup attribute for Asciidoctor (#42403)
jrodewig May 28, 2019
f2cde97
[ML] adding delayed_data_check_config to datafeed update docs (#42095)
benwtrent May 28, 2019
1ef00e3
Avoid loading retention leases while writing them (#42620)
DaveCTurner May 28, 2019
ae78387
Validate routing commands using updated routing state (#42066)
vigyasharma May 28, 2019
4a08b3d
remove 6.4.x version constants (#42127)
talevy May 28, 2019
0db0e13
[ML Data Frame] Set DF task state when stopping (#42516)
davidkyle May 28, 2019
905902c
[DOCS] Reorg monitoring configuration for re-use (#42547)
lcawl May 28, 2019
492efa7
Remove suppresions for "unchecked" for hamcrest varargs methods (#41528)
pgomulka May 28, 2019
f07b90f
Remove support for chained multi-fields. (#42333)
jtibshirani May 28, 2019
7d28095
Lazily compute Java 8 home in reindex configuration (#42630)
jasontedor May 28, 2019
6e39433
Remove "nodes/0" folder prefix from data path (#42489)
ywelsch May 28, 2019
79a3de4
[DOCS] Set explicit anchors for Asciidoctor (#42521)
jrodewig May 28, 2019
8fae57b
unmute 'Test url escaping with url mustache function' and bump loggin…
jakelandis May 28, 2019
792435f
check position before and after latch (#42623)
May 28, 2019
aad6cc4
[DOCS] Fix X-Pack tag for Asciidoctor (#42443)
jrodewig May 28, 2019
7df025c
fix javadoc of SearchRequestBuilder#setTrackTotalHits (#42219)
jimczi May 28, 2019
4da6453
[ML Data Frame] Mute stop start test
davidkyle May 28, 2019
0f5f888
Add 7.1.2 version constant. (#42643)
jpountz May 28, 2019
aaf0ab4
Adjust use of Deprecated Netty API (#42613)
original-brownbear May 28, 2019
a1e7858
Fix a callout in the field alias docs.
jtibshirani May 29, 2019
813e57d
Add explicit build flag for experimenting with test execution cacheab…
mark-vieira May 29, 2019
52e867c
Merge branch 'retry-failed-counter' of https://github.com/vigyasharma…
vigyasharma May 29, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .ci/build-cache.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
if (System.getenv('GRADLE_BUILD_CACHE_URL')) {
gradle.settingsEvaluated { settings ->
settings.buildCache {
remote(HttpBuildCache) {
url = System.getenv('GRADLE_BUILD_CACHE_URL')
push = Boolean.valueOf(System.getenv('GRADLE_BUILD_CACHE_PUSH') ?: 'false')
if (System.getenv('GRADLE_BUILD_CACHE_USERNAME') && System.getenv('GRADLE_BUILD_CACHE_PASSWORD')) {
credentials {
username = System.getenv('GRADLE_BUILD_CACHE_USERNAME')
password = System.getenv('GRADLE_BUILD_CACHE_PASSWORD')
}
}
}
}
}
} else {
throw new GradleException("You must supply a value for GRADLE_BUILD_CACHE_URL environment variable when applying build-cache.gradle init script")
}
1 change: 1 addition & 0 deletions .ci/matrix-runtime-javas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ ES_RUNTIME_JAVA:
- openjdk12
- zulu11
- zulu12
- corretto11
1 change: 1 addition & 0 deletions .ci/packer_cache.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ export JAVA8_HOME="${HOME}"/.java/java8
export JAVA11_HOME="${HOME}"/.java/java11
export JAVA12_HOME="${HOME}"/.java/openjdk12
./gradlew --parallel clean --scan -Porg.elasticsearch.acceptScanTOS=true -s resolveAllDependencies

29 changes: 12 additions & 17 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ Vagrant.configure(2) do |config|
'debian-8'.tap do |box|
config.vm.define box, define_opts do |config|
config.vm.box = 'elastic/debian-8-x86_64'
deb_common config, box
deb_common config, box, extra: <<-SHELL
# this sometimes gets a bad ip, and doesn't appear to be needed
rm -f /etc/apt/sources.list.d/http_debian_net_debian.list
SHELL
end
end
'debian-9'.tap do |box|
Expand Down Expand Up @@ -158,13 +161,17 @@ def deb_common(config, name, extra: '')
s.privileged = false
s.inline = "sudo sed -i '/tty/!s/mesg n/tty -s \\&\\& mesg n/' /root/.profile"
end
extra_with_lintian = <<-SHELL
#{extra}
install lintian
SHELL
linux_common(
config,
name,
update_command: 'apt-get update',
update_tracking_file: '/var/cache/apt/archives/last_update',
install_command: 'apt-get install -y',
extra: extra
extra: extra_with_lintian
)
end

Expand Down Expand Up @@ -249,10 +256,6 @@ def linux_common(config,
touch /is_vagrant_vm # for consistency between linux and windows
SHELL

config.vm.provision 'jdk-11', type: 'shell', inline: <<-SHELL
curl -sSL https://download.oracle.com/java/GA/jdk11/9/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz | tar xz -C /opt/
SHELL

# This prevents leftovers from previous tests using the
# same VM from messing up the current test
config.vm.provision 'clean es installs in tmp', run: 'always', type: 'shell', inline: <<-SHELL
Expand Down Expand Up @@ -348,11 +351,10 @@ def sh_install_deps(config,
return 1
}
cat \<\<JAVA > /etc/profile.d/java_home.sh
if [ -z "\\\$JAVA_HOME" ]; then
export JAVA_HOME=/opt/jdk-11.0.2
if [ ! -z "\\\$JAVA_HOME" ]; then
export SYSTEM_JAVA_HOME=\\\$JAVA_HOME
unset JAVA_HOME
fi
export SYSTEM_JAVA_HOME=\\\$JAVA_HOME
unset JAVA_HOME
JAVA
ensure tar
ensure curl
Expand Down Expand Up @@ -409,16 +411,9 @@ def windows_common(config, name)
$ps_prompt | Out-File $PsHome/Microsoft.PowerShell_profile.ps1
SHELL

config.vm.provision 'windows-jdk-11', type: 'shell', inline: <<-SHELL
New-Item -ItemType Directory -Force -Path "C:/java"
Invoke-WebRequest "https://download.oracle.com/java/GA/jdk11/9/GPL/openjdk-11.0.2_windows-x64_bin.zip" -OutFile "C:/java/jdk-11.zip"
Expand-Archive -Path "C:/java/jdk-11.zip" -DestinationPath "C:/java/"
SHELL

config.vm.provision 'set env variables', type: 'shell', inline: <<-SHELL
$ErrorActionPreference = "Stop"
[Environment]::SetEnvironmentVariable("PACKAGING_ARCHIVES", "C:/project/build/packaging/archives", "Machine")
[Environment]::SetEnvironmentVariable("SYSTEM_JAVA_HOME", "C:\java\jdk-11.0.2", "Machine")
[Environment]::SetEnvironmentVariable("PACKAGING_TESTS", "C:/project/build/packaging/tests", "Machine")
[Environment]::SetEnvironmentVariable("JAVA_HOME", $null, "Machine")
SHELL
Expand Down
27 changes: 4 additions & 23 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import org.gradle.plugins.ide.eclipse.model.SourceFolder
plugins {
id 'com.gradle.build-scan' version '2.2.1'
id 'base'
id 'elasticsearch.global-build-info'
}
if (Boolean.valueOf(project.findProperty('org.elasticsearch.acceptScanTOS') ?: "false")) {
buildScan {
Expand Down Expand Up @@ -241,8 +242,7 @@ allprojects {
"org.elasticsearch.plugin:percolator-client:${version}": ':modules:percolator',
"org.elasticsearch.plugin:rank-eval-client:${version}": ':modules:rank-eval',
// for security example plugins
"org.elasticsearch.plugin:x-pack-core:${version}": ':x-pack:plugin:core',
"org.elasticsearch.client:x-pack-transport:${version}": ':x-pack:transport-client'
"org.elasticsearch.plugin:x-pack-core:${version}": ':x-pack:plugin:core'
]

/*
Expand All @@ -263,7 +263,7 @@ allprojects {
}

project.afterEvaluate {
configurations.all {
configurations.matching { it.canBeResolved }.all {
resolutionStrategy.dependencySubstitution { DependencySubstitutions subs ->
projectSubstitutions.each { k,v ->
subs.substitute(subs.module(k)).with(subs.project(v))
Expand Down Expand Up @@ -337,7 +337,7 @@ gradle.projectsEvaluated {
if (tasks.findByPath('test') != null && tasks.findByPath('integTest') != null) {
integTest.mustRunAfter test
}
configurations.all { Configuration configuration ->
configurations.matching { it.canBeResolved }.all { Configuration configuration ->
dependencies.all { Dependency dep ->
Project upstreamProject = dependencyToProject(dep)
if (upstreamProject != null) {
Expand Down Expand Up @@ -618,22 +618,3 @@ allprojects {
}
}
}

subprojects {
// Common config when running with a FIPS-140 runtime JVM
if (project.ext.has("inFipsJvm") && project.ext.inFipsJvm) {
tasks.withType(Test) {
systemProperty 'javax.net.ssl.trustStorePassword', 'password'
systemProperty 'javax.net.ssl.keyStorePassword', 'password'
}
project.pluginManager.withPlugin("elasticsearch.testclusters") {
project.testClusters.all {
systemProperty 'javax.net.ssl.trustStorePassword', 'password'
systemProperty 'javax.net.ssl.keyStorePassword', 'password'
}
}
}
}



57 changes: 13 additions & 44 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,17 @@ if (project == rootProject) {
// we update the version property to reflect if we are building a snapshot or a release build
// we write this back out below to load it in the Build.java which will be shown in rest main action
// to indicate this being a snapshot build or a release build.
File propsFile = project.file('version.properties')
Properties props = VersionPropertiesLoader.loadBuildSrcVersion(propsFile)
Properties props = VersionPropertiesLoader.loadBuildSrcVersion(project.file('version.properties'))
version = props.getProperty("elasticsearch")

task generateVersionProperties(type: WriteProperties) {
outputFile = "${buildDir}/version.properties"
comment = 'Generated version properties'
properties(props)
}

processResources {
inputs.file(propsFile)
// We need to be explicit with the version because we add snapshot and qualifier to it based on properties
inputs.property("dynamic_elasticsearch_version", props.getProperty("elasticsearch"))
doLast {
Writer writer = file("$destinationDir/version.properties").newWriter()
try {
props.store(writer, "Generated version properties")
} finally {
writer.close()
}
}
from(generateVersionProperties)
}

/*****************************************************************************
Expand All @@ -69,37 +65,10 @@ processResources {
if (JavaVersion.current() < JavaVersion.VERSION_11) {
throw new GradleException('At least Java 11 is required to build elasticsearch gradle tools')
}
// Gradle 4.10 does not support setting this to 11 yet
targetCompatibility = "10"
sourceCompatibility = "10"

// We have a few classes that need to be compiled for older java versions because these are used to run checks against
// those
sourceSets {
minimumRuntime {
// We only want Java here, but the Groovy doesn't configure javadoc correctly if we don't define this as groovy
groovy {
srcDirs = ['src/main/minimumRuntime']
}
}
}
compileMinimumRuntimeGroovy {
targetCompatibility = 8
sourceCompatibility = 8
}
dependencies {
if (project.ext.has("isEclipse") == false || project.ext.isEclipse == false) {
// eclipse is confused if this is set explicitly
compile sourceSets.minimumRuntime.output
}
minimumRuntimeCompile "junit:junit:${props.getProperty('junit')}"
minimumRuntimeCompile localGroovy()
minimumRuntimeCompile gradleApi()
}
jar {
from sourceSets.minimumRuntime.output
}

// Keep compatibility with Java 8 for external users of build-tools that haven't migrated to Java 11
targetCompatibility = '8'
sourceCompatibility = '8'

/*****************************************************************************
* Dependencies used by the entire build *
Expand All @@ -124,6 +93,7 @@ dependencies {
compile 'com.avast.gradle:gradle-docker-compose-plugin:0.8.12'
testCompile "junit:junit:${props.getProperty('junit')}"
testCompile "com.carrotsearch.randomizedtesting:randomizedtesting-runner:${props.getProperty('randomizedrunner')}"
testCompile 'com.github.tomakehurst:wiremock-jre8-standalone:2.23.2'
}

/*****************************************************************************
Expand Down Expand Up @@ -163,7 +133,6 @@ if (project != rootProject) {
dependenciesInfo.enabled = false
forbiddenApisMain.enabled = false
forbiddenApisTest.enabled = false
forbiddenApisMinimumRuntime.enabled = false
jarHell.enabled = false
thirdPartyAudit.enabled = false

Expand Down
Loading