Description
I'm making changes to ns_server to support maxTTL=-1 (which means no expiry). When I load the travel-sample bucket it fails. I believe it is due to the negative maxTTL.
Here's my change https://review.couchbase.org/c/ns_server/+/202000
Here's the /pools/default/bucket/travel-sample/scopes output
xcurl localhost:9000/pools/default/buckets/travel-sample/scopes | jq
|
{
|
"uid": "1",
|
"scopes": [
|
{
|
"name": "_default",
|
"uid": "0",
|
"collections": [
|
{
|
"name": "_default",
|
"uid": "0",
|
"maxTTL": 0
|
}
|
]
|
},
|
{
|
"name": "_system",
|
"uid": "8",
|
"collections": [
|
{
|
"name": "_query",
|
"uid": "9",
|
"maxTTL": -1,
|
"history": false
|
},
|
{
|
"name": "_mobile",
|
"uid": "8",
|
"maxTTL": -1,
|
"history": false
|
}
|
]
|
}
|
]
|
}
|
Here's cbimport run manually.
steve.watanabe @ ~ $ /Users/steve.watanabe/trinity/install/bin/cbimport json --bucket travel-sample --format sample --threads 2 --verbose --gocbcore-log-level debug --dataset file:///Users/steve.watanabe/trinity/install/bin/../samples/travel-sample.zip --cluster 127.00.1:9000 --bucket-quota 200 --bucket-replicas 0 --username Administrator --password asdasd
|
2023-12-01T16:59:17.668-08:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://127.00.1:9000/pools'
|
2023-12-01T16:59:17.684-08:00 (REST) (Attempt 1) (GET) (200) Received response from 'http://127.00.1:9000/pools'
|
2023-12-01T16:59:17.686-08:00 (REST) Successfully connected to cluster | {"enterprise":true,"uuid":"7cccc514a7fbe02073f589b9fee9bc53"}
|
2023-12-01T16:59:17.686-08:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://127.00.1:9000/pools/default'
|
2023-12-01T16:59:17.702-08:00 (REST) (Attempt 1) (GET) (200) Received response from 'http://127.00.1:9000/pools/default'
|
2023-12-01T16:59:17.703-08:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://127.00.1:9000/pools/default/buckets'
|
2023-12-01T16:59:17.718-08:00 (REST) (Attempt 1) (GET) (200) Received response from 'http://127.00.1:9000/pools/default/buckets'
|
2023-12-01T16:59:17.719-08:00 (REST) Successfully connected to cluster | {"enterprise":true,"uuid":"7cccc514a7fbe02073f589b9fee9bc53","developer_preview":false,"version":{"min_version":"7.6.0","is_mixed_cluster":false},"max_vbuckets":16,"uniform_vbuckets":true}
|
2023-12-01T16:59:17.762-08:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://127.00.1:9000/pools/default/buckets/travel-sample'
|
2023-12-01T16:59:17.779-08:00 (REST) (Attempt 1) (GET) (200) Received response from 'http://127.00.1:9000/pools/default/buckets/travel-sample'
|
2023-12-01T16:59:17.779-08:00 (REST) (Attempt 1) (GET) Dispatching request to 'http://127.00.1:9000/pools/default/buckets/travel-sample/scopes'
|
2023-12-01T16:59:17.794-08:00 (REST) (Attempt 1) (GET) (200) Received response from 'http://127.00.1:9000/pools/default/buckets/travel-sample/scopes'
|
2023-12-01T16:59:17.795-08:00 JSON import failed: failed to get import transferable: failed to create import plan: failed to get collection manifest for bucket 'travel-sample': failed to unmarshal response: json: cannot unmarshal number -1 into Go struct field .scopes of type uint32
|
JSON import failed: json: cannot unmarshal number -1 into Go struct field .scopes of type uint32
|