Error 8040

Stable Queue Manager (SQM) attempted to awaken a Distributor thread that is actually up.

Symptom

This error message is reported in the Replication Server error log:

E. 2011/03/28 06:27:44. ERROR #8040 SQM(163:0 TRADEDS.tradedb) - tr/mdext.c(2066) 
MD failed to wake someone waiting for flush from source=TRADE_REP.

Explanation

Indicates that the SQM Writer has attempted to awaken the Distributor, but the Distributor was not asleep. If the Distributor threads are up and replication is proceeding normally, this message can be considered informational.

Solution

If the Distributor threads are down, resume them.