CONTAP-677909: RESTAPI doesn't return pagination link when the request times out with 0 records
Issue
- Despite having records to return, RESTAPI calls intermittently returns with 0 records and no pagination link when hitting the return_timeout value:
[root@rhel1 ~]# curl -ku admin -X GET "https://cluster1/api/storage/volumes?return_timeout=1&max_records=3&fields=uuid%2Cefficiency&svm.name=svm1&efficiency.state=disabled"
{
"records": [
],
"num_records": 0,
"_links": {
"self": {
"href": "/api/storage/volumes?return_timeout=1&max_records=3&fields=uuid%2Cefficiency&svm.name=svm1&efficiency.state=disabled"
}
}
- The same call later returns the correct information, including a pagination link:
[root@rhel1 ~]# curl -ku admin -X GET "https://cluster1/api/storage/volumes?max_records=3&fields=uuid%2Cefficiency&svm.name=svm1&efficiency.state=disabled"
{
"records": [
{
"uuid": "a252a493-2827-11f1-9c53-0050569c660a",
"name": "svm1_vol95",
"efficiency": {
"application_io_size": "8k",
"compression_type": "adaptive",
...
"scanner": {
"state": "idle"
}
},
"svm": {
"name": "svm1"
},
"_links": {
"self": {
"href": "/api/storage/volumes/d4ba9b6b-2147-11f1-9c53-0050569c660a"
}
}
}
],
"num_records": 3,
"_links": {
"self": {
"href": "/api/storage/volumes?max_records=3&fields=uuid%2Cefficiency&svm.name=svm1&efficiency.state=disabled"
},
"next": {
"href": "/api/storage/volumes?start.uuid=d4ba9b6b-2147-11f1-9c53-0050569c660a&max_records=3&fields=uuid%2Cefficiency&svm.name=svm1&efficiency.state=disabled"
}
}
}
