Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.9
-
None
-
Docs Required, Release Notes Required
Description
The first run of python client returns empty result set, all consequence runs just hang:
from pyignite import Client, GenericObjectMeta import collections from pyignite.datatypes import * if __name__ == '__main__': client = Client() client.connect('localhost', 10800) cache = client.get_cache('Batch') #client.register_binary_type(BatchConfigurationPK) #client.register_binary_type(BatchConfiguration) result = cache.scan() print([b for b in result])
public class ObjectTest { @QuerySqlField private String field1; @QuerySqlField private String field2; @QuerySqlField private String field3; @QuerySqlField private String field4; @QuerySqlField private Boolean enabled; public ObjectTest(String field1, String field2, String field3) { this.field1 = field1; this.field2 = field2; this.field3 = field3; } }
public static void main(String[] args) throws IgniteException { Ignite ignite = Ignition.start("examples/config/example-ignite.xml"); IgniteCache cache = ignite.getOrCreateCache("Batch"); for (int i = 0; i < 100; i++) { cache.put(i, new ObjectTest("" + i, "" + i, "" + i)); } }
Attachments
Issue Links
- links to