How to Fix MySQL Error 3095 (ER_GROUP_REPLICATION_STOP_APPLIER_THREAD_TIMEOUT)

Published
Length
3 min read

Luis Felipe Dias

All posts

You get mysql error 3095 when a group replication stop command times out because the applier thread is still busy. You fix it by letting large transactions finish or killing the stuck worker thread before stopping replication again. This failure maps to the ER_GROUP_REPLICATION_STOP_APPLIER_THREAD_TIMEOUT symbol and SQLSTATE HY000. The server reports that the stop command execution is incomplete. The applier thread got the stop signal while it was busy. Understanding how group replication handl

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

You get mysql error 3095 when a group replication stop command times out because the applier thread is still busy. You fix it by letting large transactions finish or killing the stuck worker thread before stopping replication again.

This failure maps to the ER_GROUP_REPLICATION_STOP_APPLIER_THREAD_TIMEOUT symbol and SQLSTATE HY000. The server reports that the stop command execution is incomplete. The applier thread got the stop signal while it was busy. Understanding how group replication handles queued work helps your team resolve the stall safely.

Why mysql error 3095 happens in group replication

Group replication uses an applier thread to write changes from the cluster to the local node. When an operator runs a stop command, the node leaves the group first. Then the local engine waits for the applier thread to finish its current work.

If the applier thread is running a huge update, it cannot stop right away. The stop operation waits until its timer runs out. Once the timer ends, the database throws mysql error 3095 to warn the user.

Local row locks also cause this timeout on busy nodes. A local read or backup job might hold a lock on a table. The applier thread waits for that lock to clear so it can write cluster changes. Because the applier is stuck waiting, it ignores the stop signal until the timeout hits.

Disk bottlenecks and heavy load make this problem worse. Slow disks increase the time needed to write large change sets. High memory pressure can also slow down worker threads during peak hours.

How to check the stuck applier thread

Do not restart the database right away when you see this error. A hard restart during an active write can force a long recovery cycle later. First, check what the applier thread is doing on the node.

Log in to the database with a read role that can view server status. Check the process list and performance tables to see active replication workers. Look for threads that are applying batch changes or waiting on table locks.

MySQL Access Governance + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Check the lock wait tables to find any local queries blocking the worker. Often, an analytical query or an idle transaction holds a shared lock. Identifying the blocker is the fastest way to clear the path for the applier.

How to fix the timeout safely in production

Once you find the root cause, you can clear the stuck state with minimal risk. If the worker is just applying a large transaction, wait a few minutes. Check the worker status again to see if the queue finishes on its own.

If a local query blocks the applier thread, stop that specific user query. As soon as the lock clears, the applier thread finishes its task and stops cleanly. You do not need to grant full admin rights to fix a simple lock wait.

Sometimes the applier thread hangs on a dead transaction that will not finish. In that case, an operator with proper permissions can kill the stuck applier thread. After the thread stops, run the group replication stop command one more time. The node will then enter the offline state cleanly.

To prevent future timeouts, break huge data updates into smaller batches. Smaller batches let the applier thread check for stop signals much more often. Also, move heavy reporting queries to read replicas so they do not lock cluster nodes. Keep sensitive fields like emails and phone numbers safe by rewriting matched fields in results during fixing.

Check MySQL queries and results on the wire

MySQL grants control who logs in. They do not check single queries or mask sensitive columns once a session starts. With hoop.dev, you run an open-source proxy, a sidecar for your MySQL, inline in the MySQL wire protocol. On every query an AI agent or human runs against production MySQL, RDS, or Aurora, hoop.dev decides to pass, mask, block, or hold it for review.

Multi-statement batches and prepared queries are split and checked one by one by hoop.dev guardrails, which refuse banned queries with a native MySQL error or hold risky ones for approval. On the response path, hoop.dev data masking rewrites string values in returned rows in memory, and every decision is logged. See the MIT-licensed project on GitHub.

Frequently asked questions

What does ER_GROUP_REPLICATION_STOP_APPLIER_THREAD_TIMEOUT mean?

It means the group replication applier thread was too busy to stop before the timeout ended. The thread is still running or waiting on a lock in the background.

Is data lost when mysql error 3095 occurs?

No data is lost when this timeout happens on your node. The error just warns you that the background worker has not finished its current task yet.

How can I avoid applier thread timeouts during maintenance?

Stop app write traffic to the cluster before you stop group replication on a node. Also check for long queries or active backups on the node before running the stop command.

The query runs. The emails stay hidden.