Hi,
I’ve noticed that on querying using the ruby client, the record’s metadata is correctly retrieved when using the method for single record i.e. get(). However, batch_get() returns records with incorrect metadata. Exactly, the user_key in key obj is nil and expiration is always zero in the returned records. Is this a bug or am I doing things differently?
client = Client.new(Host.new('127.0.0.1', 3000))
key = Key.new("users", "data", "test")
bin = Bin.new("binName", "value")
client.put(key, bin)
record = client.get(key)
records = client.batch_get([key])
Expecting records[0
] to be the same as record
. But, other than bins and generation, the metadata seem different.
record.expiration
is hugely different from records[0].expiration
. Most of the times records[0].expiration
is zero and other times there is a huge difference from the correct expiration.
Also, record.key.user_key
gives the correct user_key but records[0].key.user_key
gives nil
.
Please, help me out here. Am I doing it wrongly? Is it a bug?