Skip to content

Commit

Permalink
📝 journal elapse, alive
Browse files Browse the repository at this point in the history
  • Loading branch information
trydofor committed Jul 5, 2024
1 parent 9f703e5 commit 8032fd0
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 4 deletions.
16 changes: 15 additions & 1 deletion src/2-faceless/2i-prop-faceless.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,21 @@ sql scan pattern, comma separated. PathMatchingResourcePatternResolver format

Post check, if the specified revi is not applied, only upgrade can be performed, not downgrade to avoid dangerous delete.

## 2I.3.wings-lightid-79.properties
## 2I.3.wings-journal-79.properties

## wings.faceless.journal.propagation

`Propagation`=`REQUIRES_NEW`, transaction to create new Journal

## wings.faceless.journal.alive

`Integer`=`300`, create new journal if the existing is older than alive seconds.

* `<0` - use the old
* `0` - new one every time
* `>0` - new one if older

## 2I.4.wings-lightid-79.properties

The setting for the distributed PK- lightid. default transaction is Propagation.REQUIRES_NEW

Expand Down
3 changes: 3 additions & 0 deletions src/9-example/9a.wings-change/9a0.notable.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ Incompatible and important features grouped by feather branch in reverse order.
- `spring.help.CommonPropHelper` to `support.PropHelper`
- `SubclassSpringLoader` to `SubclassGather`
- `enhance.TypeSugar` to `support.TypeSugar`
* JournalService elapse, alive [#266](https://github.com/trydofor/professional-wings/issues/266)
- 💥 change schema revision=`2021_1026_05`
- ✨ create and elapse method

## ![Bane](/bane_minimap_icon.png "Bane") 240514 [Bane] 3.2.120

Expand Down
3 changes: 2 additions & 1 deletion src/9-example/9a.wings-change/9a6.320-100.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,11 @@ Add `FeatureFlag` and `TweakFeature` with the following breaking changes,
* FastjsonHelper delete enableXxx
* FastjsonHelper delete TypeReference

### 4h.tinytask schema change
### 4h.schema change

* schema and data 2021-10-26v02-task-tune.sql
* schema 2021-10-26v03-conf-size.sql
* schema 2021-10-26v05-journal-elapse.sql
* fix compile error

### 4i.silencer refactor
Expand Down
16 changes: 15 additions & 1 deletion src/zh/2-faceless/2i-prop-faceless.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,21 @@ sql扫描pattern,逗号分隔。PathMatchingResourcePatternResolver格式

补漏行为,任一指定revi未应用时,只升级不能降级,避免危险的删除动作

## 2I.3.wings-lightid-79.properties
## 2I.3.wings-journal-79.properties

## wings.faceless.journal.propagation

`Propagation`=`REQUIRES_NEW`,生成Journal的默认事务

## wings.faceless.journal.alive

`Integer`=`300`,Journal存活秒数,超过则生成新的

* `<0` - 使用旧值
* `0` - 每次都使用新值
* `>0` - 仅超过此值时,使用新值

## 2I.4.wings-lightid-79.properties

对分布式主键lightid的设置。默认事务级别,Propagation.REQUIRES_NEW

Expand Down
4 changes: 3 additions & 1 deletion src/zh/9-example/9a.wings-change/9a6.320-100.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ version变为`3.2.101`,标准的[3段式](https://semver.org)版本号。
* FastjsonHelper 删除 enableXxx
* FastjsonHelper 删除 TypeReference

### 4h.tinytask schema change
### 4h.schema change

* 维护数据 2021-10-26v02-task-tune.sql
* 表结构 2021-10-26v03-conf-size.sql
* 表结构 2021-10-26v05-journal-elapse.sql
* 修复编译错误

### 4i.silencer refactor
Expand Down

0 comments on commit 8032fd0

Please sign in to comment.