Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.io.IOException: error=26, Text file busy #85

Closed
francisdb opened this issue May 10, 2017 · 3 comments
Closed

java.io.IOException: error=26, Text file busy #85

francisdb opened this issue May 10, 2017 · 3 comments

Comments

@francisdb
Copy link

francisdb commented May 10, 2017

We are using embeddedredis in our (parallel) tests and we recently start seeing these errors on our CI machine.

I guess some file handle is not closed in time?

redis.embedded.exceptions.EmbeddedRedisException: Failed to start Redis instance
Stacktrace

sbt.ForkMain$ForkError: redis.embedded.exceptions.EmbeddedRedisException: Failed to start Redis instance
	at redis.embedded.AbstractRedisInstance.start(AbstractRedisInstance.java:42)
	at redis.embedded.RedisServer.start(RedisServer.java:9)
	at io.waylay.cache.redis.WithEmbeddedRedis.setUp(WithEmbeddedRedis.scala:51)
	at io.waylay.cache.redis.WithEmbeddedRedis.around(WithEmbeddedRedis.scala:70)
	at io.waylay.cache.redis.WithEmbeddedRedis.delayedInit(WithEmbeddedRedis.scala:35)
	at io.waylay.cache.redis.RedisCacheSpec$$anonfun$1$$anonfun$apply$3$$anon$3.<init>(RedisCacheSpec.scala:23)
	at io.waylay.cache.redis.RedisCacheSpec$$anonfun$1$$anonfun$apply$3.apply(RedisCacheSpec.scala:23)
	at io.waylay.cache.redis.RedisCacheSpec$$anonfun$1$$anonfun$apply$3.apply(RedisCacheSpec.scala:23)
Caused by: sbt.ForkMain$ForkError: java.io.IOException: Cannot run program "/tmp/1494421531552-0/redis-server-2.8.19" (in directory "/tmp/1494421531552-0"): error=26, Text file busy
	at redis.embedded.AbstractRedisInstance.start(AbstractRedisInstance.java:37)
	... 7 more
Caused by: sbt.ForkMain$ForkError: java.io.IOException: error=26, Text file busy
	... 8 more
@francisdb
Copy link
Author

This is probably caused by https://bugs.openjdk.java.net/browse/JDK-8068370

@francisdb
Copy link
Author

And another similar issue:
joelittlejohn/embedmongo-maven-plugin#28

@francisdb
Copy link
Author

adding sequential in our specs2 tests helped as workaround, closing this as it's probably not related to embedded-redis

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant