--
Ticket URL: <https://code.djangoproject.com/ticket/16358>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: ccrisan (added)
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/16358#comment:1>
* status: new => assigned
* owner: nobody => anonymous
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/16358#comment:2>
* has_patch: 0 => 1
Comment:
I've attached a small simple patch for memcached.py. I'm not sure if this
is the right thing to to in this case. What should be a cache's behavior
in case of failure to set a key, anyways?
--
Ticket URL: <https://code.djangoproject.com/ticket/16358#comment:3>
* needs_better_patch: 0 => 1
* version: 1.3 => SVN
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/16358#comment:4>
Comment (by aaugustin):
This makes sense, could you:
- add a test case in `tests/regressiontests/cache/tests.py`?
- generate a single patch from the root of the Django repository (or make
a pull request)?
--
Ticket URL: <https://code.djangoproject.com/ticket/16358#comment:5>
* owner: anonymous => manfre
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
Comment:
Added a test and a pull request.
--
Ticket URL: <https://code.djangoproject.com/ticket/16358#comment:6>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/16358#comment:7>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"bc8abe36ba5508fe788f6d49a26749268d368583"]:
{{{
#!CommitTicketReference repository=""
revision="bc8abe36ba5508fe788f6d49a26749268d368583"
Fixed #16358 - Made memcache backend delete old value on a failure to set.
Default Memcached configuration allows for a maximum object of 1MB and
will fail to set the key if it is too large. The key will be deleted from
memcached if it fails to be set. This is needed to avoid an issue with
cache_db session backend using the old value stored in memcached, instead
of the newer value stored in the database.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/16358#comment:8>
Comment (by Michael Manfre <mmanfre@…>):
In [changeset:"a305695f28cb15165a19c3871aec878a230a5105"]:
{{{
#!CommitTicketReference repository=""
revision="a305695f28cb15165a19c3871aec878a230a5105"
Merge pull request #3481 from manfre/ticket-16358
Fixed #16358 - Made memcache backend delete old value on a failure to set.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/16358#comment:9>