SeanCherngTW opened a new issue, #426: URL: https://github.com/apache/datasketches-java/issues/426
Hi all, I am using `datasketches-java 2.0.0` I encounter some ArrayIndexOutOfBounds and NullPointerException when using ReversePurgeItemHashMap In my use case, my system is calling `freq.getLowerBound(term) // freq is ItemsSketch` with high qps every 5 minutes. Then, when reaching line 332 https://github.com/apache/datasketches-java/blob/7cda6ed20ca63ff1ff7164d9c7af641cace2deed/src/main/java/org/apache/datasketches/frequencies/ReversePurgeItemHashMap.java#L329-L336 I occasionally (~1 time/day) encounter the following error: ``` java.lang.ArrayIndexOutOfBoundsException: Index 63717 out of bounds for length 32768 at org.apache.datasketches.frequencies.ReversePurgeItemHashMap.hashProbe(ReversePurgeItemHashMap.java:332) at org.apache.datasketches.frequencies.ReversePurgeItemHashMap.get(ReversePurgeItemHashMap.java:85) at org.apache.datasketches.frequencies.ItemsSketch.getLowerBound(ItemsSketch.java:346) ``` or ``` java.lang.NullPointerException: Cannot invoke "Object.equals(Object)" because "this.keys[probe]" is null at org.apache.datasketches.frequencies.ReversePurgeItemHashMap.hashProbe(ReversePurgeItemHashMap.java:332) at org.apache.datasketches.frequencies.ReversePurgeItemHashMap.get(ReversePurgeItemHashMap.java:85) at org.apache.datasketches.frequencies.ItemsSketch.getLowerBound(ItemsSketch.java:346) ``` This error is unable to be reproduced, so I apologize that I cannot provide more context now. Do you have any idea on this error or have you encountered a similar problem before? thank you -- 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]
