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

Web/CLI hangs if cache use cache store and has a lot of entries

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 9.2.1.Final
    • Core
    • None

    Description

      My cache configuration has RocksDB's cache. Cache has a more then 1 000 000 entries.
      And it do usage of Web interfce and CLI impossible.
      As I have investigated, problem can be in class org.infinispan.commands.read.SizeCommand.

      public Integer perform(InvocationContext ctx) throws Throwable {
            long size = cache.keySet().stream().count();
            if (size > Integer.MAX_VALUE) {
               return Integer.MAX_VALUE;
            } else {
               return (int) size;
            }
         }
      

      I think, the code must ask CacheStore for sizing.

      Attachments

        Activity

          People

            Unassigned Unassigned
            schernolyas_jira Sergey Chernolyas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: