jamesesilvia / CS542

Database Management Systems
1 stars 1 forks source link

Using the put command on an exceptionally long string results in saving the beginning of the string but not all of it #3

Closed tstrott closed 9 years ago

tstrott commented 9 years ago

Very long strings are not stored in full, only the beginning is stored.

Steps to reproduce: 1) Spawn server 2) Spawn client 3) Find an empty index and use the put command on it 4) When it asks you to enter the data, hold down the a key for a really long time 5) Like, a really long time. A couple minutes. Put something on your keyboard and walk away. 6) When you come back, press enter to store the data 7) Use a get command on that index 8) Note that the full string does not get retrieved

This may have something to do with a maximum buffer length specified by the client/server communication

jamesesilvia commented 9 years ago

We are going to put a limit on the size of data that can be entered via command line, anything greater will have to be PUT by submitting a file with data.

tstrott commented 9 years ago

That sounds good to me, it's pretty inefficient to put a rock on your keyboard and walk away anyway. If someone wants to store a novel you would think he would have saved it first.

Once you have the limit in place I'll test it up to that limit and edit the paper with our new assumption.

jamesesilvia commented 9 years ago

I added a warning that data is cut off at 1KB and to use a file instead. This is the most we should do.