Commit graph

10178 commits

Author SHA1 Message Date
João Duarte
8ba25a9d9e
Update JDK to 11.0.20+8 (#15216) 2023-07-25 10:13:32 +01:00
github-actions[bot]
fce9da92dd
Release notes for 7.17.12 (#15199)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
Co-authored-by: Edmo Vamerlatti Costa <11836452+edmocosta@users.noreply.github.com>
2023-07-24 19:20:00 -04:00
github-actions[bot]
3a4bd272c8
Fix typo that caused subtitle not to show (#15202) (#15203)
(cherry picked from commit b082e519c0)

Co-authored-by: Andres Rodriguez <andres.lazo@elastic.co>
2023-07-20 13:09:30 -04:00
Mashhur
fb45b171b8
Upgrade dependencies, remove deprecated dependencies. (#15134)
* upgrades logstash-mixin-aws to 5.1.0
* removes unused aws-sdk-v1 dependency.
* upgrades json version to 2.6.3
* upgrades fpm to 1.14.1 where 13.x versions.
2023-07-18 11:16:55 +01:00
github-actions[bot]
6ac076092e
specs: assert presence of logging without risking NoMethodError (#14633) (#14719)
* specs: assert presence of logging without risking NoMethodError

* Update qa/integration/specs/monitoring_api_spec.rb

(cherry picked from commit 9460d4d7fc)

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
2023-07-18 10:48:53 +01:00
github-actions[bot]
8fac9131b1
Update patch plugin versions in gemfile lock (#15187)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2023-07-18 10:48:07 +01:00
Edmo Vamerlatti Costa
55b39e17f9
Add release flag on the Gradle CompileJava task (#15178)
This commit adds the --release (JEP 247) option to Gradle's CompileJava task, with the same targetCompatibility major version value.
2023-07-17 14:36:49 +02:00
github-actions[bot]
c2cb579eba
Add initial PQ sizing doc (#15033) (#15171)
Add storage sizing guidance for Persistent Queues.

Co-authored-by: Karen Metts <karen.metts@elastic.co>
Co-authored-by: Joao Duarte <joao@elastic.co>
(cherry picked from commit c2bbed8266)
2023-07-14 15:23:06 -04:00
Rob Bavey
985afee003
Version Bump to 7.17.12 (#15128) 2023-06-29 09:20:58 -04:00
github-actions[bot]
b4f2694554
Release notes for 7.17.11 (#15107)
* Update release notes for 7.17.11


---------

Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
2023-06-28 12:50:18 -04:00
github-actions[bot]
9c4c3c10a9
Update patch plugin versions in gemfile lock (#15101)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2023-06-21 09:37:36 -04:00
João Duarte
edade46bcb
bump to 7.17.11 (#15036) 2023-05-02 09:53:39 +01:00
github-actions[bot]
06ae8240b0
Release notes for 7.17.10 (#15026)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2023-04-27 12:59:55 +01:00
Andrea Selva
ccfbe0f1c7
Updated JDK to 11.0.19 (#15016) 2023-04-20 16:34:09 +01:00
kaisecheng
71d64a96a2
fix missing method worker_threads_draining? in ruby pipeline (#15013)
This commit adds the missing method `worker_threads_draining?` to ruby pipeline which is added in #13934 to java pipeline for log msg improvement

Fixed: #15010
2023-04-20 11:20:00 +01:00
github-actions[bot]
0e5d0a9eb9
Update patch plugin versions in gemfile lock (#15005)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2023-04-18 17:39:07 +01:00
João Duarte
e22404b9f2
pin murmurhash3 to 0.1.6 until 0.1.7-java is out (#15004) 2023-04-18 17:34:50 +01:00
kaisecheng
1a5ef6ad13
pin snakeyaml to 1.33 (#14960)
Co-authored-by: Mashhur Sattorov <mashhur.sattorov@elastic.co>
2023-03-14 13:06:08 +00:00
github-actions[bot]
a8bca85b75
Release notes for 7.17.9 (#14858)
Co-authored-by: João Duarte <jsvd@users.noreply.github.com>
2023-02-02 09:26:47 -05:00
João Duarte
bbe9f80cde
bump to 7.17.10 (#14866) 2023-02-02 12:07:16 +00:00
Andrea Selva
1f111758bc
Fix version lock for Murmurhash3 to the gem for Java runtime (#14857) 2023-01-24 21:55:22 +00:00
Andrea Selva
d2192f2d01
[Backport 7.17] Pin Murmursh3 to 0.1.6 #14832 (#14856) 2023-01-24 17:39:07 +00:00
Andrea Selva
35e7901bf5
Updates bundled JDK to 11.0.18+10 (#14850) 2023-01-24 17:15:22 +00:00
github-actions[bot]
62f5dbffa1
Update patch plugin versions in gemfile lock for 7.17.9 (#14854)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2023-01-24 17:14:58 +00:00
kaisecheng
cb52164cde
bump core version (#14804) 2022-12-08 14:50:51 +00:00
github-actions[bot]
6180be5a43
Release notes for 7.17.8 (#14798)
Co-authored-by: Karen Metts <35154725+karenzone@users.noreply.github.com>
2022-12-07 22:55:11 +00:00
Andrea Selva
12c22f7c2c
Backport PR #14782 to 7.17: Cover all #system invokation with exit code checking, eventually failing the execution of Rake task #14799
Covers all invocations of system Ruby method inside artifcts.rake script to check the exit status and eventually raise an exception.
2022-12-01 15:44:24 +01:00
github-actions[bot]
4366546d28
Update patch plugin versions in gemfile lock (#14796)
Co-authored-by: logstashmachine <43502315+logstashmachine@users.noreply.github.com>
2022-11-30 16:04:54 +00:00
github-actions[bot]
fd3ffc1548
Backport PR #14786 to 7.17: Avoid to create and upload AARCH64 Docker images for UBI8 #14790
On ARM architecture UBI8 Docker images aren't created, so avoid to create empty tar.gz files.

(cherry picked from commit 7a39d97055)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2022-11-29 15:17:45 +01:00
github-actions[bot]
dac65a439e
Backport PR #14780 to 7.17: [DRA] Avoid to loose err code on docker save #14785
* [DRA] Force docker save to save directly on file instead of pipe to another command loosing the execution error code

(cherry picked from commit 2e5e49d10d)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2022-11-29 13:56:54 +01:00
github-actions[bot]
3822b60890
fix: calculated inflight_count from in-flight batches (#14760) (#14766)
During stalled shutdowns while waiting for in-flight batches to complete,
our shutdown watcher emits helpful information about what work is in flight,
including the actual threads and plugins that are still executing.

Since ~6.3.0, the `inflight_count` metric in this log message has always
been `0`, in part because of two somewhat-overlapping bugs:

 - elastic/logstash#8987 and elastic/logstash#9056 (7.0, 6.3) changed
   the `inflight_batches` map provided by the queue read clients to index
   batches by native thread id, but pipeline reporter continued to
   attempt to extract by ruby thread object. Because it does not find
   the thread in the "batch map", it reports zero.
 - elastic/logstash#9111 (7.0, 6.3) changed the _value_ stored in
   the `inflight_batches` map provided by a new common queue read client
   from an object responding to `#size` to a java `QueueBatch` which
   does not respond to `size`. If our pipeline reporter had been able to
   look up the queue batch, it would have failed with a `NoMethodError`.

We resolve the issue by (1) extracting the batch from our "batch map" using
the native thread id and (2) safely extracting the value from a `QueueBatch`
before falling through to `Object#size` or 0.

(cherry picked from commit 4941c25f32)

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
2022-11-18 06:36:36 -08:00
Rob Bavey
69ce6ebdb8
Backport PR#14605 to 7.17: Fix DLQ fails to start due to read 1 byte file (#14752)
Note this is a manual cherry-pick backport, as it did not backport cleanly. This backport includes some changed/additional code to
the original PR:

* Added additional null check in seekToNextEvent that was previously not present in 7.17, but is required for this PR
* Filter is added, but surrounding code is slightly different, but the intent is the same.

**Backport PR #14605 to 8.5 branch, original message:**

---

<!-- Type of change
Please label this PR with the release version and one of the following labels, depending on the scope of your change:
- bug
- enhancement
- breaking change
- doc
-->

<!-- Add content to appear in  [Release Notes](https://www.elastic.co/guide/en/logstash/current/releasenotes.html), or add [rn:skip] to leave this PR out of release notes -->

Fix DLQ fails to start due to read 1 byte file

<!-- Mandatory
Explain here the changes you made on the PR. Please explain the WHAT: patterns used, algorithms implemented, design architecture, message processing, etc.

Example:
  Expose 'xpack.monitoring.elasticsearch.proxy' in the docker environment variables and update logstash.yml to surface this config option.

  This commit exposes the 'xpack.monitoring.elasticsearch.proxy' variable in the docker by adding it in env2yaml.go, which translates from
  being an environment variable to a proper yaml config.

  Additionally, this PR exposes this setting for both xpack monitoring & management to the logstash.yml file.
-->

This commit ignores DLQ files that contain only the version number. These files have no content and should be skipped.

Mapping 1 byte DLQ files to buffer causes java.lang.IllegalArgumentException: newPosition < 0: (-1 < 0)
User is unable to start the pipeline using dead_letter_queue input

<!-- Mandatory
Explain here the WHY or the IMPACT to the user, or the rationale/motivation for the changes.

Example:
  This PR fixes an issue that was preventing the docker image from using the proxy setting when sending xpack monitoring information.
  and/or
  This PR now allows the user to define the xpack monitoring proxy setting in the docker container.
-->

<!-- Mandatory
Add a checklist of things that are required to be reviewed in order to have the PR approved

List here all the items you have verified BEFORE sending this PR. Please DO NOT remove any item, striking through those that do not apply. (Just in case, strikethrough uses two tildes. ~~Scratch this.~~)
-->

- [ ] My code follows the style guidelines of this project
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] I have made corresponding change to the default configuration files (and/or docker env variables)
- [ ] I have added tests that prove my fix is effective or that my feature works

<!-- Recommended
Add a checklist of things that are required to be reviewed in order to have the PR approved
-->
- [x] manually test the 1 byte file and can start Logstash

<!-- Recommended
Explain here how this PR will be tested by the reviewer: commands, dependencies, steps, etc.
-->

follow the reproducer of #14599

<!-- Recommended
Link related issues below. Insert the issue link or reference after the word "Closes" if merging this should automatically close it.

- Closes #123
- Relates #123
- Requires #123
- Superseeds #123
-->
- Fixed: #14599

<!-- Recommended
Explain here the different behaviors that this PR introduces or modifies in this project, user roles, environment configuration, etc.

If you are familiar with Gherkin test scenarios, we recommend its usage: https://cucumber.io/docs/gherkin/reference/
-->

<!-- Optional
Add here screenshots about how the project will be changed after the PR is applied. They could be related to web pages, terminal, etc, or any other image you consider important to be shared with the team.
-->

<!-- Recommended
Paste here output logs discovered while creating this PR, such as stack traces or integration logs, or any other output you consider important to be shared with the team.
-->
2022-11-16 09:21:00 -05:00
github-actions[bot]
a6db1b0db5
Backport PR #14738 to 7.17: [Doc] Document the usage of LS_JAVA_OPTS environment variable #14750
* [Doc] Document the usage of LS_JAVA_OPTS environment variable

Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
(cherry picked from commit 9242105c3c)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2022-11-15 09:45:09 +01:00
github-actions[bot]
810e005aab
Backport PR #14727 to 7.17: Avoid the wrapping of LogstashMessageFactory with log4j's MessageFactory adapter #14742
Starting with Log4j2  2.6 if a subclass of MessageFactory associated with an Logger instance
is not subclass of MessageFactory2, then it's wrapped with MessageFactory2Adapter.

This trigger a log4j warn log that, when a class subclasses LogStash::Plugin for example, is noisy and report about
a Logger is not associated with the default MessagedFactory (LogstashMessageFactory) every time a subclass of Plugins is instantiated.

This commit adapt LogstashMessageFactory to implement the MessagedFactory2 instead of the older MessageFactory to avoid the wrapping with the adapter class.

(cherry picked from commit 05bfaff799)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2022-11-09 11:47:03 +01:00
Andrea Selva
3a8076b066
Update bundled JDK to 11.0.17+8 (#14729) 2022-11-03 15:11:54 +01:00
github-actions[bot]
4e49539f06
DRA: Build dockerfiles for release (#14730) (#14732)
(cherry picked from commit 1dead06cdd)

Co-authored-by: Andres Rodriguez <andres.lazo@elastic.co>
2022-11-03 09:23:47 -04:00
github-actions[bot]
38642484d5
DRA: uploading missing docker-build-context files (#14722) (#14725)
(cherry picked from commit ef6852b687)

Co-authored-by: Andres Rodriguez <andres.lazo@elastic.co>
2022-11-02 18:57:50 -04:00
github-actions[bot]
a2d0da3f5a
DRA - Fix docker image build (#14706) (#14707)
Fix the docker image building and upload process:
 * Builds ubi8 on x86_64.
 * Uploads ironbank and ubi8 context files from x86_64 only.

(cherry picked from commit 2e8bd20cf5)

Co-authored-by: Andres Rodriguez <andres.lazo@elastic.co>
2022-10-26 11:23:15 -04:00
github-actions[bot]
2fa7c0d7f7
Backport PR #14703 to 7.17: Adds upload of missed docker docker-build-context.tar.gz artifacts #14704
Updates the dra_docker.sh script to upload also docker-build-context.tar.gz files

(cherry picked from commit 6ad5690a8c)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2022-10-26 12:17:24 +02:00
github-actions[bot]
e2735bd29f
DRA - Fix error reporting (#14698) (#14700)
Ensures the DRA build script surfaces a rake error, instead of allowing the build to continue.

This ensures that the build doesn't continue if any of the steps fails.

Co-authored-by: Rob Bavey <rob.bavey@elastic.co>
(cherry picked from commit 17d0bb5ffb)
2022-10-25 18:40:01 -04:00
kaisecheng
b884ffbc71
bump core (#14691) 2022-10-25 10:42:15 +01:00
github-actions[bot]
53da859769
DRA - generalize docker image building (#14670) (#14689)
* Generalize docker image building
* Rename and add ability to pass the architecture as a parameter
* Handle ARCH env variable

(cherry picked from commit 6ba5cc112f)

Co-authored-by: Andres Rodriguez <andres.lazo@elastic.co>
2022-10-24 21:23:19 -04:00
github-actions[bot]
6a8b525514
DRA - fix dra_upload syntax, breaking builds (#14685) (#14686)
Fix dra_upload.sh syntax that's breaking the build.

(cherry picked from commit 9584d1332b)

Co-authored-by: Andres Rodriguez <andres.lazo@elastic.co>
2022-10-22 13:04:53 -04:00
github-actions[bot]
50a0500512
Backport PR #14677 to 7.17: [DRA] Don't download Darwin arrch64 for 7.17 #14678
Version 7.17 doesn't generate Darwin aarch64 artifacts. Don't download these artifacts from the GCS bucket, given that we don't build Darwin for that release.

(cherry picked from commit 9c7b7b7454)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2022-10-20 17:18:29 +02:00
github-actions[bot]
b7f5962070
Release notes for 7.17.7 (#14623)
Co-authored-by: David Kilfoyle <41695641+kilfoyle@users.noreply.github.com>
Co-authored-by: Kaise Cheng <kaise.cheng@elastic.co>
2022-10-18 10:08:11 -04:00
Andres Rodriguez
5c30a394af
Manually backport #14654, #14657, #14659 (#14665)
* DRA: Improve shell scripts for debuggability (#14654). The changes remove some code duplication by introducing a common file that can be sourced between all scripts. It also improves debuggability by adding better messages.
* Fix dra_common sourcing (#14657). Fixes the source of dra_common.sh. It will now first check the directory of the file from which this dra_common.sh script is being called. This allows the common script to be sourced regardless of where the sourcing script is being called from.
* Fix sourcing on dra_upload (#14659). Fix sourcing on dra_upload.sh
2022-10-17 18:30:18 -04:00
github-actions[bot]
a441638474
DRA: Handle env variables better (#14644) (#14653)
* DRA: Handle env variables better
* Moved the addition of SNAPSHOT suffix to the version after the VERSION_QUALIFIER
* Fix badly assigned variable, version qualifier has to be appended also to PLAIN_STACK_VERSION and not RELEASE_VER

Co-authored-by: andsel <selva.andre@gmail.com>
(cherry picked from commit db6a7bc619)
2022-10-13 14:04:04 -04:00
github-actions[bot]
2369e16fc1
Backport PR #14645 to 7.17: Avoid to pass SNAPSHOT particle to the version passed to release-manager #14649
The version passed to the release-manager doesn't need the SNAPSHOT particle because already handled by the --workflow="snapshot", if inserted make the release manager to search for artifacts named as 8.5.0-SNAPSHOT-SNAPSHOT

(cherry picked from commit b8792107ad)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2022-10-13 12:54:18 +02:00
github-actions[bot]
3c98813855
Backport PR #14646 to 7.17: Follow up PR of #14645, adds version qualifier to the plain version #14650
(cherry picked from commit cb76c685b7)

Co-authored-by: Andrea Selva <selva.andre@gmail.com>
2022-10-13 12:52:54 +02:00
github-actions[bot]
f3fdcb3d80
dra_upload.sh: Leave artifacts under build/ (#14639) (#14641)
Do not move out artifacts from the build/ former to ensure the upload doesn't fail.

(cherry picked from commit 363adad3b6)

Co-authored-by: Andres Rodriguez <andres.lazo@elastic.co>
2022-10-12 14:41:45 -04:00