You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some Spark jobs, we see a substantial scheduler delay. I assume it happens in TaskSetManager when Spark serializes Iceberg ReadTask. The latter contains a couple of large strings (if you have a lot of columns) and an instance of FileIO (which can contain a full Hadoop conf).
As a short-term solution, we can broadcast EncryptionManager and FileIO in IcebergSource. Then Reader and ReadTask can store references to the broadcasted values and fetch actual ones in createPartitionReader while creating TaskDataReader. This seems to solve the scheduler delay issue.
Activity
aokolnychyi commentedon Oct 17, 2019
I can confirm the issue is resolved if we avoid serializing
FileIO. The main question is how to achieve that with minimum changes.aokolnychyi commentedon Oct 17, 2019
As a short-term solution, we can broadcast
EncryptionManagerandFileIOinIcebergSource. ThenReaderandReadTaskcan store references to the broadcasted values and fetch actual ones increatePartitionReaderwhile creatingTaskDataReader. This seems to solve the scheduler delay issue.@rdblue thoughts?
rdblue commentedon Oct 18, 2019
Using a broadcast sounds good to me for now.
Can you open a PR for this?
aokolnychyi commentedon Oct 18, 2019
Will open a PR today