From 8032fd046fa1a726ed471625ea34d7ed8fe4a634 Mon Sep 17 00:00:00 2001 From: trydofor Date: Wed, 3 Jul 2024 18:09:07 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20journal=20elapse,=20alive?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/2-faceless/2i-prop-faceless.md | 16 +++++++++++++++- src/9-example/9a.wings-change/9a0.notable.md | 3 +++ src/9-example/9a.wings-change/9a6.320-100.md | 3 ++- src/zh/2-faceless/2i-prop-faceless.md | 16 +++++++++++++++- src/zh/9-example/9a.wings-change/9a6.320-100.md | 4 +++- 5 files changed, 38 insertions(+), 4 deletions(-) diff --git a/src/2-faceless/2i-prop-faceless.md b/src/2-faceless/2i-prop-faceless.md index c53730bfd..60f943729 100644 --- a/src/2-faceless/2i-prop-faceless.md +++ b/src/2-faceless/2i-prop-faceless.md @@ -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 diff --git a/src/9-example/9a.wings-change/9a0.notable.md b/src/9-example/9a.wings-change/9a0.notable.md index 5a6f2e5af..34308f3db 100644 --- a/src/9-example/9a.wings-change/9a0.notable.md +++ b/src/9-example/9a.wings-change/9a0.notable.md @@ -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 diff --git a/src/9-example/9a.wings-change/9a6.320-100.md b/src/9-example/9a.wings-change/9a6.320-100.md index a214196b5..446f749cd 100644 --- a/src/9-example/9a.wings-change/9a6.320-100.md +++ b/src/9-example/9a.wings-change/9a6.320-100.md @@ -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 diff --git a/src/zh/2-faceless/2i-prop-faceless.md b/src/zh/2-faceless/2i-prop-faceless.md index 779b02aeb..f7f9cec1e 100644 --- a/src/zh/2-faceless/2i-prop-faceless.md +++ b/src/zh/2-faceless/2i-prop-faceless.md @@ -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 diff --git a/src/zh/9-example/9a.wings-change/9a6.320-100.md b/src/zh/9-example/9a.wings-change/9a6.320-100.md index 08f2a9359..73576456a 100644 --- a/src/zh/9-example/9a.wings-change/9a6.320-100.md +++ b/src/zh/9-example/9a.wings-change/9a6.320-100.md @@ -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