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

TTL value for key overflows, shows negative values #3486

Closed
MattKotsenas opened this issue Oct 1, 2015 · 0 comments
Closed

TTL value for key overflows, shows negative values #3486

MattKotsenas opened this issue Oct 1, 2015 · 0 comments
Labels
Milestone

Comments

@MattKotsenas
Copy link

Version: 0.8.0.3841
Environment: Windows 10 x64
Redis Server Version: 2.8.19

Steps to reproduce:

  1. In redis server run SETEX mykey 2147483667 myvalue (note that the EXPIRES value is larger than INT_MAX)
  2. In Redis Desktop Manager right-click the db and hit 'Refresh'
  3. In Redis Desktop Manager inspect the TTL on key mykey

Expected result:

  • TTL is a large positive value

Actual Result:

  • TTL is a large negative value
  • As you refresh the key in Redis Desktop Manager, the TTL moves towards INT_MIN
  • Once enough time has passed (TTL is less than INT_MAX), the TTL shows correctly

Observations:

  • I see here that TTL is an int
  • At least on my machine, redis server appears to accept TTL values up to _I64_MAX (9223372036854775807)
@uglide uglide added the bug label Oct 4, 2015
@uglide uglide added this to the 0.8.1 milestone Oct 4, 2015
@uglide uglide modified the milestones: 0.8.0-Release, 0.8.1 Oct 9, 2015
@uglide uglide closed this as completed Oct 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants