Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-12927

Intermittent error ISPN000287 when triggering rolling upgrades

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 12.1.1.Final, 13.0.0.Final
    • 12.1.0.Final
    • Server
    • None
    • Hide

      1) In a 11.0.x server, disable security, by removing the 'security-realm' attribute from the infinispan.xml file

      2) Create cache 'gustavo':

      curl -v -H "Content-Type: application/json" -d '{"distributed-cache":{"mode":"SYNC","statistics":true}}' http://127.0.0.1:11222/rest/v2/caches/gustavo
      

      3) Insert some data

      curl -v -d "value1" "http://127.0.0.1:11222/rest/v2/caches/gustavo/1"
      curl -v -d "value2" "http://127.0.0.1:11222/rest/v2/caches/gustavo/2"
      curl -v -d "value3" "http://127.0.0.1:11222/rest/v2/caches/gustavo/3"
      

       
      4) Create user and start a server 12.0.x

      bin/cli.sh user create user -p user -g deployer
      bin/server.sh -Dinfinispan.socket.binding.port-offset=1000
      

      5) Create cache with remote store

      curl -v --digest -u user:user -XPOST -H "Content-Type: application/json" -d '{"distributed-cache":{"mode":"SYNC","persistence":{"remote-store":{"hotrod-wrapping":true,"raw-values":true,"cache":"gustavo","shared":true,"segmented":false,"remote-server":{"host":"127.0.0.1","port":11222}}}}}'   http://127.0.0.1:12222/rest/v2/caches/gustavo
      

       

      6) Trigger the sync-data operation:

      curl --digest -u user:user -XPOST "http://127.0.0.1:12222/rest/v2/caches/gustavo?action=sync-data"
      

       

       

       

      Show
      1) In a 11.0.x server, disable security, by removing the 'security-realm' attribute from the infinispan.xml file 2) Create cache 'gustavo': curl -v -H "Content-Type: application/json" -d '{ "distributed-cache" :{ "mode" : "SYNC" , "statistics" : true }}' http: //127.0.0.1:11222/ rest /v2/caches/gustavo 3) Insert some data curl -v -d "value1" "http: //127.0.0.1:11222/ rest /v2/caches/gustavo/1" curl -v -d "value2" "http: //127.0.0.1:11222/ rest /v2/caches/gustavo/2" curl -v -d "value3" "http: //127.0.0.1:11222/ rest /v2/caches/gustavo/3"   4) Create user and start a server 12.0.x bin/cli.sh user create user -p user -g deployer bin/server.sh -Dinfinispan.socket.binding.port-offset=1000 5) Create cache with remote store curl -v --digest -u user:user -XPOST -H "Content-Type: application/json" -d '{ "distributed-cache" :{ "mode" : "SYNC" , "persistence" :{ "remote-store" :{ "hotrod-wrapping" : true , "raw-values" : true , "cache" : "gustavo" , "shared" : true , "segmented" : false , "remote-server" :{ "host" : "127.0.0.1" , "port" :11222}}}}}' http: //127.0.0.1:12222/ rest /v2/caches/gustavo   6) Trigger the sync-data operation: curl --digest -u user:user -XPOST "http: //127.0.0.1:12222/ rest /v2/caches/gustavo?action=sync-data"      
    • Undefined

      The sync-data operation succeeds, but running it again causes an error:

      < HTTP/1.1 500 Internal Server Error
      < content-length: 71
      < 
      * Connection #0 to host 127.0.0.1 left intact
      ISPN000287: Unauthorized access: subject 'null' lacks 'EXEC' permission% 
      

              gfernand@redhat.com Gustavo Fernandes (Inactive)
              gfernand@redhat.com Gustavo Fernandes (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: