Commit Graph

299 Commits

Author SHA1 Message Date
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
Charlie Stanley 717480d804
Merge pull request #481 from artursouza/discord_link
Switch to Discord.
2021-02-04 11:11:23 -08:00
Artur Souza 222c493597 Switch to Discord. 2021-02-04 10:49:58 -08:00
Andrey Pechkurov b7eb723445
Improve concurrent data structures in ActorRuntime (#479)
* Switch ActorManager registry to CHM in ActorRuntime

Synchronized HashMap may lead to unnecessary contention during
ActorManager lookups.

* Change ActorRuntimeConfig to be thread-safe
2021-02-04 09:45:33 -08:00
Artur Souza 5147ad0202
Adds IT to confirm eTag is parsed correctly to/from runtime. (#475) 2021-02-02 20:21:21 -08:00
Artur Souza 1527d31640
Enhancing validation for ActorTurnBasedConcurrencyIT. (#474) 2021-02-02 14:39:19 -08:00
Artur Souza 243342f627 Release 1.0.0-rc-4 2021-02-01 20:11:40 -08:00
Artur Souza 24eac052b8 Merge remote-tracking branch 'upstream/master' into release-1.0 2021-02-01 20:06:05 -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 3918db1758
Remove unused screenshot for state example. (#465) 2021-01-30 19:27:26 -08:00
Mukundan Sundararajan 135b68c09b
Setup auto validation of java examples (#464)
* Setup auto validation of java examples

* Update README.md

* Update validate.yml

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-01-30 16:12:51 -08:00
Artur Souza 72c7cdcbeb Release 1.0.0-rc-3 2021-01-29 10:53:31 -08:00
Artur Souza c2784b760f Merge branch 'master' into release-1.0 2021-01-29 10:48:34 -08:00
Artur Souza ba496064d1
Removing OpenTelemetry and OpenCensus SDK. (#463) 2021-01-29 09:23:48 -08:00
Artur Souza 2ca48be3ec
Merge pull request #462 from artursouza/it_invoke_grpc
Fix error handling in http invoke.
2021-01-28 10:27:46 -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 5d20a217a7 Fix IT to switch to GRPC service invocation. 2021-01-27 23:19:27 -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
Artur Souza e7ae72825e
Merge pull request #460 from artursouza/merge_master
Merge master
2021-01-27 16:50:18 -08:00
Artur Souza a42120f7f1 Merge branch 'master' into release-1.0 2021-01-27 15:58:15 -08:00
Artur Souza 6c26942dd5
Adds autoconfiguration for springboot apps. (#459)
* Adding Dapr Spring Boot Starter.

* Move Dapr Spring Boot Starter into existing sdk-springboot project.

Co-authored-by: Darren Wang <darren_wang@outlook.com>
2021-01-27 10:40:14 -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
Artur Souza c5b4cbd3f5
Add version to Components. (#455) 2021-01-25 22:14:19 -08:00
Charlie Stanley faf3bec6f7
Merge pull request #454 from wcs1only/nullable-etag
Unit tests for nullable-etag (#442)
2021-01-25 14:09:57 -08:00
Charlie Stanley c35f0e11c6 Added unit tests for nullable etag #442 2021-01-25 13:52:21 -08:00
Charlie Stanley 233c699070
Merge pull request #452 from artursouza/get_bulk_secrets
Adding GetBulkSecret API.
2021-01-25 13:02:59 -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 446cd17e18
Support ActorMethod to change method's name. (#448) 2021-01-19 23:34:14 -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 9e13586ecc
Refactor tracing demo to show A->B->C call stack. (#436) 2021-01-08 15:03:00 -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
kerr 3b51b5b6c4
Rename ActorProxy invoke to invokeMethod. (#420)
Co-authored-by: Mukundan Sundararajan <musundar@microsoft.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-12-18 14:41:16 -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
Artur Souza 8c79d7c265
Update zipkin detail page for tracing sample. (#422) 2020-12-17 01:21:02 -08:00
Artur Souza 7f1ce0bed7
Update zipkin detail page for tracing sample. (#423) 2020-12-17 01:20:33 -08:00
Artur Souza b0f1a44a3c
Split components dir for samples + other fixes. (#417) 2020-12-16 12:48:06 -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