Skip to content

Commit 68af0e5

Browse files
Merge pull request #97 from th2-net/separate-executor
Separate executor
2 parents 7e2db47 + c9370d5 commit 68af0e5

23 files changed

+1514
-537
lines changed

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

Lines changed: 0 additions & 19 deletions
This file was deleted.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Dev build and publish Java distributions to sonatype snapshot repository
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- master
7+
- version-*
8+
- dependabot*
9+
paths-ignore:
10+
- README.md
11+
# paths:
12+
# - gradle.properties
13+
14+
jobs:
15+
build-job:
16+
uses: th2-net/.github/.github/workflows/compound-java-dev.yml@main
17+
with:
18+
build-target: 'Sonatype,Docker'
19+
runsOn: ubuntu-latest
20+
gradleVersion: '7'
21+
docker-username: ${{ github.actor }}
22+
secrets:
23+
sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
24+
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
25+
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }}
26+
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
27+
docker-password: ${{ secrets.GITHUB_TOKEN }}
28+
29+
30+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build and release Java distributions to sonatype.
2+
3+
on:
4+
push:
5+
tags:
6+
- \d+.\d+.\d+-dev
7+
8+
jobs:
9+
build:
10+
uses: th2-net/.github/.github/workflows/compound-java.yml@main
11+
with:
12+
build-target: 'Sonatype,Docker'
13+
runsOn: ubuntu-latest
14+
gradleVersion: '7'
15+
docker-username: ${{ github.actor }}
16+
devRelease: true
17+
secrets:
18+
sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
19+
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
20+
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }}
21+
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
22+
docker-password: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/docker-publish.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build and release Java distributions to sonatype.
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- version-*
8+
paths:
9+
- gradle.properties
10+
11+
jobs:
12+
build:
13+
uses: th2-net/.github/.github/workflows/compound-java.yml@main
14+
with:
15+
build-target: 'Sonatype,Docker'
16+
runsOn: ubuntu-latest
17+
gradleVersion: '7'
18+
docker-username: ${{ github.actor }}
19+
secrets:
20+
sonatypeUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
21+
sonatypePassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
22+
sonatypeSigningKey: ${{ secrets.SONATYPE_GPG_ARMORED_KEY }}
23+
sonatypeSigningPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }}
24+
docker-password: ${{ secrets.GITHUB_TOKEN }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM gradle:6.6-jdk11 AS build
1+
FROM gradle:7.6-jdk11 AS build
22
ARG release_version
33
COPY ./ .
44
RUN gradle --no-daemon clean build dockerPrepare -Prelease_version=${release_version}

README.md

Lines changed: 38 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,36 @@
1-
# Overview (5.0.2)
1+
# Overview (5.2.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

5-
Users must mark a pin that produces raw messages in conn, read and hand boxes via the "store" attribute, in order to automatically connect that pin to mstore and to collect all messages into Cradle.
5+
## Protobuf raw message
66

7-
Raw message is a base entity of th2. All incoming / outgoing data is stored in this format
8-
Every raw message contains important parts:
7+
Users must mark a pin that produces protobuf raw messages in conn, read and hand boxes via the "store" attribute, in order to automatically connect that pin to mstore and to collect all messages into Cradle.
8+
9+
Protobuf raw message is a base entity of th2. All incoming / outgoing data is stored in this format
10+
Every protobuf raw message contains important parts:
911
* book - name of the book
1012
* session alias - unique identifier of business session.
1113
* session group - group id for this session
1214
* direction - direction of message stream.
1315
* sequence number - incremental identifier.
1416
* data - byte representation of raw message
1517

16-
book, session alias, direction and sequence number are a **compound unique identifier** of raw messages within th2
18+
book, session alias, direction and sequence number are a **compound unique identifier** of protobuf raw messages within th2
19+
20+
## Transport raw message
21+
22+
Users must connect a pin that produces transport raw messages in conn, read and hand boxes via the general link approach, in order to manually connect that pin to mstore and to collect all messages into Cradle.
23+
24+
Transport raw message is a new entity of th2. You can read more details about th2 transport protocol by the [link] (https://exactpro.atlassian.net/wiki/spaces/TH2/pages/1048838145/TH2+Transport+Protocol). All incoming / outgoing data is stored in this format
25+
Every protobuf raw message contains important parts:
26+
* book - name of the book
27+
* session alias - unique identifier of business session.
28+
* session group - group id for this session
29+
* direction - direction of message stream.
30+
* sequence number - incremental identifier.
31+
* data - byte representation of raw message
32+
33+
book, session alias, direction and sequence number are a **compound unique identifier** of protobuf raw messages within th2
1734

1835
# Configuration
1936

@@ -72,6 +89,13 @@ spec:
7289
prefetchRatioToDrain: 0.8
7390
maxBatchSize: 200000
7491
termination-timeout: 5000
92+
pins:
93+
mq:
94+
subscribers:
95+
- name: transport
96+
attributes:
97+
- transport-group
98+
- subscribe
7599
extended-settings:
76100
service:
77101
enabled: false
@@ -91,16 +115,22 @@ spec:
91115
This is a list of supported features provided by libraries.
92116
Please see more details about this feature via [link](https://github.com/th2-net/th2-common-j#configuration-formats).
93117
94-
## 5.0.2
118+
## 5.2.1
95119
96-
+ Fixed the problem: batches for the same session group and different books are separate storing
120+
+ Fixed the problem: batches for the same session group and different books are separate storing
121+
122+
## 5.2.0
123+
* Updated bom: `4.5.0-dev`
124+
* Updated common: `5.4.0-dev`
125+
126+
## 5.1.0
127+
+ Provided ability to process th2 transport messages
97128

98129
## 5.0.1
99130

100131
+ Stores message properties to cradle
101132

102133
## 5.0.0
103-
104134
+ Migration to books/pages cradle 5.0.0
105135

106136
## 3.4.1

0 commit comments

Comments
 (0)