Commit Graph

230 Commits

Author SHA1 Message Date
Joe DiPol
437fbd730d Update version to 2.1.1-SNAPSHOT (#2462) 2020-10-16 15:37:23 -07:00
Daniel Kec
9aa8185441 Multi discrepancies (#2413)
* Multi discrepancies

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-10-07 18:28:21 +02:00
David Král
84b97ef3e6 Git config native-image support (#2400)
Git config native-image support

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-10-01 18:12:41 +02:00
David Král
0dc4d4b408 DataChunkedInputStream deadlock protection removed (#2401)
Deadlock protection removed from DataChunkedInputStream

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-10-01 18:11:52 +02:00
Santiago Pericasgeertsen
9ccf4bc9ba Updates Fault Tolerance MP docs with config information for new implementation. Created a couple of new tests to verify that thread pool sizes can be configured using an application.yaml file.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-09-16 07:46:01 -04:00
Santiago Pericasgeertsen
74956be772 Implementation of MP FT 2.1.1 using FT SE (#2348)
* Replacing FailSafe and Hystrix by our own implementation of FT primitives. Some minor changes to our first version of these primitive operations was necessary to be fully compatible with MP and pass all the TCKs.

Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-09-14 13:20:46 -04:00
Daniel Kec
85a77ca335 Single.never not singleton
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-09-10 15:18:04 -04:00
Joe DiPol
78eddfe47a Update version to 2.0.3-SNAPSHOT (#2323) 2020-09-04 11:18:57 -07:00
Daniel Kec
1824a3aa04 Tyrus support for native-image (#2097)
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-09-03 17:54:03 +02:00
Romain Grecourt
b3ddfa9f75 Update MediaType, lazy non known type, read-only parameters map (#2308)
Update MediaType.create, and static fields initialization:
- return a known type only if there is no parameters
- change MediaType.KNOWN_TYPES from Map<MediaType,MediaType> to Map<String, MediaType>
- build a key as a String of the form type/subtype
- replace use of Optional with plain if conditions
- replace createContentType with a dedicated constructor to avoid the calls to createContentType()/create()/builder() and the creation of an instance of Builder
- use a static initializer to build the KNOWN_TYPE map, make it read-only
- make parameters a read-only map, optimize for empty parameters
2020-09-01 15:23:47 -07:00
Florian Wiesner
07909a8090 Added support for HTTP PATCH on Helidon SE (#2284)
* Added support for HTTP PATCH on Helidon SE

Co-authored-by: Tomas Langer <tomas.langer@gmail.com>
2020-08-28 14:27:10 +02:00
Santiago Pericasgeertsen
d34b5a67cc Removed unwanted line.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-08-27 08:50:56 -04:00
Santiago Pericasgeertsen
f2a3d15399 Use onCancel on Single for readability.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-08-27 08:50:56 -04:00
Santiago Pericasgeertsen
8338ce5521 Allow cancellation of Future's wrapped in Single's and vice versa.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-08-27 08:50:56 -04:00
Daniel Kec
1a6b0c88a8 Flaky MultiFromNotTrustedInputStreamTckTest fix (#2218)
* Flaky MultiFromNotTrustedInputStreamTckTest.stochastic_spec103_mustSignalOnMethodsSequentially fix
* Cumulating deferred bad requests
* Deferred bad request with state

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-08-21 17:09:43 +02:00
Daniel Kec
6b90750589 Debugging log operator (#1874)
* Debugging log operator

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>

* Checkstyle

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>

* Simplification

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>

* Optional tracing

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-08-21 10:26:49 +02:00
Daniel Kec
ea36194072 Single add forSingle and exceptionallyAccept (#2121)
* forSingle
* exceptionallyAccept

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-08-10 12:48:56 +02:00
David Král
68ad56d260 Form params with ampersand and no value fix (#2227)
* Form params with ampersand and no value fix

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-08-04 11:01:29 +02:00
David Král
57008e4e09 Media support for forms improved (#2144)
* Media support for forms improved

Signed-off-by: David Kral <david.k.kral@oracle.com>

* Sending multipart forms from client is now supported

Signed-off-by: David Kral <david.k.kral@oracle.com>

* checkstyle fix

Signed-off-by: David Kral <david.k.kral@oracle.com>

* spotbugs fix

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-07-20 13:12:08 -07:00
Santiago Pericasgeertsen
7a9a2ae9cd Improvements to unit tests.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-07-09 10:26:44 -04:00
Santiago Pericasgeertsen
5201857bae Improved comments. 2020-07-09 10:26:44 -04:00
Santiago Pericasgeertsen
5cb4de6660 Enhanced implementation of MultiFromOutputStream to buffer bytes when written one at a time to avoid publishing single-byte data chunks. The logic remains the same for byte array writes. Some new tests.
Signed-off-by: Santiago Pericasgeertsen <santiago.pericasgeertsen@oracle.com>
2020-07-09 10:26:44 -04:00
Tomas Langer
72c0e02936 Checkstyle fixes.
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-07-06 08:47:43 -04:00
Tomas Langer
196c91690f Update to support multi.
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-07-06 08:47:43 -04:00
Tomas Langer
c11ee85a0d FaultTolerance for SE.
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-07-06 08:47:43 -04:00
Joe DiPol
0bb8d792da Bump version to 2.0.2-SNAPSHOT. Update CHANGELOG (#2111)
* Bump version to 2.0.2-SNAPSHOT Update CHANGELOG
2020-06-30 14:47:34 -07:00
Joe DiPol
8bbe29ecc8 2.0: Update version to 2.0.1-SNAPSHOT. Update CHANGELOG (#2082)
* Update CHANGELOG.md after 2.0.0 release

* Update version to 2.0.1-SNAPSHOT
2020-06-23 11:32:04 -07:00
Tomas Langer
093ec0d30d Upgrade svm, annotation for reflection (#2070)
* Upgrade svm libraries.
Annotation for reflection in native image.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Missed required class.
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-19 15:14:23 -07:00
Romain Grecourt
3d87f25499 media support deprecations cleanup (#2068) 2020-06-19 13:37:09 -07:00
Daniel Kec
1e05a7ab9c Canceling race condition fix (#2027)
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-06-19 16:41:05 +02:00
Tomas Langer
3e19778657 Secure and httpOnly used correctly (#2056)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-19 12:08:52 +02:00
David Král
4bb6ed7e6b Content now extends Multi (#2043)
Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-06-18 09:09:16 -07:00
Tomas Langer
b78c4b1ef0 Oracle with JPA (#2044)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-18 15:36:35 +02:00
Tomas Langer
6b7eb53335 Database native support update (#2028)
* Database access for native image update
* Support for Oracle JDBC driver
* Support for H2 JDBC driver
* Support for mongoDB
* Updated Pokemon example to work with all of the above

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Co-authored-by: Paul Parkinson <paul.parkinson@gmail.com>
2020-06-17 19:32:13 +02:00
Tomas Langer
d6009ff325 Experimental feature support. (#2018)
* Experimental feature support.
* Using a custom logger to allow easy way to disable experimental messages.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-16 20:49:31 +02:00
Tomas Langer
4abd0a3cd6 Feature refactoring (#1944)
* Features simplification.
* Added  excludes
* Moved initialization of log to native image extension
* Log statements for unsupported features in native image

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-16 18:21:24 +02:00
Daniel Kec
83d3159729 BufferedEmittingPublisher draining race condition fix (#1928)
* BufferedEmittingPublisher draining race condition fix
  * Remove redundant reset
  * Use TTAS lock with exponential backoff instead of plain TAS
  * Recheck state inside emit lock
  * Optimize unbounded fastpath in BufferedEmittingPublisher
  * Switch to synchronized
  * Remove unused TTAS lock

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-06-16 11:15:30 +02:00
David Král
06dd30cd8b Mutual TLS implementation, example and tests (#1992)
Mutual TLS implementation, example and tests

Signed-off-by: David Kral <david.k.kral@oracle.com>
2020-06-15 11:36:46 +02:00
Daniel Kec
d74505fb83 Lazy list for even lazier acceptedTypes parsing (#1940)
* Lazy list for even lazier MediaType acceptedTypes parsing
* Get rid of laziness breaker

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-06-13 00:45:58 +02:00
Daniel Kec
6e4e3aa3e7 MultiFromOutputStream blocking close refactor (#1943)
* MultiFromOutputStream cs swap removal

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>

* Don't wait for close

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-06-12 11:00:53 -07:00
Tomas Langer
afd3920ecb ReadableByteChannelPublisher executor leak (#1924)
* ReadableByteChannelPublisher now correctly closes executor.
* Byte channel publisher now part of IoMulti
* renamed methods in IoMulti
* RetrySchema now sent around only when customized
* Deprecated old methods and classes
* Renamed class to align builder, method and class name for IoMulti.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-05 10:52:04 +02:00
Daniel Kec
e8979b24d7 EmittingPublisher cleanup (#1923)
* EmittingPublisher cleanup

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>

* EmittingPublisher tests cleanup

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-06-03 07:51:19 +02:00
Romain Grecourt
a9363a3d22 DataChunk ByteBuffer array (#1877)
Update DataChunk to hold an array of ByteBuffer instead of a single ByteBuffer.
2020-06-02 13:39:39 -07:00
Daniel Kec
df681ea81e Media lazy accepted types parsing (#1921)
* Lazy parsing of acceptedTypes
* LazyValue pre resolved value

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-06-02 22:29:23 +02:00
Daniel Kec
18ce85e0cd Fix test failing on windows (#1919)
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-06-02 13:54:35 +02:00
Daniel Kec
6aaacd4d33 Use EmittingPublisher in OutputStreamPublisher to remove busy waiting (#1900)
* Use EmittingPublisher in OutputStreamPublisher to remove busy waiting
* Tck compliance
* Fix race condition, write/emit is thread-safe
* Deferred request callbacks after onSubscribe
* Forward request callbacks in ready state
* Align to IoMulti api
* Callback as notification when more data is requested by subscriber
* EmittingPublisher race condition fix
* IoMulti api alignment


Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-06-01 20:52:55 +02:00
Daniel Kec
9d209a1a55 Deprecated Multi#from (#1888)
* Deprecated Multi#from
* Switch to Multi#create and Single#create

Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-05-29 15:30:08 +02:00
Tomas Langer
8185c08069 Removed deprecations (#1892)
- Removed deprecated methods
- Updated deprecated comments to clearly mark 2.0.0 deprecations
2020-05-29 11:17:43 +02:00
Daniel Kec
c7f4b317d4 Multi from InputStream (#1770)
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-05-28 18:02:38 +02:00
Daniel Kec
41cbf30e2e Trigger Single to CS conversion on first CS method call (#1886)
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-05-28 16:51:10 +02:00