The operation is blocked until a currently running operation
completes and releases its Spanner session. If the operation is
synchronous, the thread will be blocked until it can complete.
If the operation is asynchronous, it will be completed on the
threadpool when resources become available.
Fail
The operation will fail with an exception with the ErrorCode set to ResourceExhausted.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003eResourcesExhaustedBehavior\u003c/code\u003e enum within the \u003ccode\u003eGoogle.Cloud.Spanner.V1\u003c/code\u003e namespace, which manages actions when \u003ccode\u003eMaximumActiveSessions\u003c/code\u003e is reached.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eResourcesExhaustedBehavior\u003c/code\u003e enum has two possible values: \u003ccode\u003eBlock\u003c/code\u003e, which pauses the operation until a session frees up, and \u003ccode\u003eFail\u003c/code\u003e, which immediately throws an exception.\u003c/p\u003e\n"],["\u003cp\u003eThe page provides a version history of the \u003ccode\u003eResourcesExhaustedBehavior\u003c/code\u003e, ranging from version \u003ccode\u003e5.0.0-beta05\u003c/code\u003e (latest) down to version \u003ccode\u003e3.5.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe latest stable release version featured here is \u003ccode\u003e4.6.0\u003c/code\u003e, with the most recent release overall being a beta \u003ccode\u003e5.0.0-beta05\u003c/code\u003e, and version \u003ccode\u003e3.12.0\u003c/code\u003e being the current version on display.\u003c/p\u003e\n"]]],[],null,[]]