I have actually an issue when I launch a PUT request after a POST request (Ubuntu 14.04).
Process:
1 PUT (to save a target image):
root@pastec:~# curl -X PUT --data-binary @images/targets/1-ashton-hills-vineyard-pinot.jpg http://localhost:4212/index/images/1 Image 1 added: 946 hits. {"image_id":1,"nb_features_extracted":1877,"type":"IMAGE_ADDED"}
One other PUT:
root@pastec:~# curl -X PUT --data-binary @images/targets/1-ashton-hills-vineyard-pinot.jpg http://localhost:4212/index/images/1 Image 1 removed. Image 1 added: 946 hits. {"image_id":1,"nb_features_extracted":1877,"type":"IMAGE_ADDED"}
No problems with other PUTs...
Now I launch 1 POST (to launch a matching):
curl -X POST --data-binary @images/searches/1-ashton-hills-vineyard-pinot.jpg http://localhost:4212/index/searcher Loading the image and extracting the ORBs. Image too large, resizing. time: 181 ms. Looking for the visual words. time: 1163 ms. 943 visual words kept for the request. 1 images indexed in the index. time: 1 ms. Ranking the images. init threads time: 0 ms. compute time: 1 ms. reduce time: 0 ms. rankedResult time: 0 ms. Reranking 300 among 1 images. time: 0 ms. Returning the results. Id: 1, score: 94 {"bounding_rects":[{"height":695,"width":493,"x":102,"y":176}],"image_ids":[1],"scores":[94.0],"tags":[""],"type":"SEARCH_RESULTS"}
OK, it works.
But now I can't send a new PUT. I didn't get any response from Pastec... seems it is locked !
curl -X PUT --data-binary @images/targets/1-ashton-hills-vineyard-pinot.jpg http://localhost:4212/index/images/1=> no response even after a long time
But I can send other POSTs without problems :
curl -X POST --data-binary @images/searches/1-ashton-hills-vineyard-pinot.jpg http://localhost:4212/index/searcher Loading the image and extracting the ORBs. Image too large, resizing. time: 206 ms. Looking for the visual words. time: 1145 ms. 943 visual words kept for the request. 1 images indexed in the index. time: 1 ms. Ranking the images. init threads time: 0 ms. compute time: 0 ms. reduce time: 0 ms. rankedResult time: 0 ms. Reranking 300 among 1 images. time: 0 ms. Returning the results. Id: 1, score: 94 {"bounding_rects":[{"height":695,"width":493,"x":102,"y":176}],"image_ids":[1],"scores":[94.0],"tags":[""],"type":"SEARCH_RESULTS"}
It is a very strange behaviour.
I have tried the test many times: each I launch a POST... I can't launch PUT just after...
I have actually an issue when I launch a PUT request after a POST request (Ubuntu 14.04).
Process:
1 PUT (to save a target image):
root@pastec:~# curl -X PUT --data-binary @images/targets/1-ashton-hills-vineyard-pinot.jpg http://localhost:4212/index/images/1 Image 1 added: 946 hits. {"image_id":1,"nb_features_extracted":1877,"type":"IMAGE_ADDED"}
One other PUT:
root@pastec:~# curl -X PUT --data-binary @images/targets/1-ashton-hills-vineyard-pinot.jpg http://localhost:4212/index/images/1 Image 1 removed. Image 1 added: 946 hits. {"image_id":1,"nb_features_extracted":1877,"type":"IMAGE_ADDED"}
No problems with other PUTs... Now I launch 1 POST (to launch a matching):
curl -X POST --data-binary @images/searches/1-ashton-hills-vineyard-pinot.jpg http://localhost:4212/index/searcher Loading the image and extracting the ORBs. Image too large, resizing. time: 181 ms. Looking for the visual words. time: 1163 ms. 943 visual words kept for the request. 1 images indexed in the index. time: 1 ms. Ranking the images. init threads time: 0 ms. compute time: 1 ms. reduce time: 0 ms. rankedResult time: 0 ms. Reranking 300 among 1 images. time: 0 ms. Returning the results. Id: 1, score: 94 {"bounding_rects":[{"height":695,"width":493,"x":102,"y":176}],"image_ids":[1],"scores":[94.0],"tags":[""],"type":"SEARCH_RESULTS"}
OK, it works. But now I can't send a new PUT. I didn't get any response from Pastec... seems it is locked !
curl -X PUT --data-binary @images/targets/1-ashton-hills-vineyard-pinot.jpg http://localhost:4212/index/images/1
=> no response even after a long timeBut I can send other POSTs without problems :
curl -X POST --data-binary @images/searches/1-ashton-hills-vineyard-pinot.jpg http://localhost:4212/index/searcher Loading the image and extracting the ORBs. Image too large, resizing. time: 206 ms. Looking for the visual words. time: 1145 ms. 943 visual words kept for the request. 1 images indexed in the index. time: 1 ms. Ranking the images. init threads time: 0 ms. compute time: 0 ms. reduce time: 0 ms. rankedResult time: 0 ms. Reranking 300 among 1 images. time: 0 ms. Returning the results. Id: 1, score: 94 {"bounding_rects":[{"height":695,"width":493,"x":102,"y":176}],"image_ids":[1],"scores":[94.0],"tags":[""],"type":"SEARCH_RESULTS"}
It is a very strange behaviour. I have tried the test many times: each I launch a POST... I can't launch PUT just after...