From issues-return-93893-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Thu Mar 21 16:14:05 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 9563E180621 for ; Thu, 21 Mar 2019 17:14:04 +0100 (CET) Received: (qmail 7310 invoked by uid 500); 21 Mar 2019 16:14:03 -0000 Mailing-List: contact issues-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list issues@ignite.apache.org Received: (qmail 7300 invoked by uid 99); 21 Mar 2019 16:14:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Mar 2019 16:14:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 459E2180E72 for ; Thu, 21 Mar 2019 16:14:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id OWv3hofOkDz9 for ; Thu, 21 Mar 2019 16:14:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 4D0BE624B8 for ; Thu, 21 Mar 2019 16:14:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7D225E060D for ; Thu, 21 Mar 2019 16:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 419BD2459B for ; Thu, 21 Mar 2019 16:14:00 +0000 (UTC) Date: Thu, 21 Mar 2019 16:14:00 +0000 (UTC) From: "Igor Sapego (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (IGNITE-10691) Python thin client UUID marshalling is wrong MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-10691?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Igor Sapego updated IGNITE-10691: --------------------------------- Summary: Python thin client UUID marshalling is wrong (was: thin clients: PY, PHP and NodeJS clients mixed up UUID taken from Java or C++ client) > Python thin client UUID marshalling is wrong > -------------------------------------------- > > Key: IGNITE-10691 > URL: https://issues.apache.org/jira/browse/IGNITE-10691 > Project: Ignite > Issue Type: Bug > Components: thin client > Affects Versions: 2.7 > Reporter: Stepan Pilschikov > Assignee: Alexey Kosenchuk > Priority: Major > Fix For: 2.8 > > > Trying to put uuid with PY or PHP or NodeJS client and get from Java or C++ client have different results > Python put > {code} > cache = client.get_or_create_cache("UUID_PY") > cache.put(1, UUID("d597be47-949e-475b-8918-44ca836798a3"), key_hint=IntObject, value_hint=UUIDObject) > {code} > Java get > {code} > ClientCache cache = igniteClient.getOrCreateCache("UUID_PY"); > UUID id = cache.get(1); > System.out.println(id); > {code} > Java output > {code} > 5b479e94-47be-97d5-a398-6783ca441889 > {code} > Same for C++ thin client > And they looks like mixed up in a different order > Python: {code}d597be47-949e-475b-8918-44ca836798a3{code} > Java: {code}5b479e94-47be-97d5-a398-6783ca441889{code} > For example take "ca" in 7-8 number from the end of java uuid > On left we have "83", but in python "83" stay on right side from "ca" > Different for "44" which is on right for Java but on left for Python > NodeJS put > 5fbeee4e-b2a6-44dc-99ac-6444d7fe7df6 > {code} > 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); > {code} > Py get > {code} > cache = client.get_or_create_cache("UUID_JS") > result = cache.get(1, key_hint=IntObject) > print(result) > {code} > Py output > {code} > 5fbeee4e-b2a6-44dc-99ac-6444d7fe7df6 > {code} > Java get > {code} > ClientCache cache = igniteClient.getOrCreateCache("UUID_JS"); > UUID id = cache.get(1); > System.out.println(id); > {code} > Java output > {code} > dc44a6b2-4eee-be5f-f67d-fed74464ac99 > {code} > PHP put > [238,15,47,237,224,122,66,220,170,89,127,143,199,56,10,205] = "ee0f2fed-e07a-42dc-aa59-7f8fc7380acd" > {code} > $cache = $client->getOrCreateCache("UUID_PH")->setKeyType(ObjectType::INTEGER)->setValueType(ObjectType::UUID); > $cache->put(1,[238,15,47,237,224,122,66,220,170,89,127,143,199,56,10,205]); > {code} > JS get > {code} > cache = (await igniteClient.getOrCreateCache("UUID_PH")) > .setKeyType(ObjectType.PRIMITIVE_TYPE.INTEGER) > .setValueType(ObjectType.PRIMITIVE_TYPE.UUID); > result = (await cache.get(1)); > {code} > JS output > {code} > 238 15 47 237 224 122 66 220 170 89 127 143 199 56 10 205 > {code} > Java get > {code} > ClientCache cache = igniteClient.getOrCreateCache("UUID_PH"); > UUID id = cache.get(1); > System.out.println(id); > {code} > Java output > {code} > dc427ae0-ed2f-0fee-cd0a-38c78f7f59aa > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)