Skip to content

Commit

Permalink
[GithubActions] Update Restate '0.4.0' SDK-Typescript '0.4.0' Tour '0…
Browse files Browse the repository at this point in the history
….4.0' (#170)

Co-authored-by: slinkydeveloper <[email protected]>
  • Loading branch information
github-actions[bot] and slinkydeveloper authored Oct 24, 2023
1 parent 50b238d commit 61f849a
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 24 deletions.
23 changes: 23 additions & 0 deletions docs/references/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,29 @@ When implementing a new service revision, make sure that:

See the [versioning documentation](https://docs.restate.dev/services/upgrades-removal) for more information.

## META0007

Bad input message field annotation encountered while registering/updating a service.

You can have at most one field in a message definition annotated with the same `dev.restate.ext.field` annotation.

## META0008

Bad type for input message field annotated with either `EVENT_PAYLOAD` or `EVENT_METADATA`.

Fields annotated with `(dev.restate.ext.field) = EVENT_PAYLOAD` can have only `bytes` or `string` types.
Fields annotated with `(dev.restate.ext.field) = EVENT_METADATA` can have only `map<string, string>` type.

## META0009

The provided subscription is invalid. Subscriptions should have:

* A `source` field in the format of `kafka://<CLUSTER_NAME>/<TOPIC_NAME>`. When registering, the Kafka cluster should be configured in the Restate configuration.
* A `sink` field in the format of `service://<SERVICE_NAME>/<METHOD_NAME>`. When registering, service and method should have been previously registered as well.
* Additional constraints may apply depending on the sink service contract

Please look at the [Kafka documentation page](https://docs.restate.dev/services/sdk/kafka) for more details on subscriptions and event handlers.

## RT0001

The invocation response stream was aborted due to the timeout configured in `worker.invoker.response_abort_timeout`.
Expand Down
6 changes: 3 additions & 3 deletions restate.config.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"RESTATE_DIST_VERSION": "0.3.0",
"TYPESCRIPT_SDK_VERSION": "0.3.2",
"TOUR_VERSION": "0.3.2"
"RESTATE_DIST_VERSION": "0.4.0",
"TYPESCRIPT_SDK_VERSION": "0.4.0",
"TOUR_VERSION": "0.4.0"
}
35 changes: 20 additions & 15 deletions static/schemas/config_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"meta": {
"default": {
"proxy_uri": null,
"rest_address": "0.0.0.0:8081",
"rest_address": "0.0.0.0:9070",
"rest_concurrency_limit": 1000,
"storage_path": "target/meta/"
},
Expand All @@ -34,8 +34,8 @@
"default": {
"channel_size": 64,
"ingress_grpc": {
"bind_address": "0.0.0.0:9090",
"concurrency_limit": 1000,
"bind_address": "0.0.0.0:8080",
"concurrency_limit": 10000000,
"json": {
"deserialize_deny_unknown_fields": true,
"serialize_skip_default_fields": false,
Expand Down Expand Up @@ -63,7 +63,7 @@
"max_interval": "10s",
"type": "Exponential"
},
"tmp_dir": "/tmp/invoker-018b38b4ad6973fe8799353d0be30d9d"
"tmp_dir": "/tmp/invoker-018b61e3cdd37d32afb3778d3a16f978"
},
"kafka": {
"clusters": {}
Expand All @@ -79,7 +79,7 @@
"http_concurrency_limit": 1000
},
"storage_query_postgres": {
"bind_address": "0.0.0.0:5432"
"bind_address": "0.0.0.0:9071"
},
"storage_rocksdb": {
"cache_size": 1073741824,
Expand Down Expand Up @@ -109,6 +109,7 @@
"properties": {
"tracing": {
"title": "Tracing options",
"default": null,
"anyOf": [
{
"$ref": "#/definitions/TracingOptions"
Expand Down Expand Up @@ -218,7 +219,7 @@
"rest_address": {
"title": "Rest endpoint address",
"description": "Address to bind for the Meta Operational REST APIs.",
"default": "0.0.0.0:8081",
"default": "0.0.0.0:9070",
"type": "string"
},
"rest_concurrency_limit": {
Expand Down Expand Up @@ -280,7 +281,7 @@
},
"storage_query_postgres": {
"default": {
"bind_address": "0.0.0.0:5432"
"bind_address": "0.0.0.0:9071"
},
"$ref": "#/definitions/StorageQueryPostgresOptions"
},
Expand All @@ -296,8 +297,8 @@
},
"ingress_grpc": {
"default": {
"bind_address": "0.0.0.0:9090",
"concurrency_limit": 1000,
"bind_address": "0.0.0.0:8080",
"concurrency_limit": 10000000,
"json": {
"deserialize_deny_unknown_fields": true,
"serialize_skip_default_fields": false,
Expand Down Expand Up @@ -334,7 +335,7 @@
"max_interval": "10s",
"type": "Exponential"
},
"tmp_dir": "/tmp/invoker-018b38b4ad697f8dadd63aada7781d14"
"tmp_dir": "/tmp/invoker-018b61e3cdd478fb97b33ca818803b12"
},
"$ref": "#/definitions/InvokerOptions"
},
Expand Down Expand Up @@ -429,7 +430,7 @@
"bind_address": {
"title": "Bind address",
"description": "The address to bind for the psql service.",
"default": "0.0.0.0:5432",
"default": "0.0.0.0:9071",
"type": "string"
}
}
Expand Down Expand Up @@ -485,13 +486,13 @@
"bind_address": {
"title": "Bind address",
"description": "The address to bind for the ingress.",
"default": "0.0.0.0:9090",
"default": "0.0.0.0:8080",
"type": "string"
},
"concurrency_limit": {
"title": "Concurrency limit",
"description": "Local concurrency limit to use to limit the amount of concurrent requests. If exceeded, the ingress will reply immediately with an appropriate status code.",
"default": 1000,
"default": 10000000,
"type": "integer",
"format": "uint",
"minimum": 0.0
Expand Down Expand Up @@ -610,11 +611,14 @@
"title": "Message size warning",
"description": "Threshold to log a warning in case protocol messages coming from service endpoint are larger than the specified amount.",
"default": 10485760,
"type": "string"
"type": "integer",
"format": "uint",
"minimum": 0.0
},
"message_size_limit": {
"title": "Message size limit",
"description": "Threshold to fail the invocation in case protocol messages coming from service endpoint are larger than the specified amount.",
"default": null,
"type": [
"integer",
"null"
Expand All @@ -634,12 +638,13 @@
"tmp_dir": {
"title": "Temporary directory",
"description": "Temporary directory to use for the invoker temporary files. If empty, the system temporary directory will be used instead.",
"default": "/tmp/invoker-018b38b4ad69785e9456148b6dc4250c",
"default": "/tmp/invoker-018b61e3cdd4707aa23d3cb228a60c52",
"type": "string"
},
"concurrency_limit": {
"title": "Concurrency limit",
"description": "Number of concurrent invocations that can be processed by the invoker.",
"default": null,
"type": [
"integer",
"null"
Expand Down
Loading

0 comments on commit 61f849a

Please sign in to comment.