Skip to content

Commit

Permalink
[TH2-5107] updated grpc-service-generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Oct 23, 2023
1 parent 29e4aab commit 413b8bf
Show file tree
Hide file tree
Showing 4 changed files with 343 additions and 49 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -501,12 +501,15 @@ dependencies {

## Release notes

### 5.6.1-dev
### 5.7.0-dev

#### Fix:
+ gRPC `retryConfiguration` has been moved from grpc.json to grpc_router.json
+ the whole default gRPC retry interval is about 1 hour

#### Updated:
+ grpc-service-generator: `3.5.0`

### 5.6.0-dev

#### Added:
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ version = release_version
ext {
grpcVersion = '1.56.0'
protobufVersion = '3.23.2' // The protoc:3.23.3 https://github.com/protocolbuffers/protobuf/issues/13070
serviceGeneratorVersion = '3.4.0'
serviceGeneratorVersion = '3.5.0-TH2-5107-+'

cradleVersion = '5.1.1-dev'
junitVersion = '5.10.0'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import com.exactpro.th2.service.RetryPolicy
data class GrpcRetryConfiguration(
private var maxAttempts: Int = 60,
var minMethodRetriesTimeout: Long = 100,
var maxMethodRetriesTimeout: Long = 120_000
var maxMethodRetriesTimeout: Long = 120_000,
var retryInterruptedTransaction: Boolean = false,
) : Configuration(), RetryPolicy {

init {
Expand Down Expand Up @@ -51,4 +52,8 @@ data class GrpcRetryConfiguration(
}

override fun getMaxAttempts(): Int = maxAttempts

override fun retryInterruptedTransaction(): Boolean {
return retryInterruptedTransaction
}
}
Loading

0 comments on commit 413b8bf

Please sign in to comment.