Skip to content

[Backport] Fix races in LookupSnapshotTaker, CoordinatorPollingBasicAuthenticato…#5360

Merged
jon-wei merged 1 commit intoapache:0.12.0from
jon-wei:backport-5344-to-0.12.0
Feb 7, 2018
Merged

[Backport] Fix races in LookupSnapshotTaker, CoordinatorPollingBasicAuthenticato…#5360
jon-wei merged 1 commit intoapache:0.12.0from
jon-wei:backport-5344-to-0.12.0

Conversation

@jon-wei
Copy link
Copy Markdown
Contributor

@jon-wei jon-wei commented Feb 7, 2018

Backport of #5344 to 0.12.0

…rCacheManager (apache#5344)

* Fix races in LookupSnapshotTaker, CoordinatorPollingBasicAuthenticatorCacheManager.

Both were susceptible to the following conditions:

1. Two JVMs on the same machine (perhaps two peons) could conflict by one reading while the
   other was writing, or by writing to the file at the same time.
2. One JVM could partially write a file, then crash, leaving a truncated file.

* Use StringUtils.format
@jon-wei jon-wei added this to the 0.12.0 milestone Feb 7, 2018
@jon-wei jon-wei merged commit 460ed49 into apache:0.12.0 Feb 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants