I’ve been trying to get the python client to work with a 2.x server. I’m somewhat successful because I can get keys, but scan and query both fail. Scan wanders off and never returns any rows, using 0% cpu. Query immediately give me an error.
Yes, the Python client is backward compatible with 2.0 Server, for the KVS functionality that’s supported.
To do a scan, please try the scan() function:
s = client.scan(namespace, set)
if options.bins and len(options.bins) > 0:
# project specified bins
s.select(*options.bins)
records = []
# callback to be called for each record read
def callback((key, meta, record)):
records.append(record)
print(record)
# invoke the operations, and for each record invoke the callback
s.foreach(callback)
What is the data set you are scanning? In our test bed we regularly run 30m records successfully.
We have also fixed some memory leaks in the python client in 1.0.33 which you want to pick up.