Tagged articles
68 articles
Page 1 of 1
Code Wrench
Code Wrench
Feb 3, 2026 · Operations

Build a Lightweight, Auditable, Rollback‑Capable Deployment Tool in Go (200 lines)

This article walks through creating a compact Go‑based deployment automation tool—named go‑deploy—that provides atomic releases, versioning, concurrent safe deployments, observability, and easy rollback using a blue‑green directory strategy, all within roughly 200 lines of code, and includes practical tips and pitfalls to avoid.

DeploymentDevOpsGo
0 likes · 13 min read
Build a Lightweight, Auditable, Rollback‑Capable Deployment Tool in Go (200 lines)
Raymond Ops
Raymond Ops
Dec 14, 2025 · Operations

Build a Zero‑Downtime Enterprise Deployment Pipeline with Ansible

This guide walks you through designing and implementing a complete Ansible‑based deployment pipeline—including inventory setup, role definitions, rolling and blue‑green deployments, rollback mechanisms, performance tweaks, debugging, and best‑practice recommendations—to achieve reliable, automated, zero‑downtime releases for web applications.

AnsibleAutomationBlue-Green
0 likes · 10 min read
Build a Zero‑Downtime Enterprise Deployment Pipeline with Ansible
IT Xianyu
IT Xianyu
Jul 29, 2025 · Databases

Master PostgreSQL Transactions in DataGrip: BEGIN, COMMIT, ROLLBACK Explained

Learn how to safely manage PostgreSQL transactions using DataGrip by understanding ACID principles, executing BEGIN, COMMIT, and ROLLBACK commands, handling errors, and applying practical tips for visibility, connection loss, and Docker deployments, all illustrated with step‑by‑step screenshots.

ACIDBEGINDataGrip
0 likes · 9 min read
Master PostgreSQL Transactions in DataGrip: BEGIN, COMMIT, ROLLBACK Explained
Aikesheng Open Source Community
Aikesheng Open Source Community
Jun 3, 2025 · Databases

Root Cause Analysis of MySQL 5.7 JSON NOT NULL Rollback Failure and Its Fix

The article details a MySQL 5.7 bug where rollback SQL generated for a JSON NOT NULL column produces an empty string instead of NULL, explains the underlying binlog behavior, reproduces the issue with sample tables, and provides a practical workaround by converting the JSON column to TEXT before re‑importing the data, while recommending strict SQL_MODE for production.

JSONSQL ModeSchema Migration
0 likes · 7 min read
Root Cause Analysis of MySQL 5.7 JSON NOT NULL Rollback Failure and Its Fix
Cognitive Technology Team
Cognitive Technology Team
Apr 15, 2025 · Backend Development

Common Pitfalls of Spring Transaction Management and How to Avoid Them

This article explains the typical reasons why Spring @Transactional annotations may fail—including AOP proxy limitations, method visibility, self‑invocation, exception handling, propagation settings, async execution, multiple data sources, and database constraints—and provides practical solutions to ensure reliable transaction behavior.

BackendExceptionProxy
0 likes · 6 min read
Common Pitfalls of Spring Transaction Management and How to Avoid Them
Aikesheng Open Source Community
Aikesheng Open Source Community
Feb 18, 2025 · Databases

Parsing Delete Undo Log in MySQL 8.0.32 InnoDB

This article explains how to read and parse the Undo log generated by a DELETE operation in MySQL 8.0.32 InnoDB, covering preparation, log extraction, detailed field parsing, locating the primary index record, and the step‑by‑step rollback of secondary and primary index records.

Database InternalsInnoDBSQL
0 likes · 10 min read
Parsing Delete Undo Log in MySQL 8.0.32 InnoDB
JD Tech
JD Tech
Jan 23, 2025 · Databases

Comprehensive Migration Plan for MongoDB to Alternative Data Stores

