Skip to content

Commit e5416a2

Browse files
authored
Release 4.1.1
2 parents 4100f9c + 9f7a92f commit e5416a2

File tree

7 files changed

+72
-61
lines changed

7 files changed

+72
-61
lines changed

.github/workflows/ci-unwelcome-words.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ jobs:
77
test:
88
runs-on: ubuntu-20.04
99
steps:
10-
- uses: actions/checkout@v2
11-
with:
12-
ref: ${{ github.sha }}
13-
- name: Checkout tool
14-
uses: actions/checkout@v2
15-
with:
16-
repository: exactpro-th2/ci-github-action
17-
ref: master
18-
token: ${{ secrets.PAT_CI_ACTION }}
19-
path: ci-github-action
20-
- name: Run CI action
21-
uses: ./ci-github-action
22-
with:
23-
ref: ${{ github.sha }}
10+
- uses: actions/checkout@v3
11+
with:
12+
ref: ${{ github.sha }}
13+
- name: Checkout tool
14+
uses: actions/checkout@v3
15+
with:
16+
repository: exactpro-th2/ci-github-action
17+
ref: master
18+
token: ${{ secrets.PAT_CI_ACTION }}
19+
path: ci-github-action
20+
- name: Run CI action
21+
uses: ./ci-github-action
22+
with:
23+
ref: ${{ github.sha }}

