Hi Srini and Dileep,
I do not know the limits in the code or schema, but I have tested in a
Casablanca system on a pnf object:
- successful PUT and GET with 1k length string (pnf-name2 field)
- successful PUT and GET with 10k length string (pnf-name2 field)
- successful PUT and GET with 100k length string (pnf-name2 field)
- successful DELETE at the end
and yes, I counted each and every character in that string!
(with some help from Notepad++ which shows number of characters selected and
highlights other matches).
The initial PUT was done with curl like this:
curl --verbose --silent --insecure --user AAI:AAI --header 'Accept:
application/json' --header 'X-TransactionId: testaai' --header 'Content-Type:
application/json' --header 'X-FromAppId: AAI' --request PUT --data
'{"pnf-name":"pnf-test-3","pnf-name2":"${LONGSTRING}","pnf-id":"test-id-3","equip-type":"test-type-3","resource-version":""}'
https://${AAI-IP}:30233/aai/v14/network/pnfs/pnf/pnf-test-3
and subsequent PUT updates with curl like this:
curl --verbose --silent --insecure --user AAI:AAI --header 'Accept:
application/json' --header 'X-TransactionId: testaai' --header 'Content-Type:
application/json' --header 'X-FromAppId: AAI' --request PUT --data
'{"pnf-name":"pnf-test-3","pnf-name2":"${LONGERSTRING}","pnf-id":"test-id-3","equip-type":"test-type-3","resource-version":"${RESVER}"}'
https://${AAI-IP}:30233/aai/v14/network/pnfs/pnf/pnf-test-3?resource-version=${RESVER}
Of course, even if AAI can technically handle strings of such length, there are
no guarantees that other components can follow suit, so the overall scenario
may still fail.
Keong
On Thu, Feb 21, 2019 at 09:23 AM, Srini wrote:
>
> Hi,
>
> Any update for us here. Based on your response, we need to think about
> alternatives.
> Please let us know.
>
> Thanks in advance.
> Srini
>
> From: KAJUR, HARISH V [mailto:[email protected]]
> Sent: Tuesday, February 19, 2019 11:05 AM
> To: Ranganathan, Dileep <[email protected]>; FORSYTH, JAMES
> <[email protected]>; [email protected]; Addepalli, Srinivasa R
> <[email protected]>
> Cc: AGGARWAL, MANISHA <[email protected]>; MAHARAJH, ROBBY <[email protected]>;
> NAIK, SOUMYA <[email protected]>
> Subject: RE: [aai] Upper limit size for storing string in Schema
>
> +Robby, Manisha, Soumya
>
> From: Ranganathan, Dileep
> <[email protected]<mailto:[email protected]>>
> Sent: Tuesday, February 19, 2019 1:50 PM
> To: KAJUR, HARISH V <[email protected]<mailto:[email protected]>>; FORSYTH, JAMES
> <[email protected]<mailto:[email protected]>>;
> [email protected]<mailto:[email protected]>; Addepalli,
> Srinivasa R
> <[email protected]<mailto:[email protected]>>
> Subject: [aai] Upper limit size for storing string in Schema
>
> Hi AAI team,
>
> We would like to store an arbitrarily long string (~10K string size) in the
> AAI schema. Is this possible to store this long string in AAI schema?
> What is the upper limit size for storing string in aai schema.
>
> Thanks,
> Dileep
>
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#15663): https://lists.onap.org/g/onap-discuss/message/15663
Mute This Topic: https://lists.onap.org/mt/29926620/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-