question history:
question 
81 views

What if the KVStore tries to access a server that has shut down?

Case 1: Client Does Not Know Any Active Servers

Say we initially have server A and client A knows about this server. Then, server B joins, and then server A closes. Now, client A only knows about server A, which is shutdown. How is client A supposed to figure out the connection to the new server B?

Case 2: Client Tries Contacting Dead Server When Other Servers Are Live

In another case, what if we had server Aserver B, and server C, all of which are known to client A. If server A shuts down and the load rebalanced, should client A try to contact server A, fail, and then progress to try to request the information from all the other servers? Or should the connection be done manually?

 0
Updated by D C

the students' answer,

where students collectively construct a single answer
Whoops, I misread the question. Please ignore this answer.
 0
Updated by Anonymous Scale

the instructors' answer,

where instructors collectively construct a single answer

Case 1: Apparently Client A wont know server B exists.

Case 2: It doesnt matter which server the client tries first. What matters is in the end, the client should be able to communicate with the right server that is responsible for the given key. This should be done automatically.

 1
Updated by Gengrui Zhang
followup discussionsfor lingering questions and comments
D C
 

Some "Anonymous Scale" wrote: "For case 1, I suppose the client can try to contact the successor node based on its stale metadata (I.e. contact nodes in the clock-wise direction until you get a connection)." I think this could be correct for Case 2, so thank you!

 0