Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
10000 commits
Select commit Hold shift + click to select a range
d351422
Add parent-aggregation to parent-join module (#34210)
centic9 Nov 8, 2018
ca12de5
Mute test for #35295
alpar-t Nov 8, 2018
20cf13d
Use Gradle wrapper in client benchmark README
danielmitterdorfer Nov 8, 2018
6980fed
Remove unused class MemoryCircuitBreaker
danielmitterdorfer Nov 8, 2018
d96202a
[DOCS] Fix missing callouts
jimczi Nov 8, 2018
54b445d
[Test] Remove obsolete job/cluster cleanup code
polyfractal Nov 8, 2018
07a69a5
[CCR] Rename leaderClient variables and parameters to remoteClient (#…
martijnvg Nov 8, 2018
433469d
[Rollup] improve handling of failures on first search (#35269)
Nov 8, 2018
ac1d8da
[Test] Remove unused imports
polyfractal Nov 8, 2018
55c6481
[Docs] Add painless context details for bucket_selector (#35162)
polyfractal Nov 8, 2018
113af79
Make limit on number of expanded fields configurable (#35284)
Nov 8, 2018
85a8b51
HLRest: refactor put_user to utilize `User` object (#35188)
albertzaharovits Nov 8, 2018
730ec1d
Add more detailed OS name on Linux (#35352)
jasontedor Nov 8, 2018
5c2a5f2
Adjust BWC version on OS pretty name
jasontedor Nov 8, 2018
93c2c60
Move compression config to ConnectionProfile (#35357)
Tim-Brooks Nov 8, 2018
7e144b3
Painless Context Doc: Add field context example (#35130)
mayya-sharipova Nov 8, 2018
c88b2d7
[DOCS] Cleans up monitoring configuration steps (#35111)
lcawl Nov 8, 2018
c9a84fe
SQL: Handle null literal for AND and OR in `WHERE` (#35236)
Nov 8, 2018
b485e69
ILM API ref edits (#35112)
debadair Nov 8, 2018
bccc99c
Fix TcpTransport compression test (#35396)
Tim-Brooks Nov 9, 2018
02b4e28
#31608 Add S3 Setting to Force Path Type Access (#34721)
original-brownbear Nov 9, 2018
b0acd70
DOCS: Add SecurityExtension breaking change (#35358)
tvernum Nov 9, 2018
66e3ca9
Revert "Mute test for #35361"
alpar-t Nov 9, 2018
a964196
Refactor realm tests to use single settings (#35362)
tvernum Nov 9, 2018
7054e28
Add trace log of the request for the query and fetch phases (#34479)
jimczi Nov 9, 2018
617f91b
DOCS Auditing search queries (#35301)
albertzaharovits Nov 9, 2018
529910a
DISCOVERY: Fix RollingUpgradeTests (#35375)
original-brownbear Nov 9, 2018
36da6e1
SQL: Introduce IsNull node to simplify expressions (#35206)
Nov 9, 2018
83152b3
[CCR] Get all auto follow patterns and no auto follow metadata (#35381)
martijnvg Nov 9, 2018
fba811f
[TEST] increased the number of index and delete ops to make it less l…
martijnvg Nov 9, 2018
807ce10
[TEST] Increased timeout for verifying ccr monitoring.
martijnvg Nov 9, 2018
f2d7c94
DOCS Add audit ignore settings to reference page (#35274)
albertzaharovits Nov 9, 2018
ae2af20
[CCR] Validate remote cluster license as part of put auto follow patt…
martijnvg Nov 9, 2018
67f9e8f
Enforce limitations on ILM policy names (#35104)
gwbrown Nov 9, 2018
ba47882
Improve MockTcpTransport memory usage (#35402)
Tim-Brooks Nov 9, 2018
64df803
Add a java level freeze/unfreeze API (#35353)
s1monw Nov 10, 2018
d84ff37
Mark CCR as beta in the docs
jasontedor Nov 10, 2018
eb8f346
Fix beta label on CCR index page
jasontedor Nov 10, 2018
6050deb
HLRest: model role and privileges (#35128)
albertzaharovits Nov 11, 2018
09cac32
Upgrade to Joda 2.10.1 (#35410)
Nov 12, 2018
ef10461
[TEST] Instead of ignoring the ccr downgrade to basic license qa test
martijnvg Nov 12, 2018
55ff96b
SQL: Fix query translation for scripted queries (#35408)
Nov 12, 2018
c8e685e
Clarify S3 repository storage class parameter (#35400)
geekpete Nov 12, 2018
ca24d9a
Switch to default to no build qualifier (#35415)
alpar-t Nov 12, 2018
3859d21
Fix the names of CCR stats endpoints in usage API (#35438)
jasontedor Nov 12, 2018
326b238
Add docs for CCR stats API (#35439)
jasontedor Nov 12, 2018
2591f66
upgrade to lucene-8.0.0-snapshot-6d9c714052 (#35428)
nknize Nov 12, 2018
64e5c25
HLRC support for getTask (#35166)
markharwood Nov 12, 2018
40ca62c
Address handling of OS pretty name on some OS (#35451)
jasontedor Nov 12, 2018
16cbbab
[ILM] fix retry so it picks up latest policy and executes async actio…
talevy Nov 12, 2018
e7896bc
Geo: enables coerce support in WKT polygon parser (#35414)
imotov Nov 12, 2018
2da239f
[HLRC] Add GetRollupIndexCaps API (#35102)
polyfractal Nov 12, 2018
711d703
[TEST] add missing doc tests for HLRC GetRollupIndexCaps API
polyfractal Nov 12, 2018
9aeacea
[DOCS] Clarify results_index_name description (#35463)
lcawl Nov 12, 2018
71cfb73
Register remote cluster compress setting (#35464)
Tim-Brooks Nov 12, 2018
a18b599
Handle OS pretty name on old OS without OS release (#35453)
jasontedor Nov 13, 2018
09965cb
[ML] Fix find_file_structure NPE with should_trim_fields (#35465)
Nov 13, 2018
0a6614a
Correct implemented interface of ParsedReverseNested (#35455)
Nov 13, 2018
76cefb0
Correct typo in BuildPlugin exception message (#35458)
lukas-vlcek Nov 13, 2018
92fef40
Introduce CCR getting started guide (#35434)
jasontedor Nov 13, 2018
cbb16d5
Remove extraneous spaces from CCR getting started
jasontedor Nov 13, 2018
7919b66
DISCOVERY: 0s Initial State Timeout in Tests (#35481)
original-brownbear Nov 13, 2018
e81671d
[HLRC] Added support for CCR Put Follow API (#35409)
martijnvg Nov 13, 2018
3229dfc
Allow efficient can_match phases on frozen indices (#35431)
s1monw Nov 13, 2018
0487181
[TEST] Force flush to ensure multiple segments.
martijnvg Nov 13, 2018
fd4cd80
HLRC: migration api - upgrade (#34898)
pgomulka Nov 13, 2018
4b5fbad
Fix reference to get follower stats API
jasontedor Nov 13, 2018
a76ac57
Rest HL client: Add watcher stats API (#35185)
imotov Nov 13, 2018
0b7d18d
HLRC: add support for get license basic/trial status API (#33176)
javanna Nov 13, 2018
73a563c
Converts ILM HLRC APIs to use client Ack response (#35492)
colings86 Nov 13, 2018
8b2f22e
Introduce CCR overview (#35436)
jasontedor Nov 13, 2018
2ac4ef7
[DOCS] Fixes broken link
lcawl Nov 13, 2018
3db671e
MINOR: Remove Hack in TestCluster Task (#35485)
original-brownbear Nov 13, 2018
6cb2aef
[ILM] Add documentation for error handling in ILM (#35426)
dakrone Nov 13, 2018
bc799e4
Ignore warnings related to types deprecation in REST tests. (#35395)
jtibshirani Nov 13, 2018
9728119
[CI] AllocationIdIT testFailedRecoveryOnAllocateStalePrimaryRequiresA…
Nov 13, 2018
c934fb0
Adds HLRC docs for put lifecycle policy (#35457)
colings86 Nov 13, 2018
b9eb5f7
HLRC: Adding ml get filters api (#35502)
benwtrent Nov 13, 2018
634bc9d
mute TasksClientDocumentationIT testCancelTasks
jaymode Nov 13, 2018
c346a0f
[Rollup] Add `wait_for_completion` option to StopRollupJob API (#34811)
polyfractal Nov 13, 2018
603d1a4
Add stop rollup job support to HL REST Client (#34702)
Nov 14, 2018
d8b1c23
Remove Comparable interface from ScoreAccessor (#35519)
Nov 14, 2018
231f6c1
Formal support for "password_hash" in Put User (#35242)
tvernum Nov 14, 2018
5c84708
test: expose error message on failure
Nov 14, 2018
31567ce
[RCI] Check blocks while having index shard permit in TransportReplic…
tlrx Nov 14, 2018
b49f461
Swithc to jcenter and hope to have fewer network failures in builds (…
alpar-t Nov 14, 2018
dc0e05f
Fix Eclipse configuration (#35452)
alpar-t Nov 14, 2018
bbe50e7
Remove LoggingRunnable class (#35486)
tlrx Nov 14, 2018
0ce4649
Manage dependencies for test clusters (#35304)
alpar-t Nov 14, 2018
72504c2
Do not recommend to use the _id field in search_after docs (#35370)
jimczi Nov 14, 2018
212c202
Remove hard coded version string in tests
alpar-t Nov 14, 2018
4cfdb06
Adapt InternalCluster#fullRestart to call onNodeStopped when all node…
ywelsch Nov 14, 2018
e7b7d52
[HLRC][ML] Add ML get model snapshots API (#35487)
edsavage Nov 14, 2018
5b7446b
Add Delete Privileges API to HLRC (#35454)
tlrx Nov 14, 2018
c7ea034
[Rollup] Update versions after backport
polyfractal Nov 14, 2018
a3cb741
Fix flaky gradle integration test
alpar-t Nov 14, 2018
98e0752
[Doc] Correct jdbc url example (#35513)
Nov 14, 2018
c8c8ce2
Extract RunOnce into a dedicated class (#35489)
tlrx Nov 14, 2018
803ecce
HLRC: Adding ML Update Filter API (#35522)
benwtrent Nov 14, 2018
30a713c
[ILM] add docs explaining high-level concepts (#35322)
talevy Nov 14, 2018
fc774a3
add ES 6.5.1 (on master) (#35549)
Nov 14, 2018
8ea999e
Include stack trace with ILM error in explain output (#35512)
dakrone Nov 14, 2018
f70d447
[ILM] getting started documentation (#35379)
talevy Nov 14, 2018
5d0544d
update move-to-step spec with proper docs and extra warning to client…
talevy Nov 14, 2018
38d6bb2
[DOCS] Added link to standalone ODBC driver doc. (#35526)
debadair Nov 14, 2018
faa9523
Remove deprecated constructor from failure handler (#35565)
jaymode Nov 15, 2018
91a38b8
[DOCS] Fixed bad cross doc link.
debadair Nov 15, 2018
95a09ab
[ILM] TEST: skip checking _ilm/explain response b/c flaky timing (#35…
talevy Nov 15, 2018
dc1821c
explain geo_point mapping in geoip-processor (#29114)
talevy Nov 15, 2018
5cd9b51
Fix usages of XContentParserUtils.ensureExpectedToken() (#35530)
tlrx Nov 15, 2018
cb8bdea
Fixed bad link in ingest-geo-point
clintongormley Nov 15, 2018
c9b4ef0
Use RunOnce when appropriate (#35553)
tlrx Nov 15, 2018
928ab6a
Suppress CachedTimeThread in hot threads output (#35558)
DaveCTurner Nov 15, 2018
8e2c84a
Clean up XPackInfoResponse class and related tests (#35547)
javanna Nov 15, 2018
bc5b1af
HLRC: Add parameters to stopRollupJob API (#35545)
Nov 15, 2018
eaf010c
SQL: clear the cursor if nested inner hits are enough to fulfill the …
astefan Nov 15, 2018
e6f4425
REST-Tests: Use Dedicated AntBuilders (#35576)
original-brownbear Nov 15, 2018
68d9b56
MINOR: Remove SNAPSHOT Suffixes in Gradle (#35577)
original-brownbear Nov 15, 2018
2d948a0
[HLRC][ML] Add ML delete model snapshot API (#35537)
edsavage Nov 15, 2018
1e60b28
Grant .tasks access to kibana_system role (#35573)
tvernum Nov 15, 2018
19001e7
[DOCS] Updated release state for 7.0.0-alpha1 (#35596)
debadair Nov 15, 2018
90b38d9
[ILM] Avoid NullPointerException in CopyExecutionStateStep (#35568)
dakrone Nov 15, 2018
c7a2c6d
Handle IndexOrDocValuesQuery in composite aggregation (#35392)
jimczi Nov 15, 2018
f7ada9b
Add delayed datacheck to the datafeed job runner (#35387)
benwtrent Nov 15, 2018
501c03e
Painless Context Doc: Add filter context example (#35305)
mayya-sharipova Nov 15, 2018
a8833b0
Painless Context Doc: Add min should match example (#35423)
mayya-sharipova Nov 15, 2018
ce35d04
[TEST] Fix ClusterApplierServiceTests.testClusterStateUpdateLogging
dakrone Nov 15, 2018
3883e9b
Split RolloverStep into Wait and Action steps (#35524)
gwbrown Nov 16, 2018
0cdfc4c
[Doc] Add clarification to boolean query (#32575)
johtani Nov 16, 2018
87a8b99
HLRC: Add "_has_privileges" API to Security Client (#35479)
tvernum Nov 16, 2018
253c2fc
[HLRC] AcknowledgedResponse should not extend from ToXContentObject (…
martijnvg Nov 16, 2018
c6e2634
Docs: HLRC: refactor bulk, migrate and reindex apis (#35413)
pgomulka Nov 16, 2018
903d27a
Fix phrase_slop in query_string query (#35533)
jimczi Nov 16, 2018
f9aff7b
AwaitsFix the RecoveryIT suite - see #35597
DaveCTurner Nov 15, 2018
2da4bc8
Remove usages of CharSequence in Sets (#35501)
Nov 16, 2018
797cffb
[TEST] Replace fields in response with actual values
martijnvg Nov 16, 2018
e360c60
ML: Adjusing BWC version post backport to 6.6 (#35605)
benwtrent Nov 16, 2018
76b77db
Remove remaining line length violations for o.e.action.admin.cluster …
tomcallahan Nov 16, 2018
d3d7c01
Revert "[RCI] Check blocks while having index shard permit in Transpo…
tlrx Nov 16, 2018
b7dcd30
Revert "AwaitsFix the RecoveryIT suite - see #35597"
tlrx Nov 16, 2018
6a8fe49
Unmute BuildExamplePluginsIT
alpar-t Nov 16, 2018
40ba4de
Deprecate types in validate query requests. (#35575)
jtibshirani Nov 16, 2018
fc63ea5
[DOCS] Add beta warning to ILM pages. (#35571)
debadair Nov 16, 2018
baf33b3
Removes AbstractComponent from several classes (#35566)
jklancic Nov 16, 2018
d62bbca
[Scripting] Use Number as a return value for BucketAggregationScript …
jdconrad Nov 16, 2018
4fea6b6
Refactor an ambigious TermVectorsRequest constructor. (#35614)
jtibshirani Nov 16, 2018
c6a0904
Deprecate types in count and msearch. (#35421)
jtibshirani Nov 16, 2018
0227260
Remove use of AbstractComponent in server (#35444)
gavlyukovskiy Nov 16, 2018
22933eb
Fix line length for org.elasticsearch.action.* files (#35607)
dakrone Nov 16, 2018
3c03975
Watcher: Use joda method to get local TZ (#35608)
rjernst Nov 16, 2018
cce9648
Align RolloverStep's name with other step names (#35655)
gwbrown Nov 17, 2018
bb51cdb
Add HLRC docs for Get Lifecycle Policy (#35612)
gwbrown Nov 17, 2018
f8e333b
SQL: Move internals from Joda to java.time (#35649)
costin Nov 17, 2018
4119409
SQL: Improve validation of unsupported fields (#35675)
costin Nov 18, 2018
c468d92
Remove line length violations in o.e.indices package (#35647)
martijnvg Nov 19, 2018
2ee25c8
Mute CronEvalToolTests.testEnsureDateIsShownInRootLocale
Nov 19, 2018
ae6a332
HLRC: Add ML delete filter action (#35382)
iverase Nov 19, 2018
fda59ff
The default of tests.jvms should not be capped (#35259)
alpar-t Nov 19, 2018
6d8af97
[Docs] Warn about searching across all fields wt. `query_string` (#35…
geekpete Nov 19, 2018
f70b7dc
Mute DataTypeConversionTests.testConversionToDate
Nov 19, 2018
bc7dea4
ML: changing automatic check_window calculation (#35643)
benwtrent Nov 19, 2018
450db7f
[Tests] Fix slowness of AutoDateHistogramAggregatorTests (#35072)
ekalgolas Nov 19, 2018
6d4a3f8
Removes two unused AnalysisConfig options (#35645)
benwtrent Nov 19, 2018
036c15d
Build: Fix official plugins list (#35661)
nik9000 Nov 19, 2018
a8433a3
[Docs] Fix `service_api_key` in PagerDuty documentation (#35589)
tlrx Nov 19, 2018
156b3ca
[Docs] Fix filter context in script-query.asciidoc (#35677)
synhershko Nov 19, 2018
b205713
Remove AbstractComponent from AbstractLifecycleComponent (#35560)
gwbrown Nov 19, 2018
aaeb47d
HLRC for _mtermvectors (#35266)
mayya-sharipova Nov 19, 2018
214bc96
HLRC: ML Add Job to Calendar API (#35666)
benwtrent Nov 19, 2018
a0e6972
Correct errors - HRLC TermVectorRequest (#35705)
mayya-sharipova Nov 19, 2018
80bcf7c
[ML]: adjusting post backport of (#35645) (#35696)
benwtrent Nov 19, 2018
3a232d7
[DOCS] Adds anchor for SAML Kibana basic info
lcawl Nov 19, 2018
7a779a9
[TEST] fixing ClusterApplierService#testClusterStateUpdateLogging() (…
benwtrent Nov 19, 2018
90c0d44
[ILM] DOCS: clarify interaction between rollover and min_age (#35663)
talevy Nov 19, 2018
bf02897
Fix doc link for HLRC async Put Lifecycle API (#35656)
gwbrown Nov 19, 2018
e012ac4
Add HLRC docs for ILM Start/Stop/Status (#35672)
gwbrown Nov 20, 2018
220c175
Provide links to auto-follow docs (#35674)
jasontedor Nov 20, 2018
3bba9a5
TEST: Enable skipped test (#35682)
tvernum Nov 20, 2018
d367894
DOCS: Add password_hash & refresh to Put User API (#35574)
tvernum Nov 20, 2018
a989b67
Remove NPE from IndexFollowingIT (#35717)
Tim-Brooks Nov 20, 2018
29ef442
Add a `_freeze` / `_unfreeze` API (#35592)
s1monw Nov 20, 2018
a5f5ceb
Remove remaining line length violations for o.e.index (#35652)
jimczi Nov 20, 2018
7b2d547
[Docs] Delete inappropriate backtick (#35722)
taxpon Nov 20, 2018
8659af6
Auto skip license headers on no source (#35640)
alpar-t Nov 20, 2018
844483a
[HLRC][ML] Add ML update model snapshot API (#35537) (#35694)
edsavage Nov 20, 2018
8892408
SNAPSHOT: Fix Leaking Snapshot Task in IT (#35657)
original-brownbear Nov 20, 2018
d707838
HLRC: ML Delete job from calendar (#35713)
benwtrent Nov 20, 2018
7657e6d
HLRC ML Add Event To Calendar API (#35704)
benwtrent Nov 20, 2018
33c713b
TESTS: More Logging in LongGcDisruptionTests (#35702)
original-brownbear Nov 20, 2018
d061b39
[ILM] HLRC-ILM Retry Lifecycle Policy docs (#35715)
talevy Nov 20, 2018
e91f404
Remove remains of 'auto_generate_phrase_queries' (#35735)
Nov 20, 2018
89cf4a7
NETWORKING: Fix IpFiltering Test (#35730)
original-brownbear Nov 20, 2018
17780ce
Add HLRC docs for Delete Lifecycle Policy (#35664)
gwbrown Nov 20, 2018
328448e
Implement a property to allow for splitting tests. (#35473)
alpar-t Nov 20, 2018
953c858
Fix PrimaryAllocationIT#testForceStaleReplicaToBePromotedToPrimary (#…
vladimirdolzhenko Nov 20, 2018
4bda469
Fix line lengths in misc other files (#35650)
gwbrown Nov 20, 2018
c07ad67
Add 6.5.2 version
rjernst Nov 20, 2018
643bb20
Add a new query type - ScriptScoreQuery (#34533)
mayya-sharipova Nov 20, 2018
84db1e4
HLRC: ML Get Calendar Events (#35747)
benwtrent Nov 20, 2018
04a087f
[DOCS] Adds authorization info for CCR APIs (#35557)
lcawl Nov 21, 2018
b1818db
SQL: [docs] Add documentation for COALESCE (#35740)
Nov 21, 2018
fa6d8a5
[DOCS] Fixes navtitle for CCR API
lcawl Nov 21, 2018
ff03443
Fix problem with MatchNoDocsQuery in disjunction queries (#35726)
Nov 21, 2018
30c5422
Move XContent generation to HasPrivilegesResponse (#35616)
tvernum Nov 21, 2018
a6647a2
[HLRC] Added support for CCR Unfollow API (#35693)
martijnvg Nov 21, 2018
e8ec4fa
[DOCS] Adjust Invalidate Token REST API docs (#35622)
jkakavas Nov 21, 2018
f6a43b5
Add a prebuilt ICU Analyzer (#34958)
romseygeek Nov 21, 2018
4f857c4
[HLRC][ML] Add ML revert model snapshot API (#35750)
edsavage Nov 21, 2018
778550a
Clean up StartBasicResponse (#35688)
javanna Nov 21, 2018
65d8fdf
Clean up PutLicenseResponse (#35689)
javanna Nov 21, 2018
5847f83
Move ScoreAccessor to test-framework (#35766)
Nov 21, 2018
6638708
Remove deprecated QueryStringQueryBuilder#splitOnWhiteSpace (#35763)
Nov 21, 2018
1cb578b
[DOCS] Update sysctl instructions for Docker on Mac (#35755)
dliappis Nov 21, 2018
7a21034
TESTS: Remove Dead Code in Disruption Tests (#35768)
original-brownbear Nov 21, 2018
9b2ab06
[HLRC] Added support for CCR Resume Follow API (#35638)
martijnvg Nov 21, 2018
bdf632b
SNAPSHOTING+MINOR: Simplify SnapshortShardService (#35769)
original-brownbear Nov 21, 2018
f0a3d32
SQL: Introduce INTERVAL support (#35521)
costin Nov 21, 2018
25f83ae
[HLRC] Add support for get application privileges API (#35556)
jkakavas Nov 21, 2018
3c466d2
Add missing tag for get-privileges Docs
jkakavas Nov 21, 2018
592a909
`manage_token` privilege for `kibana_system`
albertzaharovits Nov 21, 2018
26cc8ff
Add pointer to the index-phrases option in shingle filter docs (#35771)
romseygeek Nov 21, 2018
03f0037
SQL: Perform lazy evaluation of mismatched mappings (#35676)
costin Nov 21, 2018
e179bd3
SQL: Implement IFNULL variant of COALESCE (#35762)
matriv Nov 21, 2018
d9c6986
Ensure all Steps have Javadoc (#35757)
gwbrown Nov 21, 2018
3bee25c
[GEO] Add support to ShapeBuilders for building Lucene geometry (#35707)
nknize Nov 21, 2018
60db06e
[ILM] refactor ExplainLifecycleRequest to enforce indices (#35753)
talevy Nov 21, 2018
1a5553d
MINOR: Cleanup Runnables in SnapshotsService (#35796)
original-brownbear Nov 21, 2018
39789d0
GEO: More robust handling of ignore_malformed in geoshape parsing (#3…
imotov Nov 21, 2018
3548d6a
[HLRC] Fix issue in equals impl for GlobalOperationPrivileges (#35721)
bizybot Nov 21, 2018
d95d885
SQL: Implement ISNULL(expr1, expr2) (#35793)
matriv Nov 21, 2018
90a8e4b
HLRC: ML Delete event from Calendar (#35760)
benwtrent Nov 21, 2018
927b242
[TEST] fix invalid ExplainLifecycleRequest in tests (#35804)
talevy Nov 21, 2018
7820918
[DOCS] Adds more authorization info for CCR APIs (#35606)
lcawl Nov 21, 2018
b01daed
[TEST] Ensure job does not trigger
polyfractal Nov 21, 2018
2887680
Avoid NPE in follower stats when no tasks metadata (#35802)
jasontedor Nov 22, 2018
be8097f
Improve docs for index_prefixes option (#35778)
romseygeek Nov 22, 2018
11052b7
TransportResyncReplicationAction should not honour blocks (#35795)
tlrx Nov 22, 2018
92acf47
SQL: Implement NVL(expr1, expr2) (#35794)
matriv Nov 22, 2018
b6014d9
Forbid negative scores in functon_score query (#35709)
mayya-sharipova Nov 22, 2018
f9f7261
Revert "Revert "[RCI] Check blocks while having index shard permit in…
tlrx Nov 22, 2018
7daccaa
Mute test
albertzaharovits Nov 22, 2018
4fc911a
Mute test InternalEngineTests
albertzaharovits Nov 22, 2018
96a741f
[TEST] escape brackets
martijnvg Nov 22, 2018
e37a0ef
Upgrade to lucene-8.0.0-snapshot-67cdd21996 (#35816)
jimczi Nov 22, 2018
43d6ec8
Remove unnecessary throws IOException in CompressedXContent.string() …
dimitris-athanasiou Nov 22, 2018
6f46584
[ML] Add docs for ML info endpoint (#35783)
Nov 22, 2018
6fb7ce6
[Tests] Fix creating ExplainLifecycleRequest with no indices (#35828)
Nov 23, 2018
fb80d29
[Docs] Correct template example description #35829
scampi Nov 23, 2018
813e053
Fixed response classes in hlrc docs
martijnvg Nov 23, 2018
3c059ee
[HLRC][ML] Add ML find file structure API (#35833)
Nov 23, 2018
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add stop rollup job support to HL REST Client (elastic#34702)
This change adds support for stoping a rollup job to the High Level REST Client. Relates to elastic#29827
  • Loading branch information
Christoph Büscher authored Nov 14, 2018
commit 603d1a470fe080d33e4def82b01c249c36bd8a2a
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,14 @@
import org.elasticsearch.client.rollup.GetRollupJobResponse;
import org.elasticsearch.client.rollup.GetRollupCapsRequest;
import org.elasticsearch.client.rollup.GetRollupCapsResponse;
import org.elasticsearch.client.rollup.GetRollupJobRequest;
import org.elasticsearch.client.rollup.GetRollupJobResponse;
import org.elasticsearch.client.rollup.PutRollupJobRequest;
import org.elasticsearch.client.rollup.PutRollupJobResponse;
import org.elasticsearch.client.rollup.StartRollupJobRequest;
import org.elasticsearch.client.rollup.StartRollupJobResponse;
import org.elasticsearch.client.rollup.StopRollupJobRequest;
import org.elasticsearch.client.rollup.StopRollupJobResponse;

import java.io.IOException;
import java.util.Collections;
Expand Down Expand Up @@ -118,6 +122,40 @@ public void startRollupJobAsync(StartRollupJobRequest request, RequestOptions op
listener, Collections.emptySet());
}

/**
* Stop a rollup job
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-stop-job.html">
* the docs</a> for more.
* @param request the request
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
* @return the response
* @throws IOException in case there is a problem sending the request or parsing back the response
*/
public StopRollupJobResponse stopRollupJob(StopRollupJobRequest request, RequestOptions options) throws IOException {
return restHighLevelClient.performRequestAndParseEntity(request,
RollupRequestConverters::stopJob,
options,
StopRollupJobResponse::fromXContent,
Collections.emptySet());
}

/**
* Asynchronously stop a rollup job
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-stop-job.html">
* the docs</a> for more.
* @param request the request
* @param options the request options (e.g. headers), use {@link RequestOptions#DEFAULT} if nothing needs to be customized
* @param listener the listener to be notified upon request completion
*/
public void stopRollupJobAsync(StopRollupJobRequest request, RequestOptions options,
ActionListener<StopRollupJobResponse> listener) {
restHighLevelClient.performRequestAsyncAndParseEntity(request,
RollupRequestConverters::stopJob,
options,
StopRollupJobResponse::fromXContent,
listener, Collections.emptySet());
}

/**
* Delete a rollup job from the cluster
* See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/rollup-delete-job.html">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
import org.elasticsearch.client.rollup.GetRollupJobRequest;
import org.elasticsearch.client.rollup.PutRollupJobRequest;
import org.elasticsearch.client.rollup.StartRollupJobRequest;
import org.elasticsearch.client.rollup.StopRollupJobRequest;

import java.io.IOException;

Expand Down Expand Up @@ -55,8 +56,16 @@ static Request startJob(final StartRollupJobRequest startRollupJobRequest) throw
.addPathPart(startRollupJobRequest.getJobId())
.addPathPartAsIs("_start")
.build();
Request request = new Request(HttpPost.METHOD_NAME, endpoint);
return request;
return new Request(HttpPost.METHOD_NAME, endpoint);
}

static Request stopJob(final StopRollupJobRequest stopRollupJobRequest) throws IOException {
String endpoint = new RequestConverters.EndpointBuilder()
.addPathPartAsIs("_xpack", "rollup", "job")
.addPathPart(stopRollupJobRequest.getJobId())
.addPathPartAsIs("_stop")
.build();
return new Request(HttpPost.METHOD_NAME, endpoint);
}

static Request getJob(final GetRollupJobRequest getRollupJobRequest) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class StartRollupJobResponse extends AcknowledgedResponse {
private static final String PARSE_FIELD_NAME = "started";

private static final ConstructingObjectParser<StartRollupJobResponse, Void> PARSER = AcknowledgedResponse
.generateParser("delete_rollup_job_response", StartRollupJobResponse::new, PARSE_FIELD_NAME);
.generateParser("start_rollup_job_response", StartRollupJobResponse::new, PARSE_FIELD_NAME);

public StartRollupJobResponse(boolean acknowledged) {
super(acknowledged);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
package org.elasticsearch.client.rollup;

import org.elasticsearch.client.Validatable;

import java.util.Objects;

public class StopRollupJobRequest implements Validatable {

private final String jobId;

public StopRollupJobRequest(final String jobId) {
this.jobId = Objects.requireNonNull(jobId, "id parameter must not be null");
}

public String getJobId() {
return jobId;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
final StopRollupJobRequest that = (StopRollupJobRequest) o;
return Objects.equals(jobId, that.jobId);
}

@Override
public int hashCode() {
return Objects.hash(jobId);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/

package org.elasticsearch.client.rollup;

import org.elasticsearch.client.core.AcknowledgedResponse;
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
import org.elasticsearch.common.xcontent.XContentParser;

import java.io.IOException;

public class StopRollupJobResponse extends AcknowledgedResponse {

private static final String PARSE_FIELD_NAME = "stopped";

private static final ConstructingObjectParser<StopRollupJobResponse, Void> PARSER = AcknowledgedResponse
.generateParser("stop_rollup_job_response", StopRollupJobResponse::new, PARSE_FIELD_NAME);

public StopRollupJobResponse(boolean acknowledged) {
super(acknowledged);
}

public static StopRollupJobResponse fromXContent(final XContentParser parser) throws IOException {
return PARSER.parse(parser, null);
}

@Override
protected String getFieldName() {
return PARSE_FIELD_NAME;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,12 @@
import org.elasticsearch.client.rollup.GetRollupJobResponse.JobWrapper;
import org.elasticsearch.client.rollup.PutRollupJobRequest;
import org.elasticsearch.client.rollup.PutRollupJobResponse;
import org.elasticsearch.client.rollup.StartRollupJobRequest;
import org.elasticsearch.client.rollup.StartRollupJobResponse;
import org.elasticsearch.client.rollup.RollableIndexCaps;
import org.elasticsearch.client.rollup.RollupJobCaps;
import org.elasticsearch.client.rollup.StartRollupJobRequest;
import org.elasticsearch.client.rollup.StartRollupJobResponse;
import org.elasticsearch.client.rollup.StopRollupJobRequest;
import org.elasticsearch.client.rollup.StopRollupJobResponse;
import org.elasticsearch.client.rollup.job.config.DateHistogramGroupConfig;
import org.elasticsearch.client.rollup.job.config.GroupConfig;
import org.elasticsearch.client.rollup.job.config.MetricConfig;
Expand Down Expand Up @@ -230,6 +232,11 @@ public void testPutStartAndGetRollupJob() throws Exception {
assertThat(job.getStatus().getState(), either(equalTo(IndexerState.STARTED)).or(equalTo(IndexerState.INDEXING)));
assertThat(job.getStatus().getCurrentPosition(), hasKey("date.date_histogram"));
assertEquals(true, job.getStatus().getUpgradedDocumentId());

// stop the job
StopRollupJobRequest stopRequest = new StopRollupJobRequest(id);
StopRollupJobResponse stopResponse = execute(stopRequest, rollupClient::stopRollupJob, rollupClient::stopRollupJobAsync);
assertTrue(stopResponse.isAcknowledged());
}

public void testGetMissingRollupJob() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.elasticsearch.client.rollup.GetRollupJobRequest;
import org.elasticsearch.client.rollup.PutRollupJobRequest;
import org.elasticsearch.client.rollup.StartRollupJobRequest;
import org.elasticsearch.client.rollup.StopRollupJobRequest;
import org.elasticsearch.client.rollup.job.config.RollupJobConfig;
import org.elasticsearch.client.rollup.job.config.RollupJobConfigTests;
import org.elasticsearch.test.ESTestCase;
Expand Down Expand Up @@ -61,6 +62,18 @@ public void testStartJob() throws IOException {
assertThat(request.getEntity(), nullValue());
}

public void testStopJob() throws IOException {
String jobId = randomAlphaOfLength(5);

StopRollupJobRequest stopJob = new StopRollupJobRequest(jobId);

Request request = RollupRequestConverters.stopJob(stopJob);
assertThat(request.getEndpoint(), equalTo("/_xpack/rollup/job/" + jobId + "/_stop"));
assertThat(HttpPost.METHOD_NAME, equalTo(request.getMethod()));
assertThat(request.getParameters().keySet(), empty());
assertNull(request.getEntity());
}

public void testGetJob() {
boolean getAll = randomBoolean();
String job = getAll ? "_all" : RequestConvertersTests.randomIndicesNames(1, 1)[0];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
import org.elasticsearch.action.index.IndexRequest;
import org.elasticsearch.action.support.WriteRequest;
import org.elasticsearch.client.ESRestHighLevelClientTestCase;
import org.elasticsearch.client.Request;
import org.elasticsearch.client.RequestOptions;
import org.elasticsearch.client.Response;
import org.elasticsearch.client.RestHighLevelClient;
import org.elasticsearch.client.RollupClient;
import org.elasticsearch.client.rollup.DeleteRollupJobRequest;
Expand All @@ -51,6 +49,8 @@
import org.elasticsearch.client.rollup.RollupJobCaps;
import org.elasticsearch.client.rollup.StartRollupJobRequest;
import org.elasticsearch.client.rollup.StartRollupJobResponse;
import org.elasticsearch.client.rollup.StopRollupJobRequest;
import org.elasticsearch.client.rollup.StopRollupJobResponse;
import org.elasticsearch.client.rollup.job.config.DateHistogramGroupConfig;
import org.elasticsearch.client.rollup.job.config.GroupConfig;
import org.elasticsearch.client.rollup.job.config.HistogramGroupConfig;
Expand Down Expand Up @@ -237,59 +237,96 @@ public void onFailure(Exception e) {
assertTrue(latch.await(30L, TimeUnit.SECONDS));
}


@SuppressWarnings("unused")
public void testStartRollupJob() throws Exception {
testCreateRollupJob();
RestHighLevelClient client = highLevelClient();

String id = "job_1";
// tag::rollup-start-job-request
StartRollupJobRequest request = new StartRollupJobRequest(id); // <1>
// end::rollup-start-job-request


try {
// tag::rollup-start-job-execute
RollupClient rc = client.rollup();
StartRollupJobResponse response = rc.startRollupJob(request, RequestOptions.DEFAULT);
// end::rollup-start-job-execute

// tag::rollup-start-job-response
response.isAcknowledged(); // <1>
// end::rollup-start-job-response
} catch (Exception e) {
// Swallow any exception, this test does not test actually cancelling.
}

// tag::rollup-start-job-execute-listener
ActionListener<StartRollupJobResponse> listener = new ActionListener<StartRollupJobResponse>() {
@Override
public void onResponse(StartRollupJobResponse response) {
// <1>
}

@Override
public void onFailure(Exception e) {
// <2>
}
};
// end::rollup-start-job-execute-listener

final CountDownLatch latch = new CountDownLatch(1);
listener = new LatchedActionListener<>(listener, latch);

// tag::rollup-start-job-execute-async
RollupClient rc = client.rollup();
rc.startRollupJobAsync(request, RequestOptions.DEFAULT, listener); // <1>
// end::rollup-start-job-execute-async

assertTrue(latch.await(30L, TimeUnit.SECONDS));

// stop job so it can correctly be deleted by the test teardown
// TODO Replace this with the Rollup Stop Job API
Response stoptResponse = client().performRequest(new Request("POST", "/_xpack/rollup/job/" + id + "/_stop"));
assertEquals(RestStatus.OK.getStatus(), stoptResponse.getStatusLine().getStatusCode());
rc.stopRollupJob(new StopRollupJobRequest(id), RequestOptions.DEFAULT);
}

@SuppressWarnings("unused")
public void testStopRollupJob() throws Exception {
testCreateRollupJob();
RestHighLevelClient client = highLevelClient();

String id = "job_1";
// tag::rollup-stop-job-request
StopRollupJobRequest request = new StopRollupJobRequest(id); // <1>
// end::rollup-stop-job-request


try {
// tag::rollup-stop-job-execute
RollupClient rc = client.rollup();
StopRollupJobResponse response = rc.stopRollupJob(request, RequestOptions.DEFAULT);
// end::rollup-stop-job-execute

// tag::rollup-stop-job-response
response.isAcknowledged(); // <1>
// end::rollup-stop-job-response
} catch (Exception e) {
// Swallow any exception, this test does not test actually cancelling.
}

// tag::rollup-stop-job-execute-listener
ActionListener<StopRollupJobResponse> listener = new ActionListener<StopRollupJobResponse>() {
@Override
public void onResponse(StopRollupJobResponse response) {
// <1>
}

@Override
public void onFailure(Exception e) {
// <2>
}
};
// end::rollup-stop-job-execute-listener

final CountDownLatch latch = new CountDownLatch(1);
listener = new LatchedActionListener<>(listener, latch);

// tag::rollup-stop-job-execute-async
RollupClient rc = client.rollup();
rc.stopRollupJobAsync(request, RequestOptions.DEFAULT, listener); // <1>
// end::rollup-stop-job-execute-async

assertTrue(latch.await(30L, TimeUnit.SECONDS));
}

@SuppressWarnings("unused")
Expand Down
Loading