This article presents a complete MongoDB migration solution, detailing the migration rhythm, code refactoring using a decorator pattern, data source replacement with JImKV, MySQL and ES, bulk and incremental data transfer strategies, and deployment safeguards such as monitoring, gray release, and rollback to ensure a seamless cut‑over without service disruption.

Data MigrationDecorator PatternDistributed Systems
0 likes · 8 min read
Comprehensive Migration Plan for MongoDB to Alternative Data Stores
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 18, 2024 · Databases

How MySQL InnoDB Allocates Undo Segments

This article explains the internal process MySQL 8.0.32 InnoDB uses to allocate, create, and manage Undo segments—including cached segment retrieval, new segment creation, insertion into rollback segment lists, conflict avoidance through mutexes, and a concise step‑by‑step summary of the entire workflow.

InnoDBUNDOdatabase
0 likes · 9 min read
How MySQL InnoDB Allocates Undo Segments
JD Tech Talk
JD Tech Talk
Oct 17, 2024 · Operations

Comprehensive Guide to Change Management: Compatibility Design, Release Planning, Gray Deployment, Data Migration, Rollback, and Configuration Control

This article presents a detailed overview of change management practices, covering compatibility design across hardware, base software, and applications, release strategies, gray‑deployment techniques, data migration analysis, rollback planning, configuration change control, and verification procedures to ensure system stability and reliability.

CompatibilityGray DeploymentOperations
0 likes · 26 min read
Comprehensive Guide to Change Management: Compatibility Design, Release Planning, Gray Deployment, Data Migration, Rollback, and Configuration Control
JD Cloud Developers
JD Cloud Developers
Oct 17, 2024 · Operations

Master Change Management: Compatibility, Gray Release & Rollback Strategies

This guide outlines comprehensive change‑management practices—including compatibility design across hardware, base and application software, structured release planning, gray‑release techniques, data‑migration safeguards, rollback mechanisms, and configuration control—to ensure system stability and reliability during updates.

DeploymentOperationschange management
0 likes · 25 min read
Master Change Management: Compatibility, Gray Release & Rollback Strategies
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Sep 11, 2024 · Databases

Upgrade Pika to 3.5.x: Key New Features, Migration Guide & Rollback Tips

This article introduces Pika 3.5.x’s major enhancements—including a new sync mechanism, expanded Redis command support, RocksDB upgrades, BlobDB, containerization, observability tools, ACL and transaction support—while providing a step‑by‑step upgrade procedure, optional data synchronization, and two rollback strategies for safe migration.

BinlogDatabase UpgradePika
0 likes · 17 min read
Upgrade Pika to 3.5.x: Key New Features, Migration Guide & Rollback Tips
Su San Talks Tech
Su San Talks Tech
Feb 15, 2024 · Backend Development

How to Ensure Transaction Rollback in Spring Multithreaded Operations

This article explains why the @Transactional annotation fails in Spring when using multithreading, demonstrates a failing example, and provides a solution using manual SqlSession management to guarantee that all database changes are rolled back if any thread encounters an exception.

JavaMyBatismultithreading
0 likes · 10 min read
How to Ensure Transaction Rollback in Spring Multithreaded Operations
Soul Technical Team
Soul Technical Team
Oct 9, 2023 · Databases

Understanding SQLite Log Modes and Fixing Duplicate Message ID Issues in Chat Applications

This article explains SQLite's Rollback and WAL logging modes, compares their performance and concurrency characteristics, investigates a real‑world problem where duplicate IM message IDs appear after app upgrades, and presents a step‑by‑step solution using UNIQUE constraints and index checks to prevent repeated inserts.

SQLiteWALchat-application
0 likes · 26 min read
Understanding SQLite Log Modes and Fixing Duplicate Message ID Issues in Chat Applications
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 5, 2023 · Frontend Development

Second‑Level (秒级) Front‑End Rollback: A Step‑by‑Step Demo Using Vite, React, and Node