.github/workflows/dev-docker-publish.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ name: Dev build and publish Docker distributions to Github Container Registry gh
33
on:
44
push:
55
branches-ignore:
6-
- master
7-
- version-*
6+
- master
7+
- version-*
88
# paths:
99
# - gradle.properties
1010
# - package_info.json
@@ -13,38 +13,38 @@ jobs:
1313
build:
1414
runs-on: ubuntu-20.04
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v3
1717
# Prepare custom build version
1818
- name: Get branch name
1919
id: branch
20-
run: echo ::set-output name=branch_name::${GITHUB_REF#refs/*/}
20+
run: echo "branch_name=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
2121
- name: Get SHA of the commit
2222
id: sha
23-
run: echo ::set-output name=sha_short::$(git rev-parse --short HEAD)
23+
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
2424
- name: Get release_version
2525
id: ver
26-
uses: christian-draeger/read-properties@1.0.1
26+
uses: christian-draeger/read-properties@1.1.1
2727
with:
2828
path: gradle.properties
29-
property: release_version
29+
properties: release_version
3030
- name: Build custom release version
3131
id: release_ver
32-
run: echo ::set-output name=value::"${{ steps.ver.outputs.value }}-${{ steps.branch.outputs.branch_name }}-${{ github.run_id }}-${{ steps.sha.outputs.sha_short }}"
32+
run: echo value="${{ steps.ver.outputs.release_version }}-${{ steps.branch.outputs.branch_name }}-${{ github.run_id }}-${{ steps.sha.outputs.sha_short }}" >> $GITHUB_OUTPUT
3333
- name: Show custom release version
3434
run: echo ${{ steps.release_ver.outputs.value }}
3535
# Build and publish image
3636
- name: Set up Docker Buildx
37-
uses: docker/setup-buildx-action@v1
38-
- uses: docker/login-action@v1
37+
uses: docker/setup-buildx-action@v2
38+
- uses: docker/login-action@v2
3939
with:
4040
registry: ghcr.io
41-
username: ${{ github.repository_owner }}
42-
password: ${{ secrets.CR_PAT }}
43-
- run: echo "::set-output name=REPOSITORY_NAME::$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')"
41+
username: ${{ github.actor }}
42+
password: ${{ secrets.GITHUB_TOKEN }}
43+
- run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_OUTPUT
4444
id: meta
4545
- name: Build and push
4646
id: docker_build
47-
uses: docker/build-push-action@v2
47+
uses: docker/build-push-action@v3
4848
with:
4949
push: true
5050
tags: ghcr.io/${{ github.repository }}:${{ steps.release_ver.outputs.value }}

.github/workflows/docker-publish.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,35 @@ name: Build and publish Docker distributions to Github Container Registry ghcr.i
33
on:
44
push:
55
branches:
6-
- master
7-
- version-*
6+
- master
7+
- version-*
88
paths:
9-
- gradle.properties
9+
- gradle.properties
1010

1111
jobs:
1212
build:
1313
runs-on: ubuntu-20.04
1414
steps:
15-
- uses: actions/checkout@v2
16-
- name: Set up Docker Buildx
17-
uses: docker/setup-buildx-action@v1
18-
- uses: docker/login-action@v1
19-
with:
20-
registry: ghcr.io
21-
username: ${{ github.repository_owner }}
22-
password: ${{ secrets.CR_PAT }}
23-
- run: echo "::set-output name=REPOSITORY_NAME::$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')"
24-
id: meta
25-
- name: Read version from gradle.properties
26-
id: read_property
27-
uses: christian-draeger/read-properties@1.0.1
28-
with:
29-
path: ./gradle.properties
30-
property: release_version
31-
- name: Build and push
32-
id: docker_build
33-
uses: docker/build-push-action@v2
34-
with:
35-
push: true
36-
tags: ghcr.io/${{ github.repository }}:${{ steps.read_property.outputs.value }}
37-
labels: com.exactpro.th2.${{ steps.meta.outputs.REPOSITORY_NAME }}=${{ steps.read_property.outputs.value }}
15+
- uses: actions/checkout@v3
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v2
18+
- uses: docker/login-action@v2
19+
with:
20+
registry: ghcr.io
21+
username: ${{ github.actor }}
22+
password: ${{ secrets.GITHUB_TOKEN }}
23+
- run: echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> $GITHUB_OUTPUT
24+
id: meta
25+
- name: Read version from gradle.properties
26+
id: read_property
27+
uses: christian-draeger/read-properties@1.1.1
28+
with:
29+
path: ./gradle.properties
30+
properties: release_version
31+
- name: Build and push
32+
id: docker_build
33+
uses: docker/build-push-action@v3
34+
with:
35+
push: true
36+
tags: ghcr.io/${{ github.repository }}:${{ steps.read_property.outputs.release_version }}
37+
labels: com.exactpro.th2.${{ steps.meta.outputs.REPOSITORY_NAME }}=${{ steps.read_property.outputs.release_version }}

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Overview (4.1.0)
1+
# Overview (4.1.1)
22

33
Message store (mstore) is an important th2 component responsible for storing raw messages into Cradle. Please refer to [Cradle repository] (https://github.com/th2-net/cradleapi/blob/master/README.md) for more details. This component has a pin for listening messages via MQ.
44

@@ -19,9 +19,9 @@ session alias, direction and sequence number are a **compound unique identifier*
1919
{
2020
"drain-interval": 1000,
2121
"termination-timeout": 5000,
22-
"maxTaskCount" : 1024,
22+
"maxTaskCount" : 256,
2323
"maxTaskDataSize" : 133169152,
24-
"maxRetryCount" : 3,
24+
"maxRetryCount" : 1000000,
2525
"retryDelayBase" : 5000
2626
}
2727
```
@@ -74,6 +74,17 @@ spec:
7474
This is a list of supported features provided by libraries.
7575
Please see more details about this feature via [link](https://github.com/th2-net/th2-common-j#configuration-formats).
7676
77+
## 4.1.1
78+
79+
+ Using Cradle 3.1.4. No changes related to message persistence
80+
+ Changed default configuration to
81+
```json
82+
{
83+
"maxTaskCount" : 256,
84+
"maxRetryCount" : 1000000,
85+
"retryDelayBase" : 5000
86+
}
87+
```
7788
## 4.1.0
7889
+ Added metrics collection for Prometheus
7990
+ Limiting simultaneously processed message batches by number and content size

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77

88
ext {
99
sharedDir = file("${project.rootDir}/shared")
10-
cradleVersion = '3.1.3'
10+
cradleVersion = '3.1.4'
1111
}
1212

1313
group = 'com.exactpro.th2'

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
release_version=4.1.0
1+
release_version=4.1.1

src/main/java/com/exactpro/th2/mstore/Configuration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ public static Builder builder() {
7070
public static final class Builder {
7171
private static final long DEFAULT_DRAIN_INTERVAL = 1000L;
7272
private static final long DEFAULT_WAIT_TIMEOUT = 5000L;
73-
private static final int DEFAULT_MAX_TASK_RETRIES = 3;
74-
private static final int DEFAULT_MAX_TASK_COUNT = 1024;
73+
private static final int DEFAULT_MAX_TASK_RETRIES = 1000000;
74+
private static final int DEFAULT_MAX_TASK_COUNT = 256;
7575
private static final long DEFAULT_RETRY_DELAY_BASEM_MS = 5000;
7676

7777
@JsonProperty("drain-interval")

0 commit comments

Comments
 (0)