open-vault/builtin
Alexander Scheel 1f21afba21
Fix race in PKI's runUnifiedTransfer (#20701)
* Fix race in PKI's runUnifiedTransfer

During this race, we'll sometimes start (or fail to start) an additional
unified transfer if the updated last run timestamp was written at the
same time as another thread was reading it.

Instead, delay this check until we're holding the CAS guard; this will
occasionally result in more messages saying that an existing process is
already running, but otherwise shouldn't impact the functionality at
all.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add changelog entry

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

---------

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2023-05-22 18:31:19 +00:00
..
audit adding copyright header (#19555) 2023-03-15 09:00:52 -07:00
credential openapi: A few fixes for display attributes (#20549) 2023-05-11 17:20:11 -04:00
logical Fix race in PKI's runUnifiedTransfer (#20701) 2023-05-22 18:31:19 +00:00
plugin Simplify tracking of external plugins (#20009) 2023-04-12 18:34:35 +01:00