This article presents a complete tutorial for implementing a near‑instant (second‑level) rollback mechanism for single‑page front‑end applications, covering the underlying idea, project setup with Vite and React, history recording, a lightweight Node server, and a petite‑Vue visual interface for selecting and applying previous builds.

DeploymentNodeReact
0 likes · 20 min read
Second‑Level (秒级) Front‑End Rollback: A Step‑by‑Step Demo Using Vite, React, and Node
Java High-Performance Architecture
Java High-Performance Architecture
Jul 24, 2023 · Backend Development

Business Compensation in Distributed Systems: Rollback, Retry, and Consistency

This article explains how distributed systems handle business inconsistencies through compensation mechanisms, detailing rollback versus retry approaches, their implementation patterns such as explicit/implicit rollback, various retry strategies, and the trade‑offs between ACID and BASE consistency models for achieving eventual consistency.

ConsistencyDistributed SystemsMicroservices
0 likes · 11 min read
Business Compensation in Distributed Systems: Rollback, Retry, and Consistency
Su San Talks Tech
Su San Talks Tech
Jul 11, 2023 · Backend Development

Why MyBatis‑Plus’s saveBatch Triggers Unexpected Transaction Rollbacks and How to Fix It

The article explains why the error "Transaction rolled back because it has been marked as rollback‑only" occurs in a Java Spring service when using MyBatis‑Plus saveBatch, how hidden @Transactional annotations cause hidden nested transactions, and presents a practical workaround by replacing the batch operation with a custom mapper.

Backend DevelopmentJavaMyBatis-Plus
0 likes · 7 min read
Why MyBatis‑Plus’s saveBatch Triggers Unexpected Transaction Rollbacks and How to Fix It
Code Ape Tech Column
Code Ape Tech Column
Jun 6, 2023 · Backend Development

Business Compensation Mechanisms: Rollback and Retry Strategies in Distributed Systems

The article explains business compensation mechanisms in distributed microservice architectures, detailing rollback and retry approaches, their implementation patterns, strategies, and practical considerations for achieving eventual consistency while handling failures and outlines best practices for idempotency, monitoring, and workflow engine design.

Distributed SystemsRetrybusiness compensation
0 likes · 14 min read
Business Compensation Mechanisms: Rollback and Retry Strategies in Distributed Systems
Top Architect
Top Architect
May 4, 2023 · Backend Development

Business Compensation Mechanisms: Rollback and Retry Strategies in Distributed Systems

The article explains how distributed applications face consistency challenges, defines business compensation as a way to resolve inconsistent states, and details practical rollback and retry mechanisms—including explicit/implicit rollback, various retry strategies, code examples, and design considerations for microservice architectures.

Retrybusiness compensationrollback
0 likes · 14 min read
Business Compensation Mechanisms: Rollback and Retry Strategies in Distributed Systems
ITPUB
ITPUB
Mar 31, 2023 · Databases

How to Recover From an Accidental Full‑Table Update in Oracle

When a mistaken UPDATE statement overwrites an entire Oracle table, this guide explains four practical recovery techniques—including transaction rollback, flashback queries, LogMiner undo extraction, and RMAN backup restoration—detailing their prerequisites, commands, and trade‑offs.

Data RecoveryFlashback QueryOracle
0 likes · 7 min read
How to Recover From an Accidental Full‑Table Update in Oracle
Selected Java Interview Questions
Selected Java Interview Questions
Mar 26, 2023 · Databases

9 Common Pitfalls of SQL Scripts During System Deployment and How to Avoid Them

This article outlines nine typical problems that arise when executing SQL scripts in production—such as missing scripts, syntax errors, wrong order, timing issues, wrong database selection, long‑running updates, lack of rollback, missing indexes, and field renaming—and provides practical solutions to prevent each pitfall.

DBADatabase DeploymentDevOps
0 likes · 11 min read
9 Common Pitfalls of SQL Scripts During System Deployment and How to Avoid Them
政采云技术
政采云技术
Mar 2, 2023 · Fundamentals

