From issues-return-32135-archive-asf-public=cust-asf.ponee.io@geode.apache.org Thu Mar 1 21:02:07 2018 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 DD21818064D for ; Thu, 1 Mar 2018 21:02:06 +0100 (CET) Received: (qmail 38676 invoked by uid 500); 1 Mar 2018 20:02: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 38667 invoked by uid 99); 1 Mar 2018 20:02:05 -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, 01 Mar 2018 20:02:05 +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 7BC02180678 for ; Thu, 1 Mar 2018 20:02:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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 gWsgr8q0-eN6 for ; Thu, 1 Mar 2018 20:02:03 +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 571D55F2EE for ; Thu, 1 Mar 2018 20:02:02 +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 1C8E9E02F0 for ; Thu, 1 Mar 2018 20:02:01 +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 781E124768 for ; Thu, 1 Mar 2018 20:02:00 +0000 (UTC) Date: Thu, 1 Mar 2018 20:02:00 +0000 (UTC) From: "Anthony Baker (JIRA)" To: issues@geode.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GEODE-1322) Cleanup session replication integration tests 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/GEODE-1322?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16382559#comment-16382559 ] Anthony Baker commented on GEODE-1322: -------------------------------------- Should this issue be closed? > Cleanup session replication integration tests > --------------------------------------------- > > Key: GEODE-1322 > URL: https://issues.apache.org/jira/browse/GEODE-1322 > Project: Geode > Issue Type: Test > Components: http session, tests > Reporter: Kirk Lund > Priority: Major > > Cleanup tests in extensions/geode-modules and extensions/geode-modules-tomcat7. > These two tests are currently annotated as UnitTest but should be IntegrationTest: > * Tomcat6SessionsJUnitTest > * Tomcat7SessionsJUnitTest > The above need to be changed to IntegrationTest and use a TemporaryFolder Rule. The above two fail in some weird and unexpected ways. For example, you cannot currently run either with "./gradlew -Dtest.single=Tomcat6SessionsJUnitTest extensions/geode-modules:test" and I'm not sure why not. > This test currently uses a really old custom PerTestClassLoaderRunner which does not support Rules (and it needs to use a TemporaryFolder Rule as well -- currently it uses java.io.tmpdir): > * SessionReplicationIntegrationJUnitTest > In order to recategorize the two Tomcat session tests, we need to resolve the following (it seems to expect the build/test resources directory to be the user.dir -- the test probably needs to copy the resources to a TemporaryFolder and use that instead): > {noformat} > org.apache.catalina.LifecycleException: Failed to start component [StandardService[null]] > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) > at com.gemstone.gemfire.modules.session.EmbeddedTomcat.startContainer(EmbeddedTomcat.java:126) > at com.gemstone.gemfire.modules.session.TestSessionsBase.setupServer(TestSessionsBase.java:67) > at com.gemstone.gemfire.modules.session.Tomcat7SessionsJUnitTest.setupClass(Tomcat7SessionsJUnitTest.java:30) > 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.RunBefores.evaluate(RunBefores.java:24) > at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27) > at org.junit.runners.ParentRunner.run(ParentRunner.java:363) > at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:105) > 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:64) > at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:50) > 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.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:106) > 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.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: com.gemstone.gemfire.GemFireIOException: Could not open log file "/data/jenkins/workspace/GEM-patch-build-closed/gemfire/open/extensions/geode-modules-tomcat7/build/integrationTest/tomcat/logs/gemfire_modules.2016-04-28.log". > at com.gemstone.gemfire.internal.logging.log4j.LogWriterAppenders.createLogWriterAppender(LogWriterAppenders.java:182) > at com.gemstone.gemfire.internal.logging.log4j.LogWriterAppenders.getOrCreateAppender(LogWriterAppenders.java:87) > at com.gemstone.gemfire.internal.logging.log4j.LogWriterAppenders.getOrCreateAppender(LogWriterAppenders.java:105) > at com.gemstone.gemfire.distributed.internal.InternalDistributedSystem.initialize(InternalDistributedSystem.java:563) > at com.gemstone.gemfire.distributed.internal.InternalDistributedSystem.newInstance(InternalDistributedSystem.java:278) > at com.gemstone.gemfire.distributed.DistributedSystem.connect(DistributedSystem.java:1631) > at com.gemstone.gemfire.cache.CacheFactory.create(CacheFactory.java:226) > at com.gemstone.gemfire.modules.session.bootstrap.PeerToPeerCache.createOrRetrieveCache(PeerToPeerCache.java:59) > at com.gemstone.gemfire.modules.session.bootstrap.AbstractCache.lifecycleEvent(AbstractCache.java:82) > at com.gemstone.gemfire.modules.session.catalina.AbstractCacheLifecycleListener.lifecycleEvent(AbstractCacheLifecycleListener.java:31) > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) > at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) > at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401) > at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:346) > at org.apache.catalina.startup.Embedded.startInternal(Embedded.java:773) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) > ... 39 more > Caused by: java.io.FileNotFoundException: /data/jenkins/workspace/GEM-patch-build-closed/gemfire/open/extensions/geode-modules-tomcat7/build/integrationTest/tomcat/logs/gemfire_modules.2016-04-28.log (No such file or directory) > at java.io.FileOutputStream.open0(Native Method) > at java.io.FileOutputStream.open(FileOutputStream.java:270) > at java.io.FileOutputStream.(FileOutputStream.java:213) > at com.gemstone.gemfire.internal.logging.log4j.LogWriterAppenders.createLogWriterAppender(LogWriterAppenders.java:179) > ... 54 more > {noformat} -- This message was sent by Atlassian JIRA (v7.6.3#76005)