Add a QUIC_BUG to ensure that whenever an ACK cannot be written, the writer is write blocked.  Protected by existing flag gfe2_reloadable_flag_quic_use_uber_loss_algorithm.

gfe-relnote: n/a (Add a QUIC_BUG)
PiperOrigin-RevId: 239981503
Change-Id: Ic53a7e7ff8abecc9284edd6b9a6acb5b335dbb4d
diff --git a/quic/core/quic_connection.cc b/quic/core/quic_connection.cc
index cdfef6f..c27d1cb 100644
--- a/quic/core/quic_connection.cc
+++ b/quic/core/quic_connection.cc
@@ -3941,6 +3941,8 @@
     const bool flushed = packet_generator_.FlushAckFrame(frames);
     if (!flushed) {
       // Connection is write blocked.
+      QUIC_BUG_IF(!writer_->IsWriteBlocked())
+          << "Writer not blocked, but ACK not flushed for packet space:" << i;
       break;
     }
     ResetAckStates();