Two‑Phase Commit in Lucene: Mechanism, Implementation, and Rollback

This article explains the two‑phase commit protocol, describes how Lucene implements it through a dedicated interface, details the preparation, commit, segment handling, deletion policies, and rollback procedures, and provides code snippets illustrating the core logic.

Distributed Transactionslucenerollback
0 likes · 13 min read
Two‑Phase Commit in Lucene: Mechanism, Implementation, and Rollback
Top Architect
Top Architect
Dec 9, 2022 · Backend Development

Understanding Spring Transaction Management: @EnableTransactionManagement, Execution Flow, Propagation, and Forced Rollback

This article explains how Spring enables transaction management through @EnableTransactionManagement, details the underlying advisor and proxy mechanisms, describes the basic and detailed execution steps, explores propagation types with practical code examples, and shows how to force rollbacks and use TransactionSynchronization for lifecycle callbacks.

Javaaoppropagation
0 likes · 13 min read
Understanding Spring Transaction Management: @EnableTransactionManagement, Execution Flow, Propagation, and Forced Rollback
Top Architect
Top Architect
Aug 10, 2022 · Backend Development

Understanding Spring @Transactional Rollback Behavior and Exception Handling

This article demonstrates how Spring's @Transactional annotation rolls back transactions only for RuntimeException subclasses, shows practical MySQL update tests that trigger ArithmeticException, and explains how to configure rollback for checked exceptions using rollbackFor, with complete code examples.

Exception HandlingJavamysql
0 likes · 5 min read
Understanding Spring @Transactional Rollback Behavior and Exception Handling
Xiaolei Talks DB
Xiaolei Talks DB
Aug 8, 2022 · Databases

Mastering TiDB Upgrades: Strategies, Risks, and Real‑World Case Studies

This comprehensive guide explains why TiDB upgrades are essential, compares offline, forced, and smooth upgrade methods, outlines detailed step‑by‑step procedures, highlights advantages and risks, and shares practical check‑points and real‑world case studies to help DBAs ensure a safe, performant migration.

TiDBdatabaseperformance
0 likes · 21 min read
Mastering TiDB Upgrades: Strategies, Risks, and Real‑World Case Studies
Top Architect
Top Architect
Jul 28, 2022 · Backend Development

Spring @Transactional: Propagation Behaviors, Rollback Mechanism, and Self‑Invocation Pitfalls

This article explains Spring's @Transactional annotation, detailing the various transaction propagation options, the default rollback behavior for unchecked exceptions, common pitfalls such as self‑invocation and non‑public methods, and how to use AOP proxies like AopContext.currentProxy and @EnableAspectJAutoProxy to ensure proper transaction management.

Proxyaoppropagation
0 likes · 9 min read
Spring @Transactional: Propagation Behaviors, Rollback Mechanism, and Self‑Invocation Pitfalls
Sohu Tech Products
Sohu Tech Products
Mar 9, 2022 · Backend Development

Understanding the Spring Transaction Rollback Bug and Its Resolution

This article analyzes a Spring transaction rollback issue caused by the use of pattern‑based exception matching, explains why certain custom exceptions trigger unexpected rollbacks, traces the problem through source code and GitHub issues, and describes how the Spring team fixed it with type‑safe rollback rules and documentation updates.

BackendDocumentationJava
0 likes · 22 min read
Understanding the Spring Transaction Rollback Bug and Its Resolution
Laravel Tech Community
Laravel Tech Community
Jun 14, 2021 · Backend Development

PDO::rollBack – Rolling Back a Transaction in PHP

The article explains how the PHP PDO::rollBack() method aborts the current transaction, restores autocommit mode when needed, outlines its parameter‑less signature, return values, and provides a complete code example demonstrating transaction handling and rollback behavior.

