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

Bug #64144: Process failover requests #2

Closed
wants to merge 138 commits into from
Closed

Conversation

bjaspan
Copy link

@bjaspan bjaspan commented Nov 7, 2014

See the comments at https://bugs.php.net/bug.php?id=64144 for an explanation of why this is necessary. Failover get requests are added to a pool's pending queue, but then are not run until the next memcache API call, by which time the location into which the return value is written is no longer valid. I'm not sure how/if failover get requests have ever worked.

However, I am far from 100% certain that this patch is right, since I do not have a complete understanding of the code.

SVN Migration and others added 30 commits May 3, 2007 04:39
UDP support for get requests
Support for pipelined requests
Multi set/delete/increment/decrement
Improved the benchmark script somewhat
Proper handling of UDP packet loss (reschedule to tcp)
Proper handling of request retries
Handle network timeouts in select()
Use STREAM_OPEN_PERSISTENT if persistent (correct?)
Set UDP retry timeout to same as for tcp
Fixed build with --disable-memcache-session
Merged fix for #11221
Added INI directive memcache.hash_function = {crc32, fnv}
Moved "new-style" crc32 stuff into standard_hash strategy
Moved failure callback handling into PHP interface
Removed recursion protection in favor of setting the "failed" property
on the Memcache object and letting PHP handle freeing the user callback
…o n mirrors

New INI directives memcache.redundancy and memcache.session_redundancy
 * Continue failover from same point in sequence is multiple failures
 * Don't failover to server already tried
 * Distribute redundant keys evenly
Use session redundancy = 2 per default
Merged package2.xml from HEAD
…to help the outer requests complete before running themselves
Fixed double free under php4
Fixed php6 build
Fixed reference counting on failure callback in php4 versus php5
Added description of new API and INI directives
Prepare for release 3.0.0 (alpha)
pierrejoye and others added 28 commits October 10, 2013 17:47
…on portable api (have to valid other OSes like BSD
…ow) if setSaslData has been called and data has been set correctly
…ename setSaslData to setSaslAuthData to match other interfaces
… making connections failed from time to time
…into NON_BLOCKING_IO

* 'NON_BLOCKING_IO' of git.php.net:/pecl/caching/memcache:
  revert last one, need to refactor this function 1st
  set stream options before casting to socket to avoid lost of options, making connections failed from time to time
  add MMC_DEBUG, disabled by default
  stupid me. remove debug code
  refactor sasl, fix stupid test code with static user (prev commit), rename setSaslData to setSaslAuthData to match other interfaces
  rename setSaslData to setSaslAuthData
@bjaspan
Copy link
Author

bjaspan commented Nov 7, 2014

Ooops, PR opened against wrong branch, trying again.

@bjaspan bjaspan closed this Nov 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants