-
Notifications
You must be signed in to change notification settings - Fork 256
[query] remove Backend from HailContext
#15100
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
Conversation
bffda9c to
4763fac
Compare
a97c244 to
0e44399
Compare
0e44399 to
d7f2ad5
Compare
4763fac to
881f910
Compare
d7f2ad5 to
4a64e37
Compare
39ddc1e to
cc76fed
Compare
4a64e37 to
9e8b336
Compare
cc76fed to
7b9b10e
Compare
9e8b336 to
56259f0
Compare
7b9b10e to
0a1f47e
Compare
107d616 to
c11b3e0
Compare
0a1f47e to
046213b
Compare
c11b3e0 to
df823b1
Compare
046213b to
6924e88
Compare
6924e88 to
fb861eb
Compare
bb05f1b to
ceb567d
Compare
fb861eb to
5eb5b64
Compare
510c839 to
fa1b8dc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The end is in sight! Thanks for pushing on this.
fa1b8dc to
5fa1fbc
Compare
| // Currently required by `BackendUtils.collectDArray` | ||
| private[this] var instance: Backend = _ | ||
|
|
||
| def set(b: Backend): Unit = | ||
| synchronized { instance = b } | ||
|
|
||
| def get: Backend = | ||
| synchronized { | ||
| assert(instance != null) | ||
| instance | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Temporary before this is removed in #15107
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So close!

Changes the HailContext and Backend relationship by:
Removing the direct dependency of HailContext on Backend by:
Ensures proper backend lifecycle management:
This change cannot impact the Hail Batch instance as deployed by Broad Institute in GCP