You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* master:
Mute ML upgrade test (#30458)
Stop forking javac (#30462)
Client: Deprecate many argument performRequest (#30315)
Docs: Use task_id in examples of tasks (#30436)
Security: Rename IndexLifecycleManager to SecurityIndexManager (#30442)
[Docs] Fix typo in cardinality-aggregation.asciidoc (#30434)
Avoid NPE in `more_like_this` when field has zero tokens (#30365)
Build: Switch to building javadoc with html5 (#30440)
Add a quick tour of the project to CONTRIBUTING (#30187)
Reindex: Use request flavored methods (#30317)
Silence SplitIndexIT.testSplitIndexPrimaryTerm test failure. (#30432)
Auto-expand replicas when adding or removing nodes (#30423)
Docs: fix changelog merge
Fix line length violation in cache tests
Add stricter geohash parsing (#30376)
Add failing test for core cache deadlock
[DOCS] convert forcemerge snippet
Update forcemerge.asciidoc (#30113)
Added zentity to the list of API extension plugins (#29143)
Fix the search request default operation behavior doc (#29302) (#29405)
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+90-1
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ We enjoy working with contributors to get their code accepted. There are many ap
41
41
Note that it is unlikely the project will merge refactors for the sake of refactoring. These
42
42
types of pull requests have a high cost to maintainers in reviewing and testing with little
43
43
to no tangible benefit. This especially includes changes generated by tools. For example,
44
-
converting all generic interface instances to use the diamond operator.
44
+
converting all generic interface instances to use the diamond operator.
45
45
46
46
The process for contributing to any of the [Elastic repositories](https://github.com/elastic/) is similar. Details for individual projects can be found below.
47
47
@@ -209,6 +209,95 @@ Before submitting your changes, run the test suite to make sure that nothing is
209
209
./gradlew check
210
210
```
211
211
212
+
### Project layout
213
+
214
+
This repository is split into many top level directories. The most important
215
+
ones are:
216
+
217
+
#### `docs`
218
+
Documentation for the project.
219
+
220
+
#### `distribution`
221
+
Builds our tar and zip archives and our rpm and deb packages.
222
+
223
+
#### `libs`
224
+
Libraries used to build other parts of the project. These are meant to be
225
+
internal rather than general purpose. We have no plans to
226
+
[semver](https://semver.org/) their APIs or accept feature requests for them.
227
+
We publish them to maven central because they are dependencies of our plugin
228
+
test framework, high level rest client, and jdbc driver but they really aren't
229
+
general purpose enough to *belong* in maven central. We're still working out
230
+
what to do here.
231
+
232
+
#### `modules`
233
+
Features that are shipped with Elasticsearch by default but are not built in to
234
+
the server. We typically separate features from the server because they require
235
+
permissions that we don't believe *all* of Elasticsearch should have or because
236
+
they depend on libraries that we don't believe *all* of Elasticsearch should
237
+
depend on.
238
+
239
+
For example, reindex requires the `connect` permission so it can perform
240
+
reindex-from-remote but we don't believe that the *all* of Elasticsearch should
241
+
have the "connect". For another example, Painless is implemented using antlr4
242
+
and asm and we don't believe that *all* of Elasticsearch should have access to
243
+
them.
244
+
245
+
#### `plugins`
246
+
Officially supported plugins to Elasticsearch. We decide that a feature should
247
+
be a plugin rather than shipped as a module because we feel that it is only
248
+
important to a subset of users, especially if it requires extra dependencies.
249
+
250
+
The canonical example of this is the ICU analysis plugin. It is important for
251
+
folks who want the fairly language neutral ICU analyzer but the library to
252
+
implement the analyzer is 11MB so we don't ship it with Elasticsearch by
253
+
default.
254
+
255
+
Another example is the `discovery-gce` plugin. It is *vital* to folks running
256
+
in [GCP](https://cloud.google.com/) but useless otherwise and it depends on a
257
+
dozen extra jars.
258
+
259
+
#### `qa`
260
+
Honestly this is kind of in flux and we're not 100% sure where we'll end up.
261
+
Right now the directory contains
262
+
* Tests that require multiple modules or plugins to work
263
+
* Tests that form a cluster made up of multiple versions of Elasticsearch like
264
+
full cluster restart, rolling restarts, and mixed version tests
265
+
* Tests that test the Elasticsearch clients in "interesting" places like the
266
+
`wildfly` project.
267
+
* Tests that test Elasticsearch in funny configurations like with ingest
268
+
disabled
269
+
* Tests that need to do strange things like install plugins that thrown
270
+
uncaught `Throwable`s or add a shutdown hook
271
+
But we're not convinced that all of these things *belong* in the qa directory.
272
+
We're fairly sure that tests that require multiple modules or plugins to work
273
+
should just pick a "home" plugin. We're fairly sure that the multi-version
274
+
tests *do* belong in qa. Beyond that, we're not sure. If you want to add a new
275
+
qa project, open a PR and be ready to discuss options.
276
+
277
+
#### `server`
278
+
The server component of Elasticsearch that contains all of the modules and
279
+
plugins. Right now things like the high level rest client depend on the server
280
+
but we'd like to fix that in the future.
281
+
282
+
#### `test`
283
+
Our test framework and test fixtures. We use the test framework for testing the
284
+
server, the plugins, and modules, and pretty much everything else. We publish
285
+
the test framework so folks who develop Elasticsearch plugins can use it to
286
+
test the plugins. The test fixtures are external processes that we start before
287
+
running specific tests that rely on them.
288
+
289
+
For example, we have an hdfs test that uses mini-hdfs to test our
290
+
repository-hdfs plugin.
291
+
292
+
#### `x-pack`
293
+
Commercially licensed code that integrates with the rest of Elasticsearch. The
294
+
`docs` subdirectory functions just like the top level `docs` subdirectory and
295
+
the `qa` subdirectory functions just like the top level `qa` subdirectory. The
296
+
`plugin` subdirectory contains the x-pack module which runs inside the
297
+
Elasticsearch process. The `transport-client` subdirectory contains extensions
298
+
to Elasticsearch's standard transport client to work properly with x-pack.
299
+
300
+
212
301
Contributing as part of a class
213
302
-------------------------------
214
303
In general Elasticsearch is happy to accept contributions that were created as
{ref-64}/breaking_64_api_changes.html#copy-source-settings-on-resize[Allow copying source settings on index resize operations] ({pull}30255[#30255])
157
162
158
-
Added new "Request" object flavored request methods. Prefer these instead of the
159
-
multi-argument versions. ({pull}29623[#29623])
163
+
Added new "Request" object flavored request methods in the RestClient. Prefer
164
+
these instead of the multi-argument versions. ({pull}29623[#29623])
160
165
161
166
The cluster state listener to decide if watcher should be
162
167
stopped/started/paused now runs far less code in an executor but is more
@@ -169,6 +174,8 @@ Added put index template API to the high level rest client ({pull}30400[#30400])
169
174
[float]
170
175
=== Bug Fixes
171
176
177
+
Fix NPE in 'more_like_this' when field has zero tokens ({pull}30365[#30365])
178
+
172
179
Do not ignore request analysis/similarity settings on index resize operations when the source index already contains such settings ({pull}30216[#30216])
173
180
174
181
Fix NPE when CumulativeSum agg encounters null value/empty bucket ({pull}29641[#29641])
@@ -177,10 +184,18 @@ Machine Learning::
177
184
178
185
* Account for gaps in data counts after job is reopened ({pull}30294[#30294])
179
186
187
+
Add validation that geohashes are not empty and don't contain unsupported characters ({pull}30376[#30376])
188
+
180
189
Rollup::
181
190
* Validate timezone in range queries to ensure they match the selected job when
182
191
searching ({pull}30338[#30338])
183
192
193
+
194
+
Allocation::
195
+
196
+
Auto-expand replicas when adding or removing nodes to prevent shard copies from
197
+
being dropped and resynced when a data node rejoins the cluster ({pull}30423[#30423])
0 commit comments