skeyby opened a new issue #1841: Wrong start_time in _replicate response
URL: https://github.com/apache/couchdb/issues/1841
 
 
   Invoking the _replicate API endpoint, the JSON response reports a wrong 
start time - on our server it's 1 hour back in time.
   
   ## Expected Behavior
   start_time should be correct time :)
   
   ## Current Behavior
   after creating two database with just a single document and invoking a 
single one shot replication for the specific doc id of the document this is the 
response:
   
   {
     "ok": true,
     "session_id": "4ae02b10379bd5e8cb4b0ee5eff03275",
     "source_last_seq": 
"1-g1AAAAIReJyVz10OgjAMAOAqJuqjJ9ATGMb4mU9yE-3oFiSITzzrTfQmehO9CQ4xARKDkCVd0rVfuxQAZrFFsIhOeRSTDJkTrG1zWGqexghyWRRFElsIR5OY2n6AXAQE8zwjpQ-Zoo52uTJRbr_C6CP46CnJxa-eLikspV1rF47CkUz13WVfCueWsNHCJZI9hWxiIlzMZZBrrRBqxpU_SLlVyj1B-Fv7qGqf9USHuQxdPWjiq1Iavxfocy_iTSV5A4-ckCc",
     "replication_id_version": 4,
     "start_time": "Thu, 03 Jan 2019 15:43:48 GMT",
     "end_time": "Thu, 03 Jan 2019 16:43:55 GMT",
     "docs_read": 1,
     "docs_written": 1,
     "doc_write_failures": 0,
     "history": [
       {
         "session_id": "4ae02b10379bd5e8cb4b0ee5eff03275",
         "start_time": "Thu, 03 Jan 2019 15:43:48 GMT",
         "end_time": "Thu, 03 Jan 2019 16:43:55 GMT",
         "start_last_seq": 0,
         "end_last_seq": 
"1-g1AAAAIReJyVz10OgjAMAOAqJuqjJ9ATGMb4mU9yE-3oFiSITzzrTfQmehO9CQ4xARKDkCVd0rVfuxQAZrFFsIhOeRSTDJkTrG1zWGqexghyWRRFElsIR5OY2n6AXAQE8zwjpQ-Zoo52uTJRbr_C6CP46CnJxa-eLikspV1rF47CkUz13WVfCueWsNHCJZI9hWxiIlzMZZBrrRBqxpU_SLlVyj1B-Fv7qGqf9USHuQxdPWjiq1Iavxfocy_iTSV5A4-ckCc",
         "recorded_seq": 
"1-g1AAAAIReJyVz10OgjAMAOAqJuqjJ9ATGMb4mU9yE-3oFiSITzzrTfQmehO9CQ4xARKDkCVd0rVfuxQAZrFFsIhOeRSTDJkTrG1zWGqexghyWRRFElsIR5OY2n6AXAQE8zwjpQ-Zoo52uTJRbr_C6CP46CnJxa-eLikspV1rF47CkUz13WVfCueWsNHCJZI9hWxiIlzMZZBrrRBqxpU_SLlVyj1B-Fv7qGqf9USHuQxdPWjiq1Iavxfocy_iTSV5A4-ckCc",
         "missing_checked": 1,
         "missing_found": 1,
         "docs_read": 1,
         "docs_written": 1,
         "doc_write_failures": 0
       }
     ]
   }
   
   As you can see even if the replication job took just a few seconds there's 
an hour of difference between start_time and end_time.
   
   end_time was the correct time when the test was executed.
   
   ## Steps to Reproduce (for bugs)
   
   curl -X PUT "http://127.0.0.1:5984/baseball_1";
   curl -X PUT "http://127.0.0.1:5984/baseball_2";
   curl -H 'Content-Type: application/json' -X POST 
"http://127.0.0.1:5984/baseball_1/"; -d '{}'
   curl -H 'Content-Type: application/json' -X POST 
"http://127.0.0.1:5984/_replicate"; -d 
'{"source":{"url":"http://10.33.102.165:5984/baseball_1"},"target":{"url":"https://free.bd.gcloud.schema31.it:443/baseball_2"},"doc_ids":[*****FILL
 WITH THE DOCUMENT ID FROM PREVIOUS POST*****]}'
   
   ## Your Environment
   * Version used: 2.3.0
   * Operating System and version (desktop or mobile): FreeBSD 11.2 (Erlang 
Runtime 21.2)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to