Giter Club home page Giter Club logo

Comments (8)

tazija avatar tazija commented on June 23, 2024

Feature.ENABLE_STREAMING is on

from bson4jackson.

tazija avatar tazija commented on June 23, 2024

The BSON document which I'm trying to produce is of several gigabytes size.
Looks like DynamicOutputBuffer._position integer value overflowed its maximum value of Integer.MAX_VALUE after reaching 2147483647 bytes and became negative. Consequently it's not possible to track the offset position in a buffer greater than 2 gigabytes.

from bson4jackson.

tazija avatar tazija commented on June 23, 2024

I took a look at BsonGenerator & BsonParser, they also use integer type arithmetic for referring offset & position

from bson4jackson.

tazija avatar tazija commented on June 23, 2024

For the sake of the priority of the issue I've adjusted bson4jackson classes to use long arithmetic. If you would like to convey them back to the repo the changes are available at the https://github.com/nuodb/migration-tools/tree/master/core/src/main/java/de/undercouch/bson4jackson.

Best Regards, Sergey.

from bson4jackson.

michel-kraemer avatar michel-kraemer commented on June 23, 2024

Thank you very much for your work!

I would have preferred a pull request though, since I cannot see what you changed exactly. Reformatting the files destroyed the possibility to create a reasonable diff.

So, if you want the change to be included in bson4jackson please send me a pull request and please do not format the files.

Thanks!
Michel

from bson4jackson.

michel-kraemer avatar michel-kraemer commented on June 23, 2024

I'm about to release a new version of bson4jackson. If you want your change to be included please send me a proper pull request. Thanks a lot!

I will close this issue if I don't receive an answer until Monday, 29th.

Cheers,
Michel

from bson4jackson.

michel-kraemer avatar michel-kraemer commented on June 23, 2024

I will close this issue due to no activity.

from bson4jackson.

jartu avatar jartu commented on June 23, 2024

Same problem here. This problem makes it impossible to use this library for large structures/files.

from bson4jackson.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.