EnricoMi commented on PR #1522:
URL:
https://github.com/apache/incubator-uniffle/pull/1522#issuecomment-1938197892
What if we would make sure that `this.buffer.release()` is called at most
once?
```
private boolean released = false;
public synchronized void release() {
if (! released && this.buffer != null) {
this.buffer.release();
released = true;
}
}
```
Then we wouldn't need to add logic that requires internal knowledge of
`this.buffer.release()`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]