<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>分布式 on Shellj的博客</title>
    <link>https://im.shellj.com/tags/%E5%88%86%E5%B8%83%E5%BC%8F/</link>
    <description>Recent content in 分布式 on Shellj的博客</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Tue, 12 Dec 2023 09:30:36 +0800</lastBuildDate>
    <atom:link href="https://im.shellj.com/tags/%E5%88%86%E5%B8%83%E5%BC%8F/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>一个 Bug 给公司带来20000多损失</title>
      <link>https://im.shellj.com/posts/2022/11/a-20000-bug/</link>
      <pubDate>Wed, 23 Nov 2022 22:08:00 +0800</pubDate>
      <guid>https://im.shellj.com/posts/2022/11/a-20000-bug/</guid>
      <description>&lt;p&gt;最近连续两个月代码出问题，给公司带来了损失，第一次是2000多，第二次直接20000多，这里来做一次总结。&lt;/p&gt;&#xA;&lt;h2 id=&#34;问题&#34;&gt;问题&lt;/h2&gt;&#xA;&lt;p&gt;咱们的发布流程是 测试-&amp;gt;预发-&amp;gt;生产，这样子三个环境，代码到生产环境的时候会检查是否到预发环境。出问题的是Spring的一个定时任务，改了一个和钱有关的比例后按照流程发布上线，过了几天发现有些金额不对，排查后发现多了一个环境[预发2]，这个环境和生产环境是共用数据库的，这个环境是为了一些需要生产数据的测试，但是这个当时没人维护了，导致代码落后生产，定时任务执行了原来的逻辑。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
