-
Notifications
You must be signed in to change notification settings - Fork 0
SequenceStore での処理が失敗したときに正常に採番できないケースがある問題を解決します #57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tksugimoto
merged 34 commits into
feature/fix-sequence-factory
from
fix-sequence-factory
Sep 28, 2021
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
7d5303d
🔨refactor: シーケンスに関わる処理を SequenceContext のメソッドとして実装
negokaz-tis 31d0b71
🔨refactor: SequenceFactoryWorker の状態を ready と empty の2つの状態に変更
negokaz-tis 59c6134
🐞fix: シーケンスの予約可能数の計算で最大シーケンス番号を考慮する
negokaz-tis efdb991
🚨test: 採番値の予約に失敗した場合のテストケースを追加
negokaz-tis 2ab6ac1
✨feat: Cassandra に書き込んでいる途中に来た採番値予約の要求は最後のもの以外を無視する
negokaz-tis 6271eaf
🔀Revert "✨feat: Cassandra に書き込んでいる途中に来た採番値予約の要求は最後のもの以外を無視する"
negokaz-tis 104d8e4
📚doc: Update CHANGELOG
negokaz-tis 5b3f53d
🐞fix: 採番値が枯渇しているときに予約のリトライが行われない問題を修正
negokaz-tis 54d8f1f
🐞fix: 予約完了後に枯渇したりオーバフローするのは異常なのでエラーにする
negokaz-tis d5c6215
🐞fix: maxSequenceValue を超えて予約しないように修正
negokaz-tis 6e19510
📚doc: コメントの計算式を修正
negokaz-tis cfc8fc5
📚doc: SequenceFactoryWorker の振る舞いに関するテストケースを洗い出し
negokaz-tis ee7e5f8
📚doc: InitialSequenceReserved のコメントの計算式を修正
negokaz-tis 6401fa5
Merge branch 'feature/fix-sequence-factory' into fix-sequence-factory
tksugimoto acd87db
🐞fix: 採番値がoverflowしている状態で予約リトライの応答が返ってくると Worker が stop する問題を修正
negokaz-tis dc28d4a
🔀Revert "📚doc: SequenceFactoryWorker の振る舞いに関するテストケースを洗い出し"
negokaz-tis f7c7b05
🐞fix: 採番値の在庫が少なくなったときの予約で 1 つ余計に採番値を予約していた問題を修正
negokaz-tis 152c6d5
🚨test: 採番値が枯渇しているときにリトライされたリセットの応答が遅れて返ってきてもユニークな採番値を発行できる
negokaz-tis b1395f6
🐞fix: リセットのリトライによりユニークな採番値が発行できないケースある問題を修正
negokaz-tis 25bc6f2
📚doc: SequenceFactoryWorkerSpec のコメントを修正
negokaz-tis b459f5f
📚doc: SequenceFactoryWorkerSpec のコメントを修正
negokaz-tis 7d2e100
🐞fix: リセット時に採番値が余分に 1 つ多く予約される問題を修正
negokaz-tis e186160
📚doc: CHANGELOG を更新
negokaz-tis 8410a62
🚨test: SequenceReset の仕様変更を SequenceFactoryWorkerSpec に反映
negokaz-tis 70835e6
🔀Merge branch 'feature/fix-sequence-factory' into fix-sequence-factory
negokaz-tis 889b26c
🚨test: テストケースを削除します: 予約中の採番要求で次番号が上限を超えた場合はリセットする
negokaz-tis a2cdece
🚨test: 予約に失敗した場合、次の採番要求まで予約がリトライされていないことを確認
negokaz-tis 3a1e86b
👷chore: LoggingTestKit を使えるように lerna-tests に logback の依存を追加する
negokaz-tis 59d5e2f
🐞fix: ログ出力で remain が多く報告される問題を修正します
negokaz-tis b9813b6
🚨test: 採番値が枯渇するまでの予約要求を全て失敗させるように変更
negokaz-tis 6c93671
🔀Merge branch 'feature/fix-sequence-factory' into fix-sequence-factory
negokaz-tis 1854b11
Merge branch 'feature/fix-sequence-factory' into fix-sequence-factory
tksugimoto 02214b8
🚨test: logback-test.xml を追加しログの出る量を減らします
negokaz-tis 1f85a6a
🚨test: 重複するテストケースを削除します
negokaz-tis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <?xml version="1.0" encoding="UTF-8"?> | ||
| <configuration> | ||
| <conversionRule conversionWord="msg" converterClass="lerna.log.logback.converter.OneLineEventConverter" /> | ||
| <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
| <encoder> | ||
| <pattern>%date{HH:mm:ss.SSS}\t%-5level\t%logger\t%X{akkaSource:--}\t%X{traceId:--}\t%X{tenantId:--}\t%msg%xEx%nopex%n</pattern> | ||
| </encoder> | ||
| </appender> | ||
|
|
||
| <logger level="INFO" name="akka" /> | ||
| <logger level="INFO" name="lerna" /> | ||
|
|
||
| <root level="WARN"> | ||
| <appender-ref ref="STDOUT"/> | ||
| </root> | ||
| </configuration> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.