nightdomain / jmemcache-daemon

Automatically exported from code.google.com/p/jmemcache-daemon
Apache License 2.0
0 stars 0 forks source link

testBinaryCompressed[0,1] (com.thimbleware.jmemcached.test.SpyMemcached23IntegrationTest) fails on MacOSX #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Check out revision 7955b41be5
2. Run `mvn clean test`

What is the expected output? What do you see instead?
All tests run without an error.
Two tests fail

What version of the product are you using? On what operating system?
1. Revision 7955b41be5
2. mvn -v
Apache Maven 2.1.0 (r755702; 2009-03-18 20:10:27+0100)
Java version: 1.6.0_13
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: de_DE, platform encoding: MacRoman
OS name: "mac os x" version: "10.5.7" arch: "x86_64" Family: "mac"

Please provide any additional information below.

--------------------------------------------------------------------------
-----
Test set: com.thimbleware.jmemcached.test.SpyMemcached23IntegrationTest
--------------------------------------------------------------------------
-----
Tests run: 16, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 8.69 sec <<< 
FAILURE!
testBinaryCompressed[0](com.thimbleware.jmemcached.test.SpyMemcached23Integratio
nTest)  
Time elapsed: 0.526 sec  <<< ERROR!
java.lang.OutOfMemoryError: Java heap space
    at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:232)
    at java.lang.StringCoding.encode(StringCoding.java:272)
    at java.lang.String.getBytes(String.java:947)
    at 
net.spy.memcached.transcoders.BaseSerializingTranscoder.encodeString(BaseSeriali
zingTranscod
er.java:171)
    at 
net.spy.memcached.transcoders.SerializingTranscoder.encode(SerializingTranscoder
.java:102)
    at net.spy.memcached.MemcachedClient.asyncStore(MemcachedClient.java:262)
    at net.spy.memcached.MemcachedClient.add(MemcachedClient.java:555)
    at 
com.thimbleware.jmemcached.test.SpyMemcached23IntegrationTest.testBinaryCompress
ed(SpyM
emcached23IntegrationTest.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java
:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
    at org.junit.runners.Suite.runChild(Suite.java:115)
    at org.junit.runners.Suite.runChild(Suite.java:23)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)

testBinaryCompressed[1](com.thimbleware.jmemcached.test.SpyMemcached23Integratio
nTest)  
Time elapsed: 0.617 sec  <<< ERROR!
java.lang.OutOfMemoryError: Java heap space
    at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:232)
    at java.lang.StringCoding.encode(StringCoding.java:272)
    at java.lang.String.getBytes(String.java:947)
    at 
net.spy.memcached.transcoders.BaseSerializingTranscoder.encodeString(BaseSeriali
zingTranscod
er.java:171)
    at 
net.spy.memcached.transcoders.SerializingTranscoder.encode(SerializingTranscoder
.java:102)
    at net.spy.memcached.MemcachedClient.asyncStore(MemcachedClient.java:262)
    at net.spy.memcached.MemcachedClient.add(MemcachedClient.java:555)
    at 
com.thimbleware.jmemcached.test.SpyMemcached23IntegrationTest.testBinaryCompress
ed(SpyM
emcached23IntegrationTest.java:108)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at 
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java
:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:73)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:46)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
    at org.junit.runners.Suite.runChild(Suite.java:115)
    at org.junit.runners.Suite.runChild(Suite.java:23)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
    at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:220)

Original issue reported on code.google.com by mfriedenhagen on 23 Jun 2009 at 8:57

GoogleCodeExporter commented 9 years ago
I ran the tests with MAVEN_OPTS="-Xmx512m", setting MAVEN_OPTS="-Xmx1024m" or 
MAVEN_OPTS="-
Xms512m -Xmx1024m" will not change the outcome.

Original comment by mfriedenhagen on 23 Jun 2009 at 9:03

GoogleCodeExporter commented 9 years ago

Original comment by ryan.daum on 25 Jun 2009 at 12:36

GoogleCodeExporter commented 9 years ago
I'll try this on my Mac at work tomorrow and see if I can replicate.

Original comment by ryan.daum on 25 Jun 2009 at 2:13

GoogleCodeExporter commented 9 years ago
I'm able to replicate this at work, but the question I have is whether this 
also occurs on binary memcached? Is it a 
problem inside spymemcached as opposed to jmemcached?

Original comment by ryan.daum on 25 Jun 2009 at 1:38

GoogleCodeExporter commented 9 years ago
Hello Ryan,

I could replicate this on Linux and Windows as well, see: 
http://zeibig.net:20080/job/jmemcache-
daemon/12/testReport/com.thimbleware.jmemcached.test/SpyMemcached23IntegrationTe
st/testBinaryCompres
sed_0_/

Best Regards
Mirko

Original comment by mfriedenhagen on 25 Jun 2009 at 8:08

GoogleCodeExporter commented 9 years ago
I'm having a hard time tracking this down - the traceback seems to point the 
finger
at spymemcached, but I'm a bit baffled why this does not occur on my Linux
configuration at home.

Original comment by ryan.daum on 2 Jul 2009 at 1:04

GoogleCodeExporter commented 9 years ago
I've reduced the size of the compressed payload for this test. I think it just 
is
literally too big for heap space in certain configurations, and spymemcached 
simply
can't compress it without running out of heap.

Let me know if you still have issues.

Original comment by ryan.daum on 2 Jul 2009 at 1:59

GoogleCodeExporter commented 9 years ago

Original comment by ryan.daum on 2 Jul 2009 at 1:59

GoogleCodeExporter commented 9 years ago
Hello Ryan, this seems to fix the errors.
Thanks
Mirko

Original comment by mfriedenhagen on 6 Jul 2009 at 7:19