Comments (4)
Exception in thread "Thread-3" Exception in thread "Thread-4" com.squareup.tape.FileException: Failed to peek.
at com.squareup.tape.FileObjectQueue.peek(FileObjectQueue.java:59)
at com.example.FileQueueConsumer.run(FileQueueConsumer.java:19)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.StreamCorruptedException: invalid type code: AC
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1381)
at java.io.ObjectInputStream.readUnshared(ObjectInputStream.java:463)
at com.squareup.tape.SerializedConverter.deserialize(SerializedConverter.java:27)
at com.squareup.tape.SerializedConverter.from(SerializedConverter.java:37)
at com.squareup.tape.SerializedConverter.from(SerializedConverter.java:20)
at com.squareup.tape.FileObjectQueue.peek(FileObjectQueue.java:57)
... 3 more
Here is what I did?
Create producer1, producer2,consumer1,consumer2 all on same FileObjectQueue. I believe there is some issue in multithreading handling.
Looks relevant to this
http://stackoverflow.com/questions/3182240/java-io-streamcorruptedexception-invalid-type-code-ac
from tape.
FileObjectQueue is not thread safe.
from tape.
Is there a threadsafe file based queue in the current api?
from tape.
No
On Sat, Aug 6, 2016, 9:51 AM Rohit Verma [email protected] wrote:
Is there a threadsafe file based queue in the current api?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#87 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAEEEQuG8KCB5YO4S626x0UUjG5YRgbfks5qdJFJgaJpZM4JeJwv
.
from tape.
Related Issues (20)
- Is it thread safe? HOT 3
- Android module for android specific logic HOT 2
- A question about the evolution of this repository HOT 1
- Read/Write Benchmarks HOT 1
- Application not responding after adding an entry to the queue HOT 2
- Batched remove() - Using remove() less frequently than peek() HOT 6
- Remove java.io.OutputStream and the like from API?
- BlockingQueue implementation and other interfaces HOT 5
- Wrap QueueFile around an existing File? HOT 6
- Support addAll(Collection<byte[]>) for better performance with small records HOT 2
- Windows non-sync writes HOT 1
- Fail to read queue.
- Leak of file descriptor when creating QueueFile from corrupted queue file. HOT 1
- Not compatible with Gradle 5.1.1 HOT 6
- Why so slow?
- QueueFileTest.testSaturatedFileExpansionMovesElements hanged HOT 3
- Issues while writing and reading from different daemons with flock
- Consider DequeFile HOT 1
- Fail to Remove from FileObjectQueue
- Time to mark as deprecated? HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tape.