Dana Shaw created IGNITE-8786:
---------------------------------

             Summary: session.removeAttribute does not work as expected
                 Key: IGNITE-8786
                 URL: https://issues.apache.org/jira/browse/IGNITE-8786
             Project: Ignite
          Issue Type: Bug
    Affects Versions: 2.5, 2.4
         Environment: Java 8, Java 9, Java 10

Ignite 2.4 and Ignite 2.5
            Reporter: Dana Shaw


Sample project: [https://github.com/daynok/ignite-webapp]

 

What I'm noticing is that  session.removeAttribute doesn't really remove the 

attribute, it only sets the value to null.  I'm not sure if this is a setup 
issue on my end or what.  I thought this might be related to jsf, removed jsf 
and the issue persists. 

Thanks in advance and please help! 

dshaw 

The closest issue that I could find to my particular issue was: 
[https://github.com/apache/ignite/pull/2243]

I patched my local ignite repo with #2243 , redeployed to tomcat and 2 
ignite nodes but am seeing the same issue. 

The closest issue that I could find to my particular issue was: 
[https://github.com/apache/ignite/pull/2243]


My setup (client/server): 
- Ignite 2.5.0 (2 node cluster) 
- Apache Tomcat 7 
- Java 9 

tomcat setenv.sh 
#!/bin/sh 
export JAVA_HOME=/opt/java/jdk-10.0.1 
export PATH=$JAVA_HOME/bin:$PATH 
export CATALINA_OPTS="--add-exports java.base/jdk.internal.misc=ALL-UNNAMED 
    --add-exports java.base/sun.nio.ch=ALL-UNNAMED 
    --add-exports java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED 
    --add-exports jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED 
    --add-modules java.xml.bind" 
export CATALINA_HOME=/opt/apache/apache-tomcat-7.0.86_node 


##### Config use by 3 tomcat notes 
client-config.xml (used by tomcat 7) 


<?xml version="1.0" encoding="UTF-8"?> 

<!-- 
  Licensed to the Apache Software Foundation (ASF) under one or more 
  contributor license agreements.  See the NOTICE file distributed with 
  this work for additional information regarding copyright ownership. 
  The ASF licenses this file to You under the Apache License, Version 2.0 
  (the "License"); you may not use this file except in compliance with 
  the License.  You may obtain a copy of the License at 

       [http://www.apache.org/licenses/LICENSE-2.0]

  Unless required by applicable law or agreed to in writing, software 
  distributed under the License is distributed on an "AS IS" BASIS, 
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
  See the License for the specific language governing permissions and 
  limitations under the License. 
--> 

<beans xmlns="[http://www.springframework.org/schema/beans]" 
       xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance]" 
       xmlns:util="[http://www.springframework.org/schema/util]" 
       xsi:schemaLocation=" 
        [http://www.springframework.org/schema/beans]
        [http://www.springframework.org/schema/beans/spring-beans.xsd]
        [http://www.springframework.org/schema/util]
        [http://www.springframework.org/schema/util/spring-util.xsd]";> 





<!-- 
        Alter configuration below as needed. 
    --> 
    <bean id="grid.cfg" 
class="org.apache.ignite.configuration.IgniteConfiguration"> 
      <property name="clientMode" value="true"/> 

      <property name="discoverySpi"> 
    <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> 
      <property name="ipFinder"> 
        <bean 
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"> 
          <property name="addresses"> 
            <list> 
              <value>172.24.2.156:47500..47509</value> 
              <value>172.24.3.28:47500..47509</value> 
            </list> 
          </property> 
        </bean> 
      </property> 
    </bean> 
  </property> 
   </bean> 
</beans> 



##### Config use by 2 ignite nodes 

<beans xmlns="[http://www.springframework.org/schema/beans]" 
       xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance]" 
       xmlns:util="[http://www.springframework.org/schema/util]" 
       xsi:schemaLocation=" 
       [http://www.springframework.org/schema/beans]
       [http://www.springframework.org/schema/beans/spring-beans.xsd]
       [http://www.springframework.org/schema/util]
       [http://www.springframework.org/schema/util/spring-util.xsd]";> 
    <!-- 
        Alter configuration below as needed. 
    --> 
    <bean id="grid.cfg" 
class="org.apache.ignite.configuration.IgniteConfiguration"> 

        <!-- Enable cache events. --> 
        <property name="includeEventTypes"> 
                <util:constant 
static-field="org.apache.ignite.events.EventType.EVTS_CACHE"/> 
        </property> 

        <property name="cacheConfiguration"> 
            <list> 
                <bean 
class="org.apache.ignite.configuration.CacheConfiguration"> 
                    <!-- Cache name. --> 
                    <property name="name" value="medata-replicated"/> 
                    <!-- Cache mode. --> 
                    <property name="cacheMode" value="REPLICATED"/> 
                </bean> 
            </list> 
        </property> 
        <property name="discoverySpi"> 
                <bean 
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> 
                        <property name="ipFinder"> 
                                <bean 
class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"> 
                                        <property name="addresses"> 
                                                <list> 
                                                        
<value>172.24.2.156:47500..47509</value> 
                                                        
<value>172.24.3.28:47500..47509</value> 
                                                </list> 
                                        </property> 
                                </bean> 
                        </property> 
                </bean> 
        </property> 
    </bean> 
</beans> 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to