cshannon commented on PR #3151:
URL: https://github.com/apache/accumulo/pull/3151#issuecomment-1377509011
Another thing I thought of is have you tried simply catching
OutOfMemoryError if it happens? This is usually a bad idea since it can cause
weird behavior and is hard to catch since you don't have any idea where it may
happen. But in this specific case this may actually be a good use case where it
actually works and could be handled correctly if we limit the scope to just the
allocation of that buffer.
Something like:
```java
try {
this.value = new byte[bytes.length];
System.arraycopy(bytes, 0, this.value, 0, bytes.length);
} catch (OutOfMemoryError oome) {
//log and handle error with wait/retry, etc
}
```
--
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]