Skip to content

Comments

SequenceFactoryWorker が SequenceStore から応答を受けたときの振る舞いのテストケースを検討する#63

Merged
tksugimoto merged 9 commits intofeature/fix-sequence-factoryfrom
sequence-factory-worker-store-reply-pict
Oct 15, 2021
Merged

SequenceFactoryWorker が SequenceStore から応答を受けたときの振る舞いのテストケースを検討する#63
tksugimoto merged 9 commits intofeature/fix-sequence-factoryfrom
sequence-factory-worker-store-reply-pict

Conversation

@negokaz
Copy link
Contributor

@negokaz negokaz commented Sep 22, 2021

次の指摘をきっかけに作成しました: #57 (comment)

次のケースが指摘で示されたシナリオに対応します。

# No  isStarving  isEmpty  isOverflow  msg                msg.maxReservedValue    generated.isStarving  generated.isOverflow  @received.isEmpty  @採番   @採番値予約  @採番値リセット
# 6   FALSE       FALSE    FALSE       SequenceReserved   = ctx.maxReservedValue  TRUE                  TRUE                  FALSE              する    しない       する

次の PR の修正に依存しています

@negokaz negokaz force-pushed the sequence-factory-worker-store-reply-pict branch from 157bdee to dc4db32 Compare September 23, 2021 06:40
@negokaz negokaz changed the title sequence_factory_worker_store_reply.pict SequenceFactoryWorker が SequenceStore から応答を受けたときの振る舞いのテストケースを検討する Sep 23, 2021
@negokaz negokaz marked this pull request as ready for review September 23, 2021 06:42
@negokaz negokaz force-pushed the improve-sequence-factory-pict branch from 90bcbff to ddf5d3a Compare September 23, 2021 07:22
@negokaz negokaz force-pushed the sequence-factory-worker-store-reply-pict branch from dc4db32 to 3472f66 Compare September 23, 2021 07:26
@negokaz negokaz force-pushed the sequence-factory-worker-store-reply-pict branch from 3472f66 to 579ec2d Compare September 23, 2021 08:05
@negokaz negokaz force-pushed the improve-sequence-factory-pict branch from fb08704 to 2e7f172 Compare September 24, 2021 00:48
@negokaz negokaz force-pushed the sequence-factory-worker-store-reply-pict branch from 579ec2d to b99060c Compare September 24, 2021 00:50
Base automatically changed from improve-sequence-factory-pict to sequence-factory-worker-generate-pict September 24, 2021 07:01
isStarving, generated.isStarving, generated.isOverflow, @採番値予約, @採番値リセット が不要になりました。
リトライ部分は処理ロジック的にはリスクを感じるほど複雑ではないため、コードレビュー + 既存のテストケースでカバーします
@received.isEmpty は Store からのリプライを受けた直後であり、採番の有無による影響を受けないため
No  isEmpty  isOverflow  msg                msg.maxReservedValue    @received.isEmpty
14  TRUE     TRUE        SequenceReset      = ctx.maxReservedValue  FALSE
のケースでも採番できるのが仕様としては望ましいことがわかった
@negokaz negokaz force-pushed the sequence-factory-worker-store-reply-pict branch from a0ff65d to 2a8a3a9 Compare September 28, 2021 11:50
Base automatically changed from sequence-factory-worker-generate-pict to feature/fix-sequence-factory October 15, 2021 07:33
@tksugimoto tksugimoto enabled auto-merge October 15, 2021 08:05
@tksugimoto tksugimoto merged commit 2f85494 into feature/fix-sequence-factory Oct 15, 2021
@tksugimoto tksugimoto deleted the sequence-factory-worker-store-reply-pict branch October 15, 2021 08:17
@tksugimoto tksugimoto added this to the v3.0.0 milestone Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants