Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
Security Level: Public
-
None
-
8
Description
On database close Sync Gateway will close the underlying database connection, but doesn't automatically close BlipSyncContexts using that database. Any subsequent requests made by clients using that connection that attempt to use the database will receive a 500 error like:
2024-02-28T16:13:01.477-08:00 [WRN] c:[6eb873e7] db:mydb CheckProposedRev("docid") --> *errors.withStack SubdocGetBodyAndXattr <ud>username</ud>: connection shut down -- db.(*DatabaseCollection).CheckProposedRev() at crud.go:2530
|
This relies on clients to disconnect and reconnect in response to the 500 error. It would be preferable for SGW to explicitly close the BlipSyncContext.