Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 5004A200D62 for ; Fri, 1 Dec 2017 17:58:08 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 4EDAB160C06; Fri, 1 Dec 2017 16:58:08 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 47C1C160BF4 for ; Fri, 1 Dec 2017 17:58:07 +0100 (CET) Received: (qmail 21573 invoked by uid 500); 1 Dec 2017 16:58:06 -0000 Mailing-List: contact issues-help@geode.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@geode.apache.org Delivered-To: mailing list issues@geode.apache.org Received: (qmail 21564 invoked by uid 99); 1 Dec 2017 16:58:06 -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 Dec 2017 16:58:06 +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 96DD61807B3 for ; Fri, 1 Dec 2017 16:58:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, 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 7OzLzOIRnuJD for ; Fri, 1 Dec 2017 16:58: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 AC7575F56D for ; Fri, 1 Dec 2017 16:58: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 E463EE0160 for ; Fri, 1 Dec 2017 16:58: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 417A0255BD for ; Fri, 1 Dec 2017 16:58:00 +0000 (UTC) Date: Fri, 1 Dec 2017 16:58:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-1683) CI Failure: com.gemstone.gemfire.security.ClientAuthenticationDUnitTest.testInvalidAuthInit MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 01 Dec 2017 16:58:08 -0000 [ https://issues.apache.org/jira/browse/GEODE-1683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16274621#comment-16274621 ] ASF GitHub Bot commented on GEODE-1683: --------------------------------------- jinmeiliao closed pull request #1112: GEODE-1683: temp trial to fix clientAuthorizationDUnitTest URL: https://github.com/apache/geode/pull/1112 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/geode-core/src/test/java/org/apache/geode/security/ClientAuthorizationDUnitTest.java b/geode-core/src/test/java/org/apache/geode/security/ClientAuthorizationDUnitTest.java index 3275c87627..a16600ed51 100644 --- a/geode-core/src/test/java/org/apache/geode/security/ClientAuthorizationDUnitTest.java +++ b/geode-core/src/test/java/org/apache/geode/security/ClientAuthorizationDUnitTest.java @@ -14,11 +14,25 @@ */ package org.apache.geode.security; -import static org.apache.geode.internal.AvailablePort.*; -import static org.apache.geode.security.SecurityTestUtils.*; -import static org.apache.geode.test.dunit.Assert.*; -import static org.apache.geode.test.dunit.IgnoredException.*; -import static org.apache.geode.test.dunit.LogWriterUtils.*; +import static org.apache.geode.internal.AvailablePort.SOCKET; +import static org.apache.geode.internal.AvailablePort.getRandomAvailablePort; +import static org.apache.geode.security.SecurityTestUtils.AUTHFAIL_EXCEPTION; +import static org.apache.geode.security.SecurityTestUtils.NOTAUTHZ_EXCEPTION; +import static org.apache.geode.security.SecurityTestUtils.NO_EXCEPTION; +import static org.apache.geode.security.SecurityTestUtils.OTHER_EXCEPTION; +import static org.apache.geode.security.SecurityTestUtils.closeCache; +import static org.apache.geode.security.SecurityTestUtils.concatProperties; +import static org.apache.geode.security.SecurityTestUtils.createCacheClient; +import static org.apache.geode.security.SecurityTestUtils.createCacheClientWithDynamicRegion; +import static org.apache.geode.security.SecurityTestUtils.doGets; +import static org.apache.geode.security.SecurityTestUtils.doNGets; +import static org.apache.geode.security.SecurityTestUtils.doNPuts; +import static org.apache.geode.security.SecurityTestUtils.doPutAllP; +import static org.apache.geode.security.SecurityTestUtils.doPuts; +import static org.apache.geode.security.SecurityTestUtils.getLocatorPort; +import static org.apache.geode.test.dunit.Assert.fail; +import static org.apache.geode.test.dunit.IgnoredException.addIgnoredException; +import static org.apache.geode.test.dunit.LogWriterUtils.getLogWriter; import java.util.ArrayList; import java.util.Collection; @@ -32,17 +46,13 @@ import org.junit.runners.Parameterized; import org.apache.geode.cache.operations.OperationContext.OperationCode; -import org.apache.geode.distributed.ConfigurationProperties; import org.apache.geode.internal.AvailablePortHelper; -import org.apache.geode.internal.Version; import org.apache.geode.internal.cache.tier.sockets.ServerConnection; import org.apache.geode.security.generator.AuthzCredentialGenerator; import org.apache.geode.security.generator.CredentialGenerator; import org.apache.geode.security.generator.DummyCredentialGenerator; import org.apache.geode.security.generator.XmlAuthzCredentialGenerator; import org.apache.geode.security.templates.UserPasswordAuthInit; -import org.apache.geode.security.templates.UsernamePrincipal; -import org.apache.geode.test.dunit.Host; import org.apache.geode.test.dunit.VM; import org.apache.geode.test.dunit.standalone.VersionManager; import org.apache.geode.test.junit.categories.DistributedTest; @@ -63,7 +73,9 @@ public class ClientAuthorizationDUnitTest extends ClientAuthorizationTestCase { @Parameterized.Parameters public static Collection data() { - List result = VersionManager.getInstance().getVersions(); + List result = VersionManager.getInstance().getVersionsWithoutCurrent(); + result.add("000"); + result.remove("130"); if (result.size() < 1) { throw new RuntimeException("No older versions of Geode were found to test against"); } else { ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org > CI Failure: com.gemstone.gemfire.security.ClientAuthenticationDUnitTest.testInvalidAuthInit > ------------------------------------------------------------------------------------------- > > Key: GEODE-1683 > URL: https://issues.apache.org/jira/browse/GEODE-1683 > Project: Geode > Issue Type: Bug > Components: security > Reporter: Anilkumar Gingade > Labels: CI, Flaky > > Build #3315 (Jul 18, 2016 11:09:11 AM) > Revision: e72831ecb25259ed6ec3879f555c1dc8b872264f > Error Message > com.gemstone.gemfire.test.dunit.RMIException: While invoking com.gemstone.gemfire.security.ClientAuthenticationTestCase$$Lambda$109/800559148.run in VM 2 running on Host venezuela.gemstone.com with 4 VMs > Stacktrace > com.gemstone.gemfire.test.dunit.RMIException: While invoking com.gemstone.gemfire.security.ClientAuthenticationTestCase$$Lambda$109/800559148.run in VM 2 running on Host venezuela.gemstone.com with 4 VMs > at com.gemstone.gemfire.test.dunit.VM.invoke(VM.java:389) > at com.gemstone.gemfire.test.dunit.VM.invoke(VM.java:355) > at com.gemstone.gemfire.test.dunit.VM.invoke(VM.java:293) > at com.gemstone.gemfire.security.ClientAuthenticationTestCase.doTestInvalidAuthInit(ClientAuthenticationTestCase.java:224) > at com.gemstone.gemfire.security.ClientAuthenticationDUnitTest.testInvalidAuthInit(ClientAuthenticationDUnitTest.java:56) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) > at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) > at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) > at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) > at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) > at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) > at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55) > at org.junit.rules.RunRules.evaluate(RunRules.java:20) > at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) > at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) > at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) > at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) > at org.junit.runners.ParentRunner.run(ParentRunner.java:363) > at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:112) > at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:56) > at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66) > at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51) > at sun.reflect.GeneratedMethodAccessor15.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) > at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) > at org.gradle.messaging.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) > at org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) > at com.sun.proxy.$Proxy2.processTestClass(Unknown Source) > at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:109) > at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) > at org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) > at org.gradle.messaging.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:360) > at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54) > at org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > Caused by: java.lang.AssertionError: Got unexpected exception when starting client > at com.gemstone.gemfire.test.dunit.Assert.fail(Assert.java:64) > at com.gemstone.gemfire.security.SecurityTestUtils.createCacheClient(SecurityTestUtils.java:472) > at com.gemstone.gemfire.security.ClientAuthenticationTestCase.lambda$doTestInvalidAuthInit$279626d$1(ClientAuthenticationTestCase.java:224) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at hydra.MethExecutor.executeObject(MethExecutor.java:268) > at com.gemstone.gemfire.test.dunit.standalone.RemoteDUnitVM.executeMethodOnObject(RemoteDUnitVM.java:82) > at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323) > at sun.rmi.transport.Transport$1.run(Transport.java:200) > at sun.rmi.transport.Transport$1.run(Transport.java:197) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:196) > at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$95(TCPTransport.java:683) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) > ... 3 more > Caused by: com.gemstone.gemfire.security.GemFireSecurityException: java.lang.ClassNotFoundException: com.gemstone > at com.gemstone.gemfire.internal.security.GeodeSecurityUtil.getObjectOfTypeFromFactoryMethod(GeodeSecurityUtil.java:421) > at com.gemstone.gemfire.internal.security.GeodeSecurityUtil.getObjectOfType(GeodeSecurityUtil.java:439) > at com.gemstone.gemfire.internal.cache.tier.sockets.HandShake.getCredentials(HandShake.java:1602) > at com.gemstone.gemfire.cache.client.internal.AuthenticateUserOp$AuthenticateUserOpImpl.(AuthenticateUserOp.java:119) > at com.gemstone.gemfire.cache.client.internal.AuthenticateUserOp.executeOn(AuthenticateUserOp.java:77) > at com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.authenticateIfRequired(ConnectionFactoryImpl.java:190) > at com.gemstone.gemfire.cache.client.internal.ConnectionFactoryImpl.createClientToServerConnection(ConnectionFactoryImpl.java:146) > at com.gemstone.gemfire.cache.client.internal.QueueManagerImpl.initializeConnections(QueueManagerImpl.java:462) > at com.gemstone.gemfire.cache.client.internal.QueueManagerImpl.start(QueueManagerImpl.java:312) > at com.gemstone.gemfire.cache.client.internal.PoolImpl.start(PoolImpl.java:320) > at com.gemstone.gemfire.cache.client.internal.PoolImpl.finishCreate(PoolImpl.java:147) > at com.gemstone.gemfire.cache.client.internal.PoolImpl.create(PoolImpl.java:133) > at com.gemstone.gemfire.internal.cache.PoolFactoryImpl.create(PoolFactoryImpl.java:319) > at com.gemstone.gemfire.cache30.ClientServerTestCase.configureConnectionPoolWithNameAndFactory(ClientServerTestCase.java:250) > at com.gemstone.gemfire.cache30.ClientServerTestCase.configureConnectionPoolWithNameAndFactory(ClientServerTestCase.java:200) > at com.gemstone.gemfire.security.SecurityTestUtils.createCacheClient(SecurityTestUtils.java:404) > ... 23 more > Caused by: java.lang.ClassNotFoundException: com.gemstone > at com.gemstone.gemfire.internal.ClassPathLoader.forName(ClassPathLoader.java:426) > at com.gemstone.gemfire.internal.ClassLoadUtil.methodFromName(ClassLoadUtil.java:91) > at com.gemstone.gemfire.internal.ClassLoadUtil.methodFromName(ClassLoadUtil.java:101) > at com.gemstone.gemfire.internal.security.GeodeSecurityUtil.getObjectOfTypeFromFactoryMethod(GeodeSecurityUtil.java:412) > ... 38 more > Standard Output > Previously run tests: [PRDistTXWithVersionsDUnitTest, CacheMapDistTXDUnitTest, DistTXRestrictionsDUnitTest, DistributedTransactionDUnitTest, DistTXDebugDUnitTest, IntegratedSecurityPostProcessorDUnitTest, IntegratedClientGetEntryAuthDistributedTest, IntegratedClientGetPutAuthDistributedTest, IntegratedClientRegisterInterestAuthDistributedTest, ClientAuthenticationPart2DUnitTest, IntegratedSecurityNoShowValue1PostProcessorDUnitTest, ClientAuthenticationDUnitTest] > [vm_0][info 2016/07/18 16:26:22.369 PDT tid=0x560] Received method: com.gemstone.gemfire.test.dunit.NamedRunnable.run with 0 args on object: runnable(setupVM) > [vm_0][info 2016/07/18 16:26:22.369 PDT tid=0x560] Got result: null > [vm_0] from com.gemstone.gemfire.test.dunit.NamedRunnable.run with 0 args on object: runnable(setupVM) (took 0 ms) > [vm_1][info 2016/07/18 16:26:22.370 PDT tid=0x12] Received method: com.gemstone.gemfire.test.dunit.NamedRunnable.run with 0 args on object: runnable(setupVM) > [vm_1][info 2016/07/18 16:26:22.370 PDT tid=0x12] Got result: null > [vm_1] from com.gemstone.gemfire.test.dunit.NamedRunnable.run with 0 args on object: runnable(setupVM) (took 0 ms) > [vm_2][info 2016/07/18 16:26:22.370 PDT tid=0x4f0] Received method: com.gemstone.gemfire.test.dunit.NamedRunnable.run with 0 args on object: runnable(setupVM) > [vm_2][info 2016/07/18 16:26:22.370 PDT tid=0x4f0] Got result: null > [vm_2] from com.gemstone.gemfire.test.dunit.NamedRunnable.run with 0 args on object: runnable(setupVM) (took 0 ms) -- This message was sent by Atlassian JIRA (v6.4.14#64029)