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

[RESP] KEYS may cause server to get stuck

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 15.0.6.Final, 15.1.0.Dev02
    • 15.1.0.Dev02
    • RESP
    • None

      Infinispan:

      127.0.0.1:11222> FLUSHDB
      OK
      127.0.0.1:11222> SET aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 1
      OK
      127.0.0.1:11222> KEYS "a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*b"
      -> stuck here <-
      

      Redis

      127.0.0.1:6379> FLUSHDB
      OK
      127.0.0.1:6379> SET aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa 1
      OK
      127.0.0.1:6379> KEYS "a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*a*b"
      (empty array)
      

      Attempt to shut down server shows that netty is still connected:

      ...
      2024-06-28 13:06:29,583 INFO  [o.i.SERVER] ISPN080001: Red Hat Data Grid Server 8.5.0.GA started in 3320ms
      ^C*** Server process (101911) received INT signal ***
      2024-06-28 13:14:30,448 INFO  [o.i.SERVER] ISPN080002: Red Hat Data Grid Server stopping
      2024-06-28 13:14:30,558 WARN  [o.i.s.c.t.NettyTransport] ISPN005007: [id: 0x54c68873, L:/127.0.0.1:11222 - R:/127.0.0.1:43604] is still connected to /127.0.0.1:43604
      

      Test: https://github.com/redis/redis/blob/7.2.5/tests/unit/keyspace.tcl#L497-L501

              rh-ee-jbolina Jose Bolina
              rh-ee-jbolina Jose Bolina
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: