shanizta siddiqua created CASSANDRA-21268:
---------------------------------------------

             Summary: CEP-59: Four-phase shutdown with cleanup() self-drain   
and gracePeriodElapsed()
                 Key: CASSANDRA-21268
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21268
             Project: Apache Cassandra
          Issue Type: Sub-task
          Components: Messaging/Client
            Reporter: shanizta siddiqua
            Assignee: shanizta siddiqua


Replace the current poll-and-kill shutdown with a
  four-phase flow: SEAL (close bind channel, isRunning=false),
  SIGNAL (send event via ConnectionTracker.send()), DRAIN
  (self-drain via existing cleanup() callback in CQLMessageHandler),
   DEADLINE (force-close stragglers). The drain check: if
  (!isRunning && channelPayloadBytesInFlight == 0 &&
  gracePeriodElapsed()) channel.close(); The gracePeriodElapsed()
  condition prevents premature close of connections with
  network-latent requests still in the TCP pipe.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to