Skip to content

CBL-8161 : Restore the close database timeout waiting for active processes#484

Merged
pasin merged 2 commits into
release/4.0from
CBL-8161-Restore-Timeout
May 19, 2026
Merged

CBL-8161 : Restore the close database timeout waiting for active processes#484
pasin merged 2 commits into
release/4.0from
CBL-8161-Restore-Timeout

Conversation

@pasin
Copy link
Copy Markdown
Collaborator

@pasin pasin commented May 18, 2026

  • The previous fix reduce the timeout waiting for the active processes to 10 seconds which is too low (e.g. WebSocket close timeout is 9 seconds). Restore the timeout back to 30 seconds.

  • Restore the previous logic that will try to close the database anyway even though the active processes are not all finished.

  • Noted that the original code before the fix has a bug that the dabase close only retries once after getting BUSY error but wait for total 30 seconds then timeout after.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 18, 2026

This is a release branch and commits are restricted.

Please confirm this PR is one of the following:

  • A response to a customer ask
  • A change per our security policy
  • A non-functional change (i.e. changes needed for building an older version)
  • A change that has been granted an exception (please comment)

@pasin
Copy link
Copy Markdown
Collaborator Author

pasin commented May 18, 2026

Fixed a test blocker reported by QE.

@pasin pasin force-pushed the CBL-8161-Restore-Timeout branch from 917fecf to 282d14f Compare May 18, 2026 20:24
@couchbase couchbase deleted a comment from github-actions Bot May 18, 2026
@pasin pasin force-pushed the CBL-8161-Restore-Timeout branch 2 times, most recently from 4fd2504 to 19b77ce Compare May 18, 2026 21:08
…esses

* The previous fix reduce the timeout waiting for the active processes to 10 seconds which is too low (e.g. WebSocket close timeout is 9 seconds). Restore the timeout back to 30 seconds.

* Restore the previous logic that will try to close the database anyway even though the active processes are not all finished.

* Noted that the original code before the fix has a bug that the dabase close only retries once after getting BUSY error but wait for total 30 seconds then timeout after.
@pasin pasin force-pushed the CBL-8161-Restore-Timeout branch from 19b77ce to 2d4f8f6 Compare May 18, 2026 21:09
@pasin pasin changed the title CBL-8161 : Restore the close database timeout CBL-8161 : Restore the close database timeout waiting for active processes May 18, 2026
@couchbase couchbase deleted a comment from github-actions Bot May 18, 2026
@couchbase couchbase deleted a comment from github-actions Bot May 18, 2026
@couchbase couchbase deleted a comment from github-actions Bot May 18, 2026
@pasin pasin requested review from borrrden and jianminzhao May 18, 2026 21:14
Comment thread common/main/java/com/couchbase/lite/AbstractDatabase.java
@pasin pasin merged commit 6939398 into release/4.0 May 19, 2026
@pasin pasin deleted the CBL-8161-Restore-Timeout branch May 19, 2026 00:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants