Repository navigation
基金日推进失败时完整回滚并支持同日重试 - #6
Merged
Merged
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
基金日推进先修改日期、结算款项和订单,再处理分红与估值。后续阶段报错时,旧实现留下部分已更新状态,导致失败日不能重试;调用方继续推进还可能遗漏分红。
现在以整个Ledger.advance为事务边界:失败时恢复日期、现金、冻结款、应收款、份额、订单状态、分红标记及当日新增记录,原异常继续抛出。订单和份额对象原位恢复,外部引用及赎回预留关系保持有效;不复制市场数据和累计历史。成功路径及金融口径不变,保证范围为内存账本。
验证:完整回归47项通过;7项新增回归在修复前全部失败、修复后全部通过,覆盖真实触发条件对应的合成未确认权益场景、两次结算、分红、对账、估值、首次推进中断、同日重试与对象引用。Ruff和103包依赖检查通过。故障场景明确为合成测试,不声明真实FOF业务契约已经齐备。