From issues-return-92517-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Fri Mar 1 10:03: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 AFF89180676 for ; Fri, 1 Mar 2019 11:03:04 +0100 (CET) Received: (qmail 29324 invoked by uid 500); 1 Mar 2019 10:03: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 29163 invoked by uid 99); 1 Mar 2019 10:03: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; Fri, 01 Mar 2019 10:03: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 4F639180DFA for ; Fri, 1 Mar 2019 10:03:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, 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-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id jekEr84IMTR9 for ; Fri, 1 Mar 2019 10:03:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id D4DE161113 for ; Fri, 1 Mar 2019 10:03: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 F2836E2804 for ; Fri, 1 Mar 2019 10:03: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 5EB9D256F2 for ; Fri, 1 Mar 2019 10:03:00 +0000 (UTC) Date: Fri, 1 Mar 2019 10:03:00 +0000 (UTC) From: "Aleksey Plekhanov (JIRA)" To: issues@ignite.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (IGNITE-11437) Start grid in remote JVM in test framework fails if TDE is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IGNITE-11437?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D16= 781533#comment-16781533 ]=20 Aleksey Plekhanov commented on IGNITE-11437: -------------------------------------------- Fields {{aesWithPadding}} and {{aesWithoutPadding}} are static now. It's sa= fe because all usages of derived from this fields ciphers are stateless ins= ide one thread. Reproducer is passed without error (locally). No new tests were added to th= is patch, but new tests with multi JVM and TDE will be added by ticket=C2= =A0IGNITE-11336 (currently in progress). =C2=A0 [~NIzhikov]=C2=A0could you please review the patch? > Start grid in remote JVM in test framework fails if TDE is enabled > ------------------------------------------------------------------ > > Key: IGNITE-11437 > URL: https://issues.apache.org/jira/browse/IGNITE-11437 > Project: Ignite > Issue Type: Bug > Reporter: Aleksey Plekhanov > Assignee: Aleksey Plekhanov > Priority: Major > Time Spent: 10m > Remaining Estimate: 0h > > When we start grid in remote JVM with enabled TDE, it fails with exceptio= n: > {noformat} > java.lang.NullPointerException > at java.lang.ThreadLocal$SuppliedThreadLocal.initialValue(ThreadLocal.jav= a:284) > at java.lang.ThreadLocal.setInitialValue(ThreadLocal.java:180) > at java.lang.ThreadLocal.get(ThreadLocal.java:170) > at org.apache.ignite.spi.encryption.keystore.KeystoreEncryptionSpi.encryp= t(KeystoreEncryptionSpi.java:211){noformat} > Test framework uses=C2=A0{{XStream}} to pass Ignite configuration to remo= te JVM. {{XStream}} cannot serialize lamda=C2=A0expression and replace lamb= da with {{null}}. So, after deserialization {{ThreadLocal}} object has {{su= pplier =3D=3D null}}. > Reproducer: > {code:java} > public class TdeTest extends GridCommonAbstractTest { > /** {@inheritDoc} */ > @Override protected IgniteConfiguration getConfiguration(String gridN= ame) throws Exception { > IgniteConfiguration cfg =3D super.getConfiguration(gridName); > cfg.setDataStorageConfiguration(new DataStorageConfiguration() > .setDefaultDataRegionConfiguration(new DataRegionConfiguratio= n().setPersistenceEnabled(true))); > KeystoreEncryptionSpi encSpi =3D new KeystoreEncryptionSpi(); > encSpi.setKeyStorePath(AbstractEncryptionTest.KEYSTORE_PATH); > encSpi.setKeyStorePassword(AbstractEncryptionTest.KEYSTORE_PASSWO= RD.toCharArray()); > cfg.setEncryptionSpi(encSpi); > cfg.setCacheConfiguration(new CacheConfiguration().setName("cache= ").setEncryptionEnabled(true)); > return cfg; > } > /** {@inheritDoc} */ > @Override protected boolean isMultiJvm() { > return true; > } > @Test > public void testTdeMultiJvm() throws Exception { > startGrids(2); > } > } > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005)