注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号
x
本帖最后由 匿名 于 2023-2-27 12:32 编辑 . check 1point3acres for more.
楼主 某leisure厂基层码农 入职2年左右
公司从2022年 开始做大规模platform migration 本组own的是T1 service 涉及到 pci data
fail case data recovery 新的stack里面的数据 如果出事需要搬回旧的stack里面重新处理 经理和lead assign 这个任务时候 只说了this is to create back up in case things go wrong 然后就是下周我们traffic cutover时候需要 just generate as Insert SQL statements, get this done before next week.
一开始听起来这个任务好像很easy , lead和我描述时候 就轻描淡写说了 ,
我没怎么多想 心想那就需要一个script load csv file 然后generate inserts 就完了 (事后发现远没有这么简单)
我写好第一个version以后 就拿去在lab里面跑了 跑完了结果看了下所有csv的数据都load到db里面了 , schedule了followup 和lead go over
lead 提出来不应该是每个table逐个insert 而是改成 insert each row for all the table before moving to next row, 于是回去又改这个script 变成逐行插入. 1point3acres.com
结果sdm 和 lead 又提出了在old stack production env traffic is still live,application is also inserting new rows into the DB, won't there be any conflict on primary key if you execute all these inserts statements on these tables ? 我当时听了很懵 心想我真的没有想到这个case 觉得很揪心 后来跑去问lead该怎么做 我是实在想不出来什么办法了 lead只是轻描淡写说了句 let me think about it... 我真心感觉我和TL合作过程中被问问题远超过给的建议数量。。。
今天一大早 我就跑去和专门负责data migration的组meeting 请教他们的经验 被告知如果是mutual exclusive data可以做bidirectinal inserts 如果不是没有解决方案 并特别着重提到: ..
bi-directional inserts is not recommended and no guarantee on data integrity, the last team who attempted to do this suffer from millions of records of loss ..... .
there are no conflict data resolution for this
请问我当前是不是已经无形掉进了一个坑里了 现在真的有些害怕了要是migrate过程出事 需要做backup 我心里很没底 我是不是要应该准备跑路了?
. 1point3acres
ps:目前做好准备 如果要做back up我就请病假。。。 |