You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 7, 2026. It is now read-only.
The following transaction will wait indefinitely because the first query of the transaction will never actually be executed. All subsequent statements will however wait for a transaction id to be returned by this query.
DatabaseClientclient =
spanner.getDatabaseClient(DatabaseId.of("p", "i", "d"));
client.readWriteTransaction().run(newTransactionCallable<Void>() {
@OverridepublicVoidrun(TransactionContexttransaction) throwsException {
transaction.executeQuery("SELECT 1");
// Any RPC on the transaction after this will hang, including the Commit call that will// be executed when this method returns. So this transaction will never finish.returnnull;
}
});
The following transaction will wait indefinitely because the first query of the transaction will never actually be executed. All subsequent statements will however wait for a transaction id to be returned by this query.