-
Notifications
You must be signed in to change notification settings - Fork 360
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
Migration to CE3 and other major dependencies upgrade #3389
Conversation
b7a1ea7
to
9f9ea17
Compare
397d191
to
e9ffc44
Compare
|
||
object IORuntimeTransient extends Serializable { | ||
val ThreadsNumber: Int = Runtime.getRuntime.availableProcessors | ||
@transient lazy val IORuntime: unsafe.IORuntime = unsafe.IORuntime.global |
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.
We still need a companion object to be sure the runtime init is a @transient lazy val
, to ensure that it is not serialized and the instance is created per machine.
b82e0ed
to
301c401
Compare
@@ -74,7 +72,7 @@ object SaveToS3 { | |||
rdd.foreachPartition { partition => | |||
val s3client = s3Client | |||
val requests: fs2.Stream[IO, (PutObjectRequest, RequestBody)] = | |||
fs2.Stream.fromIterator[IO]( | |||
fs2.Stream.fromBlockingIterator[IO]( |
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.
By the S3AsyncClient
usage we may eliminate a lot of blocking
calls, simplify the code, and make it more resilient, see #3467
a4372ef
to
f8c90c0
Compare
If someone has any time / will to help with CQs that is very much appreciated :D |
I think I'm going to merge this in, and later handle CQs. It's a pretty major change so lets base all the new work on top of it.
|
FYI IPZilla is deprecated. See https://gitlab.eclipse.org/eclipsefdn/emo-team/iplab/-/wikis/Requesting-a-Review |
Overview
This PR migrates GT to:
It is a breaking change, but we may release it as GT 3.7.0 🤷♂️
In CE3 we have a concept of
IORuntime
, which incapsulates threadpools for blocking, and non blocking computations. There is no need in passing a confusingExecutionContext
around anymore.Closes #3395 and a small step towards #3388
Closes #3463
Closes #3382
I decided to bump all major dependencies in terms of this PR, including Cassandra and JTS.
CQs
Checklist