Commit graph

42 commits

Author SHA1 Message Date
Dan Hermann
3e99e1f203 Update Reflections library
Fixes #10951
2019-08-29 10:31:07 +00:00
Rob Bavey
b2e8b0b6c4 Update jrjackson, jackson versions
Also splits out jackson and jackson databind versions to allow separate revisions
 for databind.

Fixes #11040
2019-08-12 18:08:22 +00:00
Dan Hermann
4b5dc343ae fix compilation of [field] in [field] event conditions
Fixes #11026
2019-08-08 20:02:24 +00:00
Dan Hermann
7c32f0fcf3
Expose Metrics API to Java plugins (#10761) (#10802)
Expose Metric API to Java plugins and migrate JavaCodecDelegator to new Metric API
2019-05-20 18:10:45 -04:00
Jordan Johnson-Doyle
81f7e42195 Add tests for JavaCodecDelegator
Fixes #10614
2019-04-11 13:10:17 +00:00
Dan Hermann
e6d59de458
Update java dependencies (#10340) 2019-01-18 08:16:13 -06:00
Dan Hermann
e89501e47e Java plugin API
Fixes #10216
2018-12-18 00:39:59 +00:00
Dan Hermann
6c71b50747 move gem-dependent test to rubyTests target
Fixes #10026
2018-09-27 14:49:57 +00:00
Armin
f8860884fa JRUBY: install custom JRuby tar.gz
Fixes #9731
2018-06-14 12:28:39 +00:00
Dan Hermann
cc6ee1aeeb port output_delegator_spec to Java
Fixes #9717
2018-06-08 13:06:12 +00:00
Armin
9e4c8799df JAVAFICATION: Dry up and move pipelines to Java in part
Fixes #9676
2018-05-30 10:50:09 +00:00
Andrew Cholakian
b2fc4fcc57 Explicitly depend on guava 22
We only depended on it transitively in the past, this makes it explicit.

This caused an issue in the google pubsub plugins, reported here: https://github.com/elastic/logstash/issues/9592

In the future, this will be a non-concern when your java plugin API launch with classloader isolation.

Fixes #9622
2018-05-21 16:52:42 +00:00
Armin
645c5c42cc MINOR+BUG: Clean doesn't delete gem jars for logstash-core
Fixes #9387
2018-04-17 11:53:52 +00:00
Andrew Cholakian
5d0bb25735 Use v1.1 of java code format
Fixes #9358
2018-04-11 12:25:12 +00:00
Armin
7d85f5b171 Remove unused Log4j2 dependency that broke jdk9 build and aligned log4j2 test lib dependency version
Fixes #9015
2018-01-23 18:18:28 +00:00
Armin
284366d01c CONFIG COMPILER: Logging to local source files
This reverts commit e5f359367f.

Fixes #8913
2018-01-16 16:48:22 +00:00
Armin
543b7221bd JAVA EntryPoint
* Created `org.logstash.Logstash` as entrypoint
* Safely handle `Ruby` runtime (which sadly is still a singleton, moving away from that will require a few iterations on top of this)
* Adjusted `bat` and `sh` entry point wrappers
* Verified manually that performance is unchanged (i.e. all Java opts are still loaded properly)
* Flattened `.jar` path to make it a little less bothersome to build the `-cp` string
* Retained ability to load jars from Ruby via the global `$LS_JARS_LOADED` variable hack, to keep plugin specs that load LS as a `.gem` functional (like e.g. the ITs in LS itself)
* No need for the gem jars magic anymore, the downloading and moving into place of jars is now all handled by Gradle

Fixes #8161
2018-01-03 19:13:28 +00:00
Armin
d3c33e7926 MINOR: Bring log4j version in line with ES
Fixes #8793
2017-12-04 15:45:25 +00:00
Armin
8810794e0b MINOR: Improve Gradle rubyTests target to properly recognize changes in Ruby code
Fixes #8586
2017-11-06 15:39:03 +00:00
Armin
4478f09eca BUILD: Fix gemspec_jars task to automatically run if necessary
Fixes #8588
2017-11-06 15:37:48 +00:00
Armin
bd99fc36ea Java Pipeline Compiler
Fixes #8569
2017-11-02 17:43:51 +00:00
Armin
fcd04658b0 bootstrap janino
Fixes #8500
2017-10-27 17:16:17 +00:00
Armin
f069eac40c BUILD: Execute RSPEC from JUnit
Fixes #8517
2017-10-26 19:57:54 +00:00
Guy Boertje
9b09d4c899 bump JrJackson/Jackson versions, source all version refs from versions.yml
final (I hope) fixes for consolidated versioning.

After testing with rake artifact:zip, need to try both files.
Add desc to rake test:install-* tasks, tired of
  not seeing them in rake -vT

changes requested via review

Fixes #8373
2017-09-26 15:29:58 +00:00
Armin
f06e859717 #7998 Serialization benchmark and Afterburner removal
Fixes #8002
2017-08-16 16:08:09 +00:00
Armin
c2e55ba07b MINOR: Enable javac warnings
Fixes #7674
2017-07-13 10:40:46 +00:00
Jake Landis
17be8b09c3 Metrics: Move counters and gauges to Java with stricter types.
This change moves the definition of the counters and gauges from Ruby to Java, providing a Ruby bridge that allows support for Ruby duck typing to Java strict typing.
This change also moves the serialzation from JRuby (Jackson) to Java (Jackson).
This change also removes the decrement from counter api and requires counters start at zero. This helps to allowing for reliable aggregrations over time.
This change removes the base Ruby class for metrics, and replaces with base Java class.
This change removes the to_hash method (no known usages).
This change also has minor changes to the Ruby type() and inspect() methods.

Fixes #7509

Fixes #7595
2017-07-12 22:41:20 +00:00
Jake Landis
3972a1d059 Fix ominous warning: jar coordinate ... already loaded
This change to ensure that Java and JRuby agree upon the version of Jackson. This downgrades Java from 2.7.4 to 2.7.3 (which is the JRuby version).
Fixes: #6781

Fixes #7614
2017-07-12 20:50:21 +00:00
Jake Landis
4aed3e358c Logging: Add log4j-slf4j-impl to classpath to allow logging via SLF4J.
Fixes #7242

Fixes #7602
2017-07-06 23:42:09 +00:00
Jake Landis
3a6902c2f3 Bug Fix: Log messages from Java code base
This change re-configures default instead of creating a new context.

Fixes #7526

Fixes #7528
2017-07-06 16:53:08 +00:00
Pier-Hugues Pellerin
6a4766a01f Centralize the JRuby version
We have multiple places to declare the jruby version, this commit
centralize everything into the `version.yml` file. This is now used by
the ruby part and the gradle build file to correctly fetch the jruby
library.

Fixes #7434
2017-06-13 15:44:31 +00:00
Pier-Hugues Pellerin
eaf52ff7c9 The Task.leftShift(Closure) method has been deprecated
This the `<<` closure is now deprecated, this commit change it to the
`doLast(action)`, this will remove the warning in our build

Fixes #7424
2017-06-13 12:49:13 +00:00
Pier-Hugues Pellerin
6e6589e773 Use uniform version withing our gradle dependencies
Make sure we use the same provided and runtime JRuby with our gradle
projects

Fixes: #7421

Fixes #7425
2017-06-13 12:44:01 +00:00
Armin
c945a043f6 MINOR: Clean upgrade to Gradle 3.5
Fixes #7305
2017-06-05 06:50:25 +00:00
Armin
e80bfe45e7 MINOR: Dry up gradle settings
Fixes #7298
2017-06-03 07:07:28 +00:00
Rob Bavey
58c0a39ff9 Refactor ByteBufferPageIO._persistedByteCount() #6594
Remove static method in ByteBufferPageIO, replacing with static test helper method to move
the required functionality to a single place.

Cleans up HeadPageTest, using try... with resources in place of explicit, and
potentially missed, close() calls.

Adds elastic/securemock mocking framework dependency

Resolves #6594

Fixes #7268
2017-05-31 13:45:20 +00:00
Tal Levy
6fb8096a54 migrate logstash-core-event-java to logstash-core (#6760) 2017-03-01 15:31:17 -08:00
Jordan Sissel
8dfefad58a Remove unnecessary log4j-1.2-api depedency.
This library provides a "log4j 1.2"-like API from the log4j2 library.

We don't seem to use this, and including it seems to be the cause of the
Logstash log4j input rejecting log4j 1.x's SocketAppender with this
message:

    org.apache.log4j.spi.LoggingEvent; class invalid for deserialization

The origin of this error is that log4j2's log4j-1.2-api defines
LoggingEvent without `implements Serializable`.

This commit also includes regenerated gemspec_jars.rb and
logstash-core_jars.rb.

Reference: https://github.com/logstash-plugins/logstash-input-log4j/issues/36

Fixes #6309
2016-12-14 02:19:57 -05:00
Colin Surprenant
761f9f1bc9 merge feature/java_persistence into master 2016-11-01 17:13:23 -04:00
Tal Levy
f78da5ffe0 check versions.yml for correct project version (#5882)
- and fix a test
2016-10-07 12:00:25 -07:00
Suyog Rao
65a8676a86 Bump master to 6.0.0-alpha1 (#5880)
* Bump master to 6.0.0-alpha1
2016-09-08 08:33:27 -07:00
Tal Levy
1b2f7a7668 Migrate Logstash to Log4j2 Logging (#5651)
Migrate to use Log4j2 for Logstash logging
2016-08-25 10:30:22 -07:00