Comments (5)
@alexbereznikov It shows up when you try to seek in a file read stream. Just downloading directly to a file or copying to a memory stream works fine, but if you try to seek there's a chance depending on the file for it to seek to the wrong position. I noticed it when I was getting exceptions where it was trying to read more data from a chunk than actually existed.
Seeking to the beginning still works, seeking anywhere else in the file can fail if any chunks are smaller than max length, which for me is fairly common.
from litedb.
It also cause that The LiteFileStream can't be use for read documents with stream by ITextSharp or other document libs.
Hope this fix as soon as possible
from litedb.
On the write size, MemoryStream.Read isn't guaranteed to return the maximum available number of bytes. Currently, a chunk is written for every buffer read, so whenever it happens to read less then max chunk size bytes, it still writes a chunk. This could be fixed, though it would leave the read issue in place for all current databases.
from litedb.
@CSDSP @SpaceCheetah May I ask how this issue shows itself? We have some new db corruption issues after upgrading to v5.0.19 so just wanted to know whether your fix could help us :)
from litedb.
The Seek get error, so the file can not be suport enableRangeProcessing in MVC file result. How to fix it.!
from litedb.
Related Issues (20)
- [QUESTION] Generic searching on ILiteQueryable<T>
- Application crash at DropCollection HOT 2
- [BUG] Current transaction contains open cursors. Close cursors before run Commit() in 5.0.19 HOT 2
- Analogy Log Viewer For LiteDB HOT 1
- [BUG] Use EnterTransaction() before EnterLock(name) when update item HOT 1
- [BUG] Program freezes when I insert and then update the LiteDB in version 5.0.18 and 5.0.19 HOT 2
- [BUG] CVE is fixed in v5 but v4, we are not able to migrate yet
- Exception when Using ToLowerInvariant() in Query Expression HOT 1
- The LiteFileStream doesn't suport enableRangeProcessing in MVC file result. HOT 1
- [BUG] LockRecursionException thrown in very simple use case HOT 2
- [BUG] Unable to Retrieve Values with Index
- [QUESTION] querying documents having a subdocument property that is in a list HOT 1
- [BUG] Any/All requires simple parameter on left side
- Is LiteDB still being maintained? HOT 8
- Why Include() is not loading all nested items
- [BUG] "ENSURE ... Clear() cache" error and DB corruption when modifying collection during its enumeration
- Stop ads[BUG]
- FirstOrDefault causes transactions to be not removed HOT 1
- [BUG] Use EnterTransaction() before EnterLock HOT 2
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 litedb.