Closed jmoon1506 closed 3 years ago
Link to python API:
https://github.com/IBM/data-broker/tree/master/bindings/python
Hi @jmoon1506,
What is the behavior if you call the dbr.testKey function with an empty match_template prior to trying the directory function? If the key does not exist, then you can skip the directory call or wait and try again later.
That seems to work, but in order to use a match_template we check an iterator instead of testKey.
first_key, iterator = dbr.iterator(dbr_hdl, dbr.DBR_ITERATOR_NEW, dbr.DBR_GROUP_EMPTY, match_template)
if first_key != None:
keys, nKeys, res = dbr.directory(dbr_hdl, match_template, dbr.DBR_GROUP_EMPTY, count, 1000)
@jmoon1506 I think, I found and fixed the issue. Do you need a tagged version in order to test it on your side? Otherwise, I'd wait for you to confirm it's fixed and then would tag this update version.
Hi @lasch. Sorry for the delay -- I have tested the latest master commit's python bindings, and it works correctly. Please go ahead and tag this updated version.
Thanks @jmoon1506 . New version is tagged as version: 0.7.2
When using the python binding's directory function, Databroker hangs silently if the match_template doesn't match any keys.