From dev-return-48076-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Wed Oct 23 06:13:02 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 6A94B180663 for ; Wed, 23 Oct 2019 08:13:02 +0200 (CEST) Received: (qmail 7774 invoked by uid 500); 23 Oct 2019 06:13:01 -0000 Mailing-List: contact dev-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 dev@ignite.apache.org Received: (qmail 7711 invoked by uid 99); 23 Oct 2019 06:13:01 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Oct 2019 06:13:01 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B5EC5E30FA for ; Wed, 23 Oct 2019 06:13:00 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 147F67806B8 for ; Wed, 23 Oct 2019 06:13:00 +0000 (UTC) Date: Wed, 23 Oct 2019 06:13:00 +0000 (UTC) From: "Kirill Tkalenko (Jira)" To: dev@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (IGNITE-12324) improper message in BinaryObjectException is printed when accessing fieldOrder method binary field with binary object of unregistered type MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Kirill Tkalenko created IGNITE-12324: ---------------------------------------- Summary: improper message in BinaryObjectException is printed when accessing fieldOrder method binary field with binary object of unregistered type Key: IGNITE-12324 URL: https://issues.apache.org/jira/browse/IGNITE-12324 Project: Ignite Issue Type: Improvement Reporter: Kirill Tkalenko Assignee: Kirill Tkalenko Fix For: 2.8 ScenarioScenario1. Create `BinaryObject` instance with `time` field of type `TimeValue`.2. Extract `BinaryField` `time` from binary object3. Modify binary object internal array so that it would reference non existing binary type4. Invoke `fieldOrder` (or `value`) of binary field passing modified binary object5. Expect that `BinaryObjectException` is thrown5.1 Expect that message contains information about expected and actual binary type id, expected type name, field id, field name, expected field type.5.2. Expect that for actual type name message contains 'null' Actual: \{noformat}class org.apache.ignite.binary.BinaryObjectException: Failed to get binary type details [typeId=-1291121110] at org.apache.ignite.internal.binary.BinaryTypeProxy.target(BinaryTypeProxy.java:116) at org.apache.ignite.internal.binary.BinaryTypeProxy.typeName(BinaryTypeProxy.java:75) at org.apache.ignite.internal.binary.BinaryFieldImpl.fieldOrder(BinaryFieldImpl.java:291) at org.apache.ignite.internal.binary.BinaryFieldImpl.value(BinaryFieldImpl.java:109)\{noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)