churromorales commented on PR #12408:
URL: https://github.com/apache/druid/pull/12408#issuecomment-1140354161

   Is this issue with the closer not being thread safe?  And everyone sharing 
the same one?
   
   > On May 28, 2022, at 5:59 PM, Clint Wylie ***@***.***> wrote:
   > 
   > 
   > oops, I think there is maybe an issue with something
   > 
   > running locally Im seeing
   > 
   > [WARNING] 
org.apache.druid.segment.data.CompressedVSizeColumnarIntsSupplierTest.testConcurrency[5:
 compression=zstd, byteOrder=LITTLE_ENDIAN]
   > [ERROR]   Run 1: 
CompressedVSizeColumnarIntsSupplierTest>CompressionStrategyTest.testConcurrency:150
 » Execution java.lang.ArrayIndexOutOfBoundsException: Index 54 out of bounds 
for length 54
   > [ERROR]   Run 2: 
CompressedVSizeColumnarIntsSupplierTest>CompressionStrategyTest.closeCloser:88 
» ArrayIndexOutOfBounds Index 70 out of bounds for length 54
   > [INFO]   Run 3: PASS
   > [ERROR] Tests run: 65, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 
5.832 s <<< FAILURE! - in 
org.apache.druid.segment.data.CompressedVSizeColumnarIntsSupplierTest
   > [ERROR] 
org.apache.druid.segment.data.CompressedVSizeColumnarIntsSupplierTest.testConcurrency[5:
 compression=zstd, byteOrder=LITTLE_ENDIAN]  Time elapsed: 0.007 s  <<< ERROR!
   > java.util.concurrent.ExecutionException: 
java.lang.ArrayIndexOutOfBoundsException: Index 54 out of bounds for length 54
   >    at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122)
   >    at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191)
   >    at 
org.apache.druid.segment.data.CompressionStrategyTest.testConcurrency(CompressionStrategyTest.java:150)
   >    at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   >    at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   >    at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   >    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   >    at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
   >    at 
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
   >    at 
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
   >    at 
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
   >    at 
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:299)
   >    at 
org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:293)
   >    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   >    at java.base/java.lang.Thread.run(Thread.java:829)
   > Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 54 out of 
bounds for length 54
   >    at java.base/java.util.ArrayDeque.grow(ArrayDeque.java:159)
   >    at java.base/java.util.ArrayDeque.addFirst(ArrayDeque.java:291)
   >    at org.apache.druid.java.util.common.io.Closer.register(Closer.java:127)
   >    at 
org.apache.druid.segment.data.CompressionStrategy$ZstdCompressor.allocateOutBuffer(CompressionStrategy.java:379)
   >    at 
org.apache.druid.segment.data.CompressionStrategyTest.lambda$testConcurrency$1(CompressionStrategyTest.java:133)
   >    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
   >    at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
   >    at 
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
   >    ... 1 more
   > [ERROR] 
org.apache.druid.segment.data.CompressedVSizeColumnarIntsSupplierTest.testConcurrency[5:
 compression=zstd, byteOrder=LITTLE_ENDIAN]  Time elapsed: 0.007 s  <<< ERROR!
   > java.lang.ArrayIndexOutOfBoundsException: Index 70 out of bounds for 
length 54
   >    at java.base/java.util.ArrayDeque.elementAt(ArrayDeque.java:260)
   >    at java.base/java.util.ArrayDeque.pollFirst(ArrayDeque.java:380)
   >    at java.base/java.util.ArrayDeque.removeFirst(ArrayDeque.java:361)
   >    at org.apache.druid.java.util.common.io.Closer.close(Closer.java:180)
   >    at 
org.apache.druid.segment.data.CompressionStrategyTest.closeCloser(CompressionStrategyTest.java:88)
   > ...
   > Looking into it.
   > 
   > —
   > Reply to this email directly, view it on GitHub, or unsubscribe.
   > You are receiving this because you were mentioned.
   


-- 
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]

Reply via email to