Commit Graph

196 Commits

Author SHA1 Message Date
Maarten Mulders ae5c2a1314
Declare CloudEvent generic to allow automatic payload deserialization using Jackson (#591)
* Declare CloudEvent generic

* Fix timestamp in logging

* Declare Spring Boot version once

* Simplify administration of received events

* Update docs

* Always return a list, even if it's empty

Rather than returning `null` when no
messages are present for a topic.
2021-08-13 13:52:37 -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
Justin Rovang 0e5e3112de
Added SPEL evaluation against spring boot @Topic attributes (#556)
* [WIP] Added SPEL evaluation against spring boot @Topic name and pubsubname attributes

* [WIP] Updated SubscriberController to use SPEL in @Topic

* 554 - SPEL for @Topic attributes: Updated documentation and examples

* Updated documentation as discussed

* Update README.md

* Update SubscriberController.java

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2021-06-17 22:48:45 -07:00
Artur Souza 5c05f3d9c7
Change Actor gRPC client to async. (#564) 2021-06-14 13:37:31 -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
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
halspang bdf8e86b87
Add pause between stopping/starting runtime (#526)
ActorReminderRecoveryIT and ActorTimerRecoveryIT both rely
on reminders/timers being persisted when dapr restarts. On some
restarts, it appears that the placement service shares its placement
table during on ongoing update. This causes the dapr runtime to use
the wrong address for the actor.

https://github.com/dapr/java-sdk/issues/425
2021-04-05 09:29:09 -07:00
Artur Souza 589a352450
w3c tracing integration test (#522)
* w3c tracing integration test

* Addresses PR comments.
2021-03-23 14:30:34 -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
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 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 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 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
Artur Souza c5b4cbd3f5
Add version to Components. (#455) 2021-01-25 22:14:19 -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
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
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
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
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 85bdb24fa9
IT for failover actor reminder. (#411)
* IT for failover actor reminder.

* Refactoring for actor tests.
2020-12-11 15:28:55 -08:00
Artur Souza 3f51e29dde
Fix actor sample + remove HTTP reference in docs and code. (#407)
* Fix actor sample + remove HTTP reference in docs and code.

* Fix logging for IT.
2020-12-11 13:54:23 -08:00
Artur Souza f871b1f51f
IT for recovering reminder after sidecar restart. (#406) 2020-12-09 21:40:08 -08:00
Artur Souza adce91f743
Throw DaprException consistently + doc + example. (#403) 2020-12-08 15:58:07 -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
Artur Souza 43107c3492
Update cli and runtime ITs to 1.0.0-rc.1 (#387)
* Fix ITs due to change in logs in daprd.

* Update to 1.0.0-rc.1 runtime and cli.
2020-11-12 15:32:23 -08:00
Artur Souza 2bafc05e4c
Updating proto, daprd and cli + fix ITs for v1.0.0 Milestone 1. (#384)
* Updating proto, daprd and cli prior to v1.0.0 Milestone 1.

* Fixes integration tests.
2020-11-10 09:29:39 -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
dependabot[bot] f911756444
Bump junit from 4.12 to 4.13.1 in /sdk-tests (#359)
Bumps [junit](https://github.com/junit-team/junit4) from 4.12 to 4.13.1.
- [Release notes](https://github.com/junit-team/junit4/releases)
- [Changelog](https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.12.md)
- [Commits](https://github.com/junit-team/junit4/compare/r4.12...r4.13.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-10-16 15:38:18 -07:00
Artur Souza 76c848bb6f
Fixes timer invocation after app restarts. (#363) 2020-10-16 14:29:31 -07:00
Artur Souza 9076d9f60e
Fix save bytes (#353)
* IT for save byte error in actor state.

* Update proto version.

* Fixes bug on read/write byte[] in actor state.

* Addresses comments round 1.
2020-10-08 15:55:14 -07:00
Artur Souza 7f261be7ed
Upgrade the version to 0.10.0-SNAPSHOT (#345) 2020-09-28 11:15:38 -07:00
Mukundan Sundararajan 75efc3a633
Fix port collision in java ITs (#342) 2020-09-22 10:18:37 -07:00
Mukundan Sundararajan f6b56bb376
Initial transaction API changes (#337)
* Initial transaction API changes

* Add more unit tests

* Refactor IT
2020-09-16 14:00:57 -07:00
Artur Souza baab109202
Bulk get state (#335)
* unfinished work

* Working version of Bulk get state API.

Co-authored-by: Haishi2016 <hbai@microsoft.com>
2020-09-16 11:29:01 -07:00
Artur Souza fe027d0c54
Refactoring properties and constants. (#333) 2020-09-02 11:54:12 -07:00
Artur Souza eede480403
Support W3C tracing + example. (#320) 2020-08-25 11:20:33 -07:00
Artur Souza 811728133d
Remove EmptyService and use dapr run -- instead. (#321) 2020-08-24 08:44:02 -07:00
Charlie Stanley d72e4cc49b Upgrade the version to 0.9.0-SNAPSHOT 2020-08-19 13:38:16 -07:00
Charlie Stanley 63f591e877 Add support for multi-pubsub (#309) 2020-08-18 18:20:17 -07:00
Pruthvidhar R Dhodda bc4c5e1cee
Replace deprecated cli options with new ones (#318)
* Replace deprecated cli options with new ones

* Change DAPR_CLI_REF in build.yaml

* Change DAPR_REF in build.yaml

* Revert "Change DAPR_CLI_REF in build.yaml"

This reverts commit 7d9621f3aa.
2020-08-10 17:51:07 -07:00
Artur Souza 56927daedd
Removing RetryPolicy for state API. (#315) 2020-07-30 14:13:41 -07:00
Mukundan Sundararajan 14fded8d18
Make DaprClient Closeable and properly close GRPC Managed Channel (#311) 2020-07-30 13:34:04 -07:00
Mukundan Sundararajan a388a6a90f
Upgrade the version to 0.8.0-SNAPSHOT (#314) 2020-07-30 12:00:53 -07:00
Mukundan Sundararajan 55b0e3a1e5
Change Service Invocation API. Fix metadata bug. (#312)
* Change Service Invocation API

* Address review comments
2020-07-30 10:44:25 -07:00
Artur Souza 25e6e158dc
Adding --components-path in all examples. (#304) 2020-07-14 18:41:00 -07:00
Artur Souza 5eba96437f
Updating build pipeline for 0.9 rc. (#302) 2020-07-14 18:10:11 -07:00
Artur Souza bd4b24cdb9
Use TypeRef for deserialization and client APIs. (#301)
* Use TypeRef for deserialization and client APIs.

* Making TypeRef class constructor private to force use of .get()
2020-07-09 11:47:25 -07:00
Artur Souza dbdab2ed69
Upgrade the version to 0.7.0-SNAPSHOT (#292) 2020-06-05 20:01:51 -07:00
Artur Souza 30fc85efe6
Reference to 0.8.0-rc.0. (#291) 2020-06-05 18:16:48 -07:00
Artur Souza 5cf8cb13f3
Bi-directional output binding + 'data' to refer to PubSub event (#289)
* Use 'data' to refer to pubsub payload.

* Add support for bi-directional output binding.
2020-05-31 20:59:04 -07:00
Charlie Stanley 8362c6347b
SDK update for breaking changes in dapr core. (#287)
* Update proto files for 0.8.0 release (#283)

* Bump dapr core to master

* Update integration tests for 0.8.0 proto changes

* Added unit tests to ensure StateOptions enums always map to their equivalent gRPC enums

* Remove some uneed comments/imports

* Update pub/sub subscription to match new route/metdata format (#278)

* Automatically initialize actor on first invocation (#284)

* Update integration tests to publish to more than one pubsub topic/route

* Bump dapr CLI version

* Remove uneeded interface and exception

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-05-28 18:42:01 -07:00
Artur Souza c48c8870c8 Upgrade the version to 0.6.0-SNAPSHOT 2020-05-05 11:09:30 -07:00
Artur Souza 7cf5f8b354
Update for proto from dapr runtime version 0.7 (#273) 2020-04-30 16:50:13 -07:00
Artur Souza 7ec969c50a
Fix bug in actor contains state API. (#268) 2020-04-09 18:26:29 -07:00
Artur Souza 1ca2751828
Fix instability due to race condition on stop. (#265) 2020-04-02 19:22:28 -07:00
Artur Souza 53adaa9ce8
Release 0.5.0-SNAPSHOT (#262) 2020-04-01 14:25:00 -07:00
Artur Souza 4611f40cb5
Springboot integration. (#256) 2020-03-30 09:49:31 -07:00
Artur Souza 46a1e5b8b4
Upgrade the version to 0.4.0-SNAPSHOT (#253) 2020-03-11 17:41:08 -07:00
Artur Souza 66b1cad71f
Support for GetSecret + ITs + sample. (#249) 2020-03-10 11:39:17 -07:00
Artur Souza 7fd4e39b56
Strong typed actors. (#243) 2020-02-25 15:45:28 -08:00
Artur Souza 85e9d2de02
Setting GRPC as default protocol for non-actor APIs. (#239)
* Setting GRPC as default protocol for non-actor APIs.

* Fixes issues in GRPC client + ITs for both GRPC and HTTP.

* Update MethodInvokeIT.java
2020-02-18 10:55:14 -08:00
Artur Souza 1739391f2a
Upgrade the version to 0.3.0-SNAPSHOT (#232) 2020-02-12 11:55:34 -08:00
Artur Souza 311875af7c
Remove special case for String in serializer + serialize state value "directly". (#225) 2020-02-10 11:55:02 -08:00
Marcos Reyes 943512f042
Reducing verbosity by setting log level to INFO in samples and tests (#221)
* Reducing verbosity in logs by setting log level to INFO in examples and tests

* Reducing verbosity in logs by setting log level to INFO in examples and tests

* Delete application.properties

* Delete application.properties

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-02-07 14:16:43 -08:00
Yaron Schneider 93bb3b55d6
move from localhost to 127.0.0.1 (#213) 2020-02-05 12:13:16 -08:00
Artur Souza bbbd4be648
Add support for dapr 0.4 (multi-state store) (#199)
* Updating proto file from dapr.

* Adding support for multi-state store.

* Allow PubSubIT to get accept events out of order.

Co-authored-by: Shalabh Mohan Shrivastava <shalabhms@gmail.com>
2020-02-04 13:31:57 -08:00
Juan Jose Herrera 54fee52d98
Add Integration Test for Method Invoke (#194)
* Fix Metata for Invoke Method

* Add Integration Test for Method Invoke

* Remove javafaker dependncy

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-02-03 15:19:22 -08:00
Artur Souza b2083187df
Add support for metadata in Bindings + fix serialization of output bi… (#186)
* Add support for metadata in Bindings + fix serialization of output binding."

* Remove generics from new bindings method.
2020-01-31 15:20:22 -08:00
Juan Jose Herrera c487294143
Fix Metata for Invoke Method (#189) 2020-01-31 13:41:42 -08:00
Andres Robles b7d6b1cc58
Renaming Adapters, to be just Clients for GRPC and HTTP (#179) 2020-01-30 13:05:42 -08:00
Leon Mai 313730c308
Fixes checkstyle in existing code and enables error on checkstyle warning (#172)
* checkstyle

* Fix checkstyle and enable build error on checkstyle warning

* Merge from master
2020-01-29 23:19:38 -08:00
Artur Souza 91ac017f7f
IT for actor state + handle actor config. (#163) 2020-01-29 21:50:46 -08:00
Leon Mai e72f1fa919
Actor IT - timers, reminders, turn-based concurrency (#162)
* Actor IT - timers, reminders, turn-based concurrency

IT for actor timer, reminder, turn-based concurrency

* Remove commented out code

* Remove comment

* Update MyActorService.java

* Update ActorTurnBasedConcurrencyIT.java

* Keep the latest stable version of junit. (#169)

* merge with changes in master

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-29 15:17:33 -08:00
Artur Souza 93b990be79
Keep the latest stable version of junit. (#169) 2020-01-29 14:01:39 -08:00
Juan Jose Herrera ebea096bef
Adding Integration Test for Pub Sub over HTTP (#167)
* Adding Integration Test for Pub Sub over HTTP

* Update PubSubIT.java

* Remove unneeded thread sleep

* Serializer is now optional in client builder.

Co-authored-by: Artur Souza <artursouza.ms@outlook.com>
2020-01-29 11:46:58 -08:00
Artur Souza 45fe471c48
Make serializers optional + javadocs about default serializers. (#168) 2020-01-29 11:18:29 -08:00
Artur Souza 0bdf939f91
Removing some dependencies after review. (#164)
Co-authored-by: Leon Mai <lemai@microsoft.com>
2020-01-29 10:09:45 -08:00
Artur Souza a40afafca4
Refactor IT into new jar + use JVM sytem properties (#156)
* Refactor IT into new jar + use JVM sytem properties

* Fixing ITs and silence flaky tests.

* Fix flaky tests.
2020-01-28 11:32:29 -08:00