Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-13863

Python thin client hangs when object has primitive null field

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9
    • python-0.4.0
    • thin client
    • 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

          Activity

            People

              isapego Igor Sapego
              isapego Igor Sapego
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h