Skip to content

Fix OverlappingFileLockException. #1536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
May 8, 2020
Merged

Fix OverlappingFileLockException. #1536

merged 24 commits into from
May 8, 2020

Conversation

ankitaj224
Copy link
Contributor

@ankitaj224 ankitaj224 commented May 8, 2020

Fix for #1519.

Background: We split the network calls to FIS Servers onto a separate thread. We need to persist the response received from the servers, we were accessing the data without acquiring the thread/process locks. Hence causing OFLE.

OverlappingFileLockException is thrown when an attempt to acquire a lock on a region of a file that overlaps a region already locked by the same Java virtual machine, or when another thread is already waiting to lock an overlapping region of the same file.

Also, updating version file to represent the correct version.

Access the data shared by multiple threads only after acquiring cross-process and multi-thread safe locks.
@ankitaj224 ankitaj224 requested review from vkryachko and andirayo May 8, 2020 17:49
@googlebot googlebot added the cla: yes Override cla label May 8, 2020
@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 8, 2020

Coverage Report

Affected SDKs

No changes between base commit (9eb88b1) and head commit (03cc38ba).

Test Logs

Notes

HTML coverage reports can be produced locally with ./gradlew <product>:checkCoverage.
Report files are located at <product-build-dir>/reports/jacoco/.

Head commit (03cc38ba) is created by Prow via merging commits: 9eb88b1 dc9cb81.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented May 8, 2020

Binary Size Report

Affected SDKs

No changes between base commit (9eb88b1) and head commit (03cc38ba).

Test Logs

Notes

Head commit (03cc38ba) is created by Prow via merging commits: 9eb88b1 dc9cb81.

@ankitaj224 ankitaj224 merged commit 081aade into master May 8, 2020
@ankitaj224 ankitaj224 deleted the oFLE branch May 8, 2020 22:17
@firebase firebase locked and limited conversation to collaborators Jun 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Override cla size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants