davisusanibar commented on code in PR #37723:
URL: https://github.com/apache/arrow/pull/37723#discussion_r1434665050
##########
java/memory/memory-core/src/main/java/org/apache/arrow/memory/BufferLedger.java:
##########
@@ -178,7 +179,7 @@ public void retain() {
@Override
public void retain(int increment) {
Preconditions.checkArgument(increment > 0, "retain(%s) argument is not
positive", increment);
- if (BaseAllocator.DEBUG) {
+ if (BaseAllocator.DEBUG && historicalLog != null) {
Review Comment:
Thanks, changed.
##########
java/memory/memory-core/src/main/java/org/apache/arrow/memory/BufferLedger.java:
##########
@@ -306,7 +311,7 @@ ArrowBuf newArrowBuf(final long length, final BufferManager
manager) {
@Override
public ArrowBuf retain(final ArrowBuf srcBuffer, BufferAllocator target) {
- if (BaseAllocator.DEBUG) {
+ if (BaseAllocator.DEBUG && historicalLog != null) {
Review Comment:
Thanks, changed.
--
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]