BackendPDOPHP
0 likes · 2 min read
PDO::rollBack – Rolling Back a Transaction in PHP
Aikesheng Open Source Community
Aikesheng Open Source Community
Dec 14, 2020 · Databases

Using MyFlash: A MySQL Flashback Tool for Rolling Back DML Operations

This article introduces MyFlash, an open‑source MySQL flashback utility, explains its limitations, provides step‑by‑step installation commands, details the available command‑line options for specifying databases, tables, time ranges and SQL types, and demonstrates a complete rollback test case with binlog parsing and execution.

FlashbackMyFlashSQL
0 likes · 13 min read
Using MyFlash: A MySQL Flashback Tool for Rolling Back DML Operations
macrozheng
macrozheng
Aug 21, 2020 · Backend Development

Common Spring @Transactional Pitfalls and How to Fix Them

This article examines frequent Spring transaction problems—including ineffective transactions, rollback anomalies, and issues when combining read‑write separation with @Transactional—explains their root causes, and provides practical solutions such as engine changes, bean configuration, proxy usage, rollback settings, and proper propagation levels.

aoprollbacktransaction
0 likes · 13 min read
Common Spring @Transactional Pitfalls and How to Fix Them
FunTester
FunTester
Jul 3, 2020 · Backend Development

Handling Unicode Encoding Issues and Database Transaction Rollback in Java Services

The article explains a character‑encoding pitfall caused by a Python middle‑layer converting parameters to Unicode, provides a Java utility to decode escaped Unicode strings, and demonstrates how to use Spring's @Transactional annotation with rollbackFor to ensure database operations are rolled back on errors.

JavaUnicodeencoding
0 likes · 4 min read
Handling Unicode Encoding Issues and Database Transaction Rollback in Java Services
Qunar Tech Salon
Qunar Tech Salon
Feb 14, 2020 · Databases

Understanding InnoDB Rollback and UNDO Log Architecture in MySQL

This article explains the internal structure of InnoDB rollback segments, UNDO log storage formats, and the recovery process in MySQL, detailing how transaction IDs, segment headers, page headers, and log records are organized and used to safely roll back or purge data.

Database InternalsInnoDBmysql
0 likes · 22 min read
Understanding InnoDB Rollback and UNDO Log Architecture in MySQL
21CTO
21CTO
Jun 18, 2019 · Operations

Why Embracing Failure Accelerates Growth: Lessons from Intuit and PayPal

The article explains how organizations can achieve rapid growth by openly acknowledging failures, creating lightweight post‑mortem processes, and continuously learning from mistakes, illustrated through Intuit’s SaaS transition, PayPal’s rollback challenges, and practical rules for QA and architecture.

QASaaSarchitecture
0 likes · 31 min read
Why Embracing Failure Accelerates Growth: Lessons from Intuit and PayPal
Programmer DD
Programmer DD
Jan 18, 2019 · Backend Development

Mastering Compensation: When to Rollback vs Retry in Distributed Systems

This article explains the purpose of compensation mechanisms in microservice architectures, compares rollback and retry approaches, outlines their implementation details, discusses idempotency concerns, and provides practical best‑practice recommendations for building resilient distributed systems.

CompensationDistributed SystemsIdempotency
0 likes · 12 min read
Mastering Compensation: When to Rollback vs Retry in Distributed Systems
Efficient Ops
Efficient Ops
Jan 10, 2019 · Operations

Essential DBA & Ops Practices to Prevent System Failures

This article outlines ten practical guidelines for DBAs and system administrators—including rollback‑ready changes, cautious use of destructive commands, prompt customization, reliable backups, production respect, thorough handovers, alerting, monitoring, careful failover, meticulous checks, and the virtue of simplicity—to minimize costly system outages.

LinuxOperationsOracle
0 likes · 7 min read
Essential DBA & Ops Practices to Prevent System Failures
Tencent Cloud Developer
Tencent Cloud Developer
Jul 17, 2018 · Operations

Understanding Storage Snapshots: Use Cases and Implementation Principles

