Commit Graph

103 Commits

Author SHA1 Message Date
Artur Souza 1ce1cd4e4b
Cut release 1.2 (#585)
* Upgrade version to 1.2.0

* Generate updated javadocs for 1.2.0
2021-07-26 17:32:21 -07:00
Artur Souza 30b00daca0 Release 1.2.0-rc-1 2021-07-18 17:46:03 -07:00
Bernd Verst c3e60bb2ef
Update GRPC libraries for security updates (#573)
* Update pom.xml

* Update pom.xml

* Update pom.xml

* Define GRPC version as build property

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-14 16:39:24 -07:00
Bernd Verst 48b2d44aa7
Add support for configuring actor reminder storage partitions (#574)
* Update GRPC libraries for security updates

* AdConfigurable actor reminder storage patitions

* autoformat code

* Fix test and linter error

* more autoformatting

* competing style checker :(

Co-authored-by: Ubuntu <beverst@beverst-ubuntu.4gvshbv0hrpejbsei5kugsxnoc.xx.internal.cloudapp.net>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-07-12 16:02:25 -07:00
halspang 2eb6e1d9e3
Upgrade the version to 1.2.0-SNAPSHOT (#549) 2021-05-19 22:01:28 -07:00
Artur Souza 33f793c186
Return empty metadata for key not found + add IT test. (#528) 2021-05-14 11:37:09 -07:00
Artur Souza 7467575a97
Revert "Adjusted the configuration of Maven. (#532)" (#536)
This reverts commit 5cc79811cb.
2021-04-29 18:48:29 -07:00
LLLLimbo 5cc79811cb
Adjusted the configuration of Maven. (#532)
* Adjusted the configuration of Maven.

* Update pom.xml

* Remove os-maven-plugin and spring-boot-maven-plugin in parent pom

* Add version of spring-boot-maven-plugin in the example pom.
Add spring-boot-dependencies dependency management in sdk-springboot.
Add maven-compiler-plugin to the parent pom's pluginManagement
Remove protoc-jar-maven-plugin in  example's dependencies.

* Update pom.xml

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2021-04-26 23:26:11 -07:00
halspang a654861def
Add shutdown API support (#530)
* Add shutdown API support

https://github.com/dapr/java-sdk/issues/529

* Utilize POST instead of GET for shutdown API
2021-04-07 11:42:00 -07:00
Artur Souza 788eea605c Fix HTTP save state transaction. 2021-03-17 00:14:46 -07:00
Artur Souza 45c81afa06
Upgrade the version to 1.1.0-SNAPSHOT (#494) 2021-02-16 18:14:23 -08:00
Artur Souza ce7ecb9965
Allows override of content-type in pubsub publish. (#492) 2021-02-16 00:03:08 -08:00
Artur Souza e46ef319cd
Support many query strings in HTTP and binary data in Cloud Event for PubSub. (#485)
* Handles base64 data from CloudEvent.

* Support for multiple query strings.

* Addressing comments.
2021-02-09 19:38:13 -08:00
Artur Souza 1b3077071f
Update license header. (#483) 2021-02-06 00:18:47 -08:00
xiazuojie 0cd2f373d2
remove io.dapr.client.domain.Response from DaprClient APIs (#476)
* change: remove io.dapr.client.domain.Response from getState API. This is just a showcase of how to use reactor.util.context.Context

* fix: code style

* change: remove io.dapr.client.domain.Response from invokeMethod API

* change: completely remove io.dapr.client.domain.Response and update all APIs
change: remove reactor.util.context.Context from "request" classes.

* removed getStateContext test case
update README.md

* removed default impl from DaprClient

Co-authored-by: Xia Zuojie <zuojie@alibaba-inc.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-02-05 23:20:25 -08:00
Artur Souza a66337aa4b
Unit test to deserialize CloudEvent. (#480) 2021-02-04 14:11:39 -08:00
Artur Souza 5d7700b570
Refactor params for State class + Unit test example (#473)
* Refactor order of params for State class.

* Example for unit testing.

* Change toString() for State class.

* Add unittesting example to main README.

* Fix cmd for unittesting example.

* Add sleep to http inputing binding example validation.

* Fix unittesting example check.
2021-02-01 19:03:25 -08:00
Artur Souza 277f9958a6
Fix PubSub publish + Update IT to use RC3 bits. (#471)
* Update IT to use RC3 bits.

* Fixing publish method not to handle content-type metadata in GRPC.

* Fix flaky actor ITs.
2021-02-01 18:19:50 -08:00
Artur Souza ba496064d1
Removing OpenTelemetry and OpenCensus SDK. (#463) 2021-01-29 09:23:48 -08:00
Artur Souza d7cc7974c7 handle method not found when proto class does not have parseFrom() 2021-01-27 23:39:13 -08:00
Artur Souza 7eacfcc88f Fix error handling in http invoke.
ITs to validate invoke errors on http and grpc services.
Handle serialization of proto objects.
2021-01-27 22:22:22 -08:00
karishma-chawla efee05681e
Updating state management example to include etag mismatch exception handling (#458)
* Updating state management example to include etag mismatch exception scenario. Dapr runtime grpc exception handling was recently updated to return aborted error code on etage mismatch for mutations, the example is updated to reflect that the runtime updates will be propagated through the java sdk.

* Addressed feedback to merge block call with api call.

* Updating readme with block() call updates, missed in previous commit
2021-01-26 17:14:51 -08:00
Charlie Stanley c35f0e11c6 Added unit tests for nullable etag #442 2021-01-25 13:52:21 -08:00
Artur Souza 907748f162 Adding GetBulkSecret API. 2021-01-25 12:21:46 -08:00
Artur Souza 57345ebf3e
Use DaprChannel instead of closeable ActorProxyBuilder. (#451)
* Use DaprChannel instead of closeable ActorProxyBuilder.

* Refactor Actor channel into DaprChannel and out of ActorProxyBuilder.

* Rename DaprChannel to ActorClient and make it a DaprClient.

* Make ActorClient not implement DaprClient but implement same method.

* Update sdk-actors/src/main/java/io/dapr/actors/client/ActorProxyBuilder.java

Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>

* Update sdk-actors/src/test/java/io/dapr/actors/client/ActorProxyBuilderTest.java

Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>

* Rename ActorProxyForTestsImpl to ActorProxyImplForTests

Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2021-01-25 12:04:58 -08:00
Artur Souza befed4a01b
Makes service method API invocations over HTTP by default. (#450)
* Makes service method API invocations over HTTP by default.

* Add logic to avoid building managedchannel in case of http API for actor runtime.
2021-01-23 12:12:34 -08:00
Phil Kedy 38b899d8b8
Add java.lang.reflect.Type to TypeRef per #331 (#449)
* Add support deserialization of generic types per #293

* Improving test coverage
2021-01-22 15:49:51 -08:00
Artur Souza 81b47f85b3
Makes http call async and allows timeout in Mono. (#445) 2021-01-21 15:23:24 -08:00
Artur Souza d43272fdc6
Rename InvokeServiceRequest to InvokeMethodRequest. (#443)
* Rename InvokeServiceRequest to InvokeMethodRequest.

* Organize imports.
2021-01-15 04:51:48 -08:00
Artur Souza 019dee9a8b
Fix handling of metadata, headers. Removes etag from getState. (#440)
* Fix handling of metadata, headers. Removes etag from getState().

* Update CLI and runtime.

* Fix ITs.
2021-01-14 15:01:22 -08:00
xiazuojie 76d877c9c0
Fix blocking calls for gRPC even though using Reactor (#435)
* Fix blocking calls for gRPC even though using Reactor

* delete unused wrap method

* add: throw exception if fatal

* Add "NoHotMono" unit tests for DaprClientGrpc

Co-authored-by: 刘禅 <zuojie@alibaba-inc.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-11 19:40:15 -08:00
Artur Souza 6a44d51279
Adds method to wait for Dapr sidecar. (#433) 2020-12-30 19:29:23 -08:00
Artur Souza 1a6675add8
Support TTL in PubSub. Fixes + refactor of CloudEvent. Fix handling content-type in PubSub over GRPC (#431) 2020-12-30 13:37:15 -08:00
Artur Souza 2714402a0e
Fix input encoding and error parsing for HTTP calls. (#428)
* Fix input encoding and error parsing for HTTP calls.

* Adds tests for special char in HTTP call.

* Rename path to pathSegments
2020-12-29 18:17:57 -08:00
Arghya Sadhu 4c1773c8cd
refactor to move duplicate code to method (#429)
Signed-off-by: Arghya Sadhu <arghya88@gmail.com>

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-12-29 14:20:31 -08:00
Sky/敖小剑 b5dd421142
add metadata in get bulk state request (#401)
* add metadata in get bulk state request

* rollback DaprClientGrpcTest which should be comitted in another PR

* fix compile error after merge

* update unit test for metadata in getBulkState()

* re-trigger build again

* add test for withMetadata()

Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
2020-12-29 14:03:41 -08:00
Artur Souza 08f133dd1b
Throws IllegalArgumentException without wrapping as DaprException. (#426) 2020-12-21 16:21:01 -08:00
Arghya Sadhu a35e41480e
set etag to be null if it's empty (#414)
Signed-off-by: Arghya Sadhu <arghya88@gmail.com>
2020-12-18 12:13:46 -08:00
Arghya Sadhu 11d9e3b0b8
Rename methods and parameters for consistency across SDKs (#410)
Signed-off-by: Arghya Sadhu <arghya88@gmail.com>
2020-12-16 00:06:54 -08:00
Artur Souza de4c37e3a5
Upgrade the version to 1.0.0-SNAPSHOT (#413) 2020-12-15 23:34:20 -08:00
Artur Souza adce91f743
Throw DaprException consistently + doc + example. (#403) 2020-12-08 15:58:07 -08:00
Sky/敖小剑 16faa43795
support metadata in get state and bulk get state response (#402) 2020-12-03 11:25:32 -08:00
Sky/敖小剑 912ff7a781
Add metadata for state save operation (#397)
* add metadata for state save

* add test case for state hashcode() and equals()

* add metadata for state tansactional

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-12-01 21:13:25 -08:00
Sky/敖小剑 8cc33b5598
fix a small copy-paste issue (#398) 2020-11-30 15:49:33 -08:00
Artur Souza cf1c10d85a
Actor over GRPC. (#395) 2020-11-24 15:23:35 -08:00
Artur Souza a5c9bf73ba
Upgrade the version to 0.11.0-SNAPSHOT (#390) 2020-11-16 12:34:44 -08:00
Artur Souza c466e211f1
Fix build due to deprecated maven repo, using jcenter now. (#392) 2020-11-16 12:01:53 -08:00
haidao 9dcff43ef0
open telemetry upgrade to 0.10.0 (#386)
* open telemetry upgrade to 0.10.0

* open telemetry upgrade to 0.10.0

* open telemetry upgrade to 0.10.0

* open telemetry upgrade to 0.10.0

* open telemetry upgrade to 0.10.0

Co-authored-by: haidao <wlf190783@alibaba-inc.com>
2020-11-13 13:00:21 -08:00
Mukundan Sundararajan 97eacf9598
update open telemetry lib version 0.7.1 (#380)
* update readme with secrets example link

* Update opentelemetry to 0.7.1, change repo id for sping

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-11-09 21:52:36 -08:00
Mukundan Sundararajan 751ea2168c
upgrade dependency versions (#378) 2020-11-04 16:22:39 -08:00