php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #73788 session handler fail over not fully working
Submitted: 2016-12-19 16:46 UTC Modified: 2021-03-25 16:40 UTC
Votes:3
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: justin at webslice dot eu Assigned: cmb (profile)
Status: Closed Package: memcache (PECL)
PHP Version: 5.6.29 OS: Redhat 6.8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: justin at webslice dot eu
New email:
PHP Version: OS:

 

 [2016-12-19 16:46 UTC] justin at webslice dot eu
Description:
------------
Initially I have tested with the default php-5.3.3 RH php_mod version.
Also compiled version 3.0.8 of php_memcache for it.
Then I tested php56 with rh-php56-php-pecl-memcache-3.0.8-12.el6.x86_64, but got the same results.

I'm testing php_memcache with 2 memcache backends.
I have a script running that creates a session though php and than checks with memcached-tool if both memcached backends have this session.

I use repcached als memcached backend.

This works fine.
But when I stop one of the memcache backends I see that the server with memcached stopped still regularly is called to set the session and it is not retried on the online memcached service, meaning setting this session fails.

I tried tuning 'retry_interval' to see if it has impact, is does not.


session.save_handler = memcache
session.save_path = "tcp://10.1.11.154:11211?persistent=1&timeout=1&retry_interval=900,tcp://10.1.11.156:11211?persistent=1&timeout=1&retry_interval=900"
memcache.allow_failover=1
memcache.redundancy=1


Test script:
---------------
if needed let me know.

Expected result:
----------------
The remaining memcached backend should have the session set.

Actual result:
--------------
The remaining memcached backend does not have the session set.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-09 14:04 UTC] stefan at yellowfox dot net
Same here on Ubuntu 16.04 with memcache Version: 3.0.9-dev
 [2021-03-25 16:40 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2021-03-25 16:40 UTC] cmb@php.net
The official bug tracker for PECL/memcache is now at
<https://github.com/websupport-sk/pecl-memcache/issues>.

So, if this is still an issue with either of the current memcache
versions (4 or 8), please file an issue there.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 18:01:29 2024 UTC