Storage snapshots are point‑in‑time, fully usable copies of data that protect against loss, enable testing and analysis, and are implemented mainly via copy‑on‑write or redirect‑on‑write techniques, each with distinct performance and deletion trade‑offs, so selecting the optimal method depends on workload and business requirements.

COWData ProtectionRow
0 likes · 10 min read
Understanding Storage Snapshots: Use Cases and Implementation Principles
Hujiang Technology
Hujiang Technology
Mar 13, 2018 · Databases

Migrating from SQL Server to MySQL: Strategies, Tools, and Lessons Learned

This article details the background, design considerations, migration workflows, tooling choices, data consistency verification, rollback mechanisms, and practical experiences of moving a large‑scale production environment from Microsoft SQL Server to MySQL, covering both offline and online migration scenarios.

Data ConsistencyETLSQL Server
0 likes · 13 min read
Migrating from SQL Server to MySQL: Strategies, Tools, and Lessons Learned
21CTO
21CTO
Sep 29, 2017 · Databases

Ensuring Distributed Consistency: From Local Transactions to Two‑Phase Commit

The article examines how to achieve data consistency in distributed internet systems by comparing strong and eventual consistency, detailing local database transactions, two‑phase commit protocols, rollback mechanisms, local message tables, and compensation strategies, and discusses their trade‑offs and suitable application scenarios.

CompensationDistributed TransactionsLocal Message Table
0 likes · 11 min read
Ensuring Distributed Consistency: From Local Transactions to Two‑Phase Commit
DevOps
DevOps
Jul 30, 2017 · Operations

Rollback Strategies and Metric‑Driven Deployment: Fast, Cheap, and Safe Releases

The article discusses the pitfalls of reckless rapid releases, emphasizes metric‑driven deployment, explains rollback and hot‑fix methods, describes gray‑release (A/B testing) techniques, and outlines how infrastructure‑as‑code, container images, feature flags, and configuration management enable fast, cheap, and reliable rollbacks.

continuous-deliveryfeature-flaginfrastructure-as-code
0 likes · 6 min read
Rollback Strategies and Metric‑Driven Deployment: Fast, Cheap, and Safe Releases
dbaplus Community
dbaplus Community
Aug 23, 2016 · Operations

How to Build a Scalable Automated Deployment System for Multi‑Node Clusters

This article walks through the shortcomings of manual code releases, designs a multi‑environment automated deployment workflow, details step‑by‑step implementation—including code fetching, configuration handling, logging, parallel execution, and rollback—while sharing practical scripts and common pitfalls for large‑scale clusters.

Cluster ManagementDeployment AutomationDevOps
0 likes · 10 min read
How to Build a Scalable Automated Deployment System for Multi‑Node Clusters
ITPUB
ITPUB
Mar 11, 2016 · Databases

Essential Oracle SQL Queries for DBAs: Tablespaces, Rollback Segments, and Performance Insights

A comprehensive collection of Oracle SQL statements helps database administrators quickly retrieve tablespace sizes, data file details, rollback segment information, control and log files, usage statistics, object metadata, version data, long‑running queries, partition parameters, locked objects, resource‑intensive sessions, lock and wait statuses, SGA metrics, cached objects, and SQL area details.

Database AdministrationOracleQueries
0 likes · 10 min read
Essential Oracle SQL Queries for DBAs: Tablespaces, Rollback Segments, and Performance Insights
Efficient Ops
Efficient Ops
Sep 22, 2015 · Operations

Automating Deployment for SMEs: A Step‑by‑Step Shell Guide

This article outlines a practical, resource‑conscious approach for small and medium‑size enterprises to design and implement an automated deployment pipeline using shell scripts, covering goal setting, process design, key deployment steps, tips, rollback procedures, and frequently asked questions.

AutomationConfigurationDeployment
0 likes · 14 min read
Automating Deployment for SMEs: A Step‑by‑Step Shell Guide