Giter VIP home page Giter VIP logo

Comments (5)

mdouglass avatar mdouglass commented on June 13, 2024

redis 7.0 behaves the same as redis 6.2, the error only appears in redis 7.2. For reference, these are the redis versions (though I'm just pulling 7.0 and 7.2 tags from docker).

good

redis_version:7.0.13
redis_build_id:8a3b90fcd3d0bc72
os:Linux 6.7.6-200.fc39.x86_64 x86_64

bad

redis_version:7.2.4
redis_build_id:30468499a8bc54fe
os:Linux 6.7.6-200.fc39.x86_64 x86_64

from redis.

sundb avatar sundb commented on June 13, 2024

@mdouglass thanks, ths is a bug introducted by #10587.
fpconv_dtoa uses exponential expressions to convert 1000000000 (2e+8) and lead to convert failed in getLongLongFromObjectOrReply().
do you wanna make a PR to fix it?

from redis.

enjoy-binbin avatar enjoy-binbin commented on June 13, 2024

yes, it is a bug introduced in #10587. so it looks like we should revert the changes in script_lua.c in #10587? or should we find a way to support converting it in string2ll (i feel it is a bit too much)

from redis.

sundb avatar sundb commented on June 13, 2024

@enjoy-binbin i don't like to put it in string2ll.
may be we can check if the lua_Number is a integer by (long long)num == num, then
decide whether to use fpconv_dtoa or ll2string.

from redis.

mdouglass avatar mdouglass commented on June 13, 2024

I think that was enough guidance that I was able to figure out what to do. Let me know if there is anything else that I can do to make this work better.

from redis.

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.