[openstack-dev] [Oslo] jsonutils support for datetimes
Russell Bryant
rbryant at redhat.com
Mon Jun 3 19:36:18 UTC 2013
On 06/03/2013 01:41 PM, Joshua Harlow wrote:
> You guys seem to be getting into an area where avro has done a lot of work
> here ;)
>
> http://avro.apache.org/docs/current/spec.html#schemas
>
> {
> "type": "record",
> "name": "LongList",
> "aliases": ["LinkedLongs"], // old name for this
> "fields" : [
> {"name": "value", "type": "long"}, // each element has a
> long
> {"name": "next", "type": ["LongList", "null"]} // optional next element
> ]
> }
>
>
> That starts to look any awfully lot like what u might be trying to do ;)
>
> An example of the datetime issue (still unresolved sadly)
>
> https://issues.apache.org/jira/browse/AVRO-739
>
> {
> "type": "record",
> "name": "org.apache.avro.lib.Date",
> "fields": [
> {
> "name": "time",
> "type": "long"
> }
> ]
> }
>
>
> I wonder if we should start looking at avro and its usage in openstack?
Seems like massive overkill. What we needed to do this in nova is
already implemented, wasn't that bad to do, and maintains backwards
compatibility with all of the existing rpc code.
--
Russell Bryant
More information about the OpenStack-dev
mailing list