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

Node.js thin client UUID marshalling is wrong

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7
    • Fix Version/s: 2.8
    • Component/s: thin client
    • Labels:
      None

      Description

      Trying to put uuid with Node.js client and get from Java or C++ client have different results

      NodeJS put
      5fbeee4e-b2a6-44dc-99ac-6444d7fe7df6

      cache = (await igniteClient.getOrCreateCache("UUID_JS"))
          .setKeyType(ObjectType.PRIMITIVE_TYPE.INTEGER)
          .setValueType(ObjectType.PRIMITIVE_TYPE.UUID);
      key = 1;
      value = [95,190,238,78,178,166,68,220,153,172,100,68,215,254,125,246];
      await cache.put(key, value);
      

      Java get

      ClientCache<Integer, UUID> cache = igniteClient.getOrCreateCache("UUID_JS");
      UUID id = cache.get(1);
      System.out.println(id);
      

      Java output

      dc44a6b2-4eee-be5f-f67d-fed74464ac99
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                isapego Igor Sapego
                Reporter:
                isapego Igor Sapego
              • Votes:
                0 Vote for this issue
                Watchers:
                2 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 - 20m
                  20m