Skip to content

hset can not update value, sometimes #1921

Closed

Description

@reboomc

version: 2.8.8
client: redis-cli
os: ubuntu 12.04 server lts

memory status:

total used free shared buffers cached
Mem: 1978 1372 606 0 221 484
-/+ buffers/cache: 666 1312
Swap: 4375 0 4375

recent log:

[7761] 08 Aug 12:50:44.072 * RDB: 0 MB of memory used by copy-on-write
[3081] 08 Aug 12:50:44.127 * Background saving terminated with success
[3081] 08 Aug 12:55:45.060 * 10 changes in 300 seconds. Saving...
[3081] 08 Aug 12:55:45.060 * Background saving started by pid 7797
[7797] 08 Aug 12:55:45.113 * DB saved on disk
[7797] 08 Aug 12:55:45.113 * RDB: 0 MB of memory used by copy-on-write
[3081] 08 Aug 12:55:45.160 * Background saving terminated with success
[3081] 08 Aug 13:03:02.193 * 10 changes in 300 seconds. Saving...
[3081] 08 Aug 13:03:02.193 * Background saving started by pid 7806
[7806] 08 Aug 13:03:02.268 * DB saved on disk
[7806] 08 Aug 13:03:02.268 * RDB: 0 MB of memory used by copy-on-write
[3081] 08 Aug 13:03:02.293 * Background saving terminated with success

Activity

  1. badboy commented on Aug 8, 2014

    @badboy
    Contributor

    Can you describe your problem a little bit more? It's not clear what happens and what should happen. The log says nothing and the memory usage looks normal too

  2. reboomc commented on Aug 8, 2014

    @reboomc
    Author

    @badboy

    Thanks for your reply.
    my scenario looks like:

    HGET name key
    old value

    and i need update the "old value" to "new value"

    HSET name key new_value
    0

    however HSET executed:

    HGET name key
    old value

    still "old value"

    Thanks.

  3. badboy commented on Aug 8, 2014

    @badboy
    Contributor

    Both HSET and HGET on the same server?

  4. reboomc commented on Aug 8, 2014

    @reboomc
    Author

    @badboy

    yes, the same server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions