question history:
question 
80 views

M2 AutoTester case for PUT to the correct server

Tester Log

ServerLog:

As the first screenshot shows:

While running the auto tester for M2, we've already passed a few cases about keyrange, and 

SERVER_NOT_RESPONSIBLE when the put request is sent to the wrong server.

However, when the tester connects to the correct server and issues command:

put abc cde

Our server replies:

PUT_SUCCESS abc cde

but the tester fails at this point indicating the server output is incorrect.

You can see the exact byte array buffer returned and sent by our server in screenshot 2 which i believe should be correct.

What is the expected response in this case?

 0
Updated by Luke

the students' answer,

where students collectively construct a single answer

the instructors' answer,

where instructors collectively construct a single answer

Hi, 

There was a minor typo that made this validation fail. The code is fixed and deployed again. Please continue your development and thank you for bringing this issue to our notice.

 1
Updated by Jawad Tahir
followup discussionsfor lingering questions and comments
Anonymous Atom 

We’re also running into this exact issue. We are getting:

Trying to put keys in server...
-------Input@KV at localhost/127.0.0.1:33375> put abc cde
-------Output@KV at localhost/127.0.0.1:33375> SERVER_NOT_RESPONSIBLE

-------Input@KV at localhost/127.0.0.1:33375> keyrange
-------Output@KV at localhost/127.0.0.1:33375> KEYRANGE_SUCCESS 270e5f34487e9fed9c8bd23a4845c24b,2d69bc926eaa7d6c2b68c98185847205,s2-gr13-m2-server0:33375;2d69bc926eaa7d6c2b68c98185847206,310f55d79bdafa34efcc6b7830d90f63,s2-gr13-m2-server3:39959;310f55d79bdafa34efcc6b7830d90f64,ad77cb25a15c99482f96310c74b75b96,s2-gr13-m2-server2:42607;ad77cb25a15c99482f96310c74b75b97,f90a618014bfaacaebe940fc10e86141,s2-gr13-m2-server4:46493;f90a618014bfaacaebe940fc10e86142,270e5f34487e9fed9c8bd23a4845c24a,s2-gr13-m2-server1:45233;
Connect to the new KV server responsible for the key...
Read the welcome message...
-------Output@KV at localhost/127.0.0.1:42607> 
-------Input@KV at localhost/127.0.0.1:42607> put abc cde
-------Output@KV at localhost/127.0.0.1:42607> PUT_SUCCESS abc cde
PUT_SUCCESS abc cde
Visit Manage Class to disable runnable code snippets
 0