[
https://issues.apache.org/jira/browse/FLINK-35169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17839463#comment-17839463
]
Weijie Guo edited comment on FLINK-35169 at 4/23/24 5:17 AM:
-------------------------------------------------------------
master via 68a84fd02fb8e288ff7605073f55834468dcf53a.
1.18 via 1b3849c196c25784dc662398385e0b30f2c23a03.
1.19 via 6045bd8bf935b12c8056e98945e054511da9c251.
was (Author: weijie guo):
master via 68a84fd02fb8e288ff7605073f55834468dcf53a.
> Recycle buffers to freeSegments before releasing data buffer for sort
> accumulator
> ---------------------------------------------------------------------------------
>
> Key: FLINK-35169
> URL: https://issues.apache.org/jira/browse/FLINK-35169
> Project: Flink
> Issue Type: Bug
> Components: Runtime / Network
> Affects Versions: 1.20.0
> Reporter: Yuxin Tan
> Assignee: Yuxin Tan
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.20.0
>
>
> When using sortBufferAccumulator, we should recycle the buffers to
> freeSegments before releasing the data buffer. The reason is that when
> getting buffers from the DataBuffer, it may require more buffers than the
> current quantity available in freeSegments. Consequently, to ensure adequate
> buffers from DataBuffer, the flushed and recycled buffers should also be
> added to freeSegments for reuse.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)