googleapis / java-spanner

Apache License 2.0
64 stars 114 forks source link

fix: make sure commitAsync always finishes #3216

Closed olavloite closed 3 months ago

olavloite commented 3 months ago

The future that is returned by commitAsync() seems to never finish in some cases. It is unknown exactly what causes it, and this change adds a number of safety precautions that should ensure that the future always returns a result eventually. This is always easier to debug and handle than a future that never returns a value.