Uploaded image for project: 'IGB'
  1. IGB
  2. IGBF-1111

Exception generated when sorting the Size column in the Cache tab

    Details

    • Sprint:
      Sprint 33

      Description

      When sorting the "Size" column in the Cache tab, the column will often not sort and an exception can be seen in the console when this happens.

      To reproduce:

      1) Attempt to sort the "Size" column of the Cache tab (the column should include some values with a less than symbol "<", because I believe this is what is causing the problem.
      *Observe: The Size column does not sort and an exception is generated in the console:

      Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.math.BigInteger cannot be cast to java.lang.String
      at java.lang.String.compareTo(Unknown Source)
      at javax.swing.table.TableRowSorter$ComparableComparator.compare(Unknown Source)
      at javax.swing.DefaultRowSorter.compare(Unknown Source)
      at javax.swing.DefaultRowSorter.access$100(Unknown Source)
      at javax.swing.DefaultRowSorter$Row.compareTo(Unknown Source)
      at javax.swing.DefaultRowSorter$Row.compareTo(Unknown Source)
      at java.util.ComparableTimSort.countRunAndMakeAscending(Unknown Source)
      at java.util.ComparableTimSort.sort(Unknown Source)
      at java.util.Arrays.sort(Unknown Source)
      at javax.swing.DefaultRowSorter.sortExistingData(Unknown Source)
      at javax.swing.DefaultRowSorter.setSortKeys(Unknown Source)
      at javax.swing.DefaultRowSorter.toggleSortOrder(Unknown Source)
      at javax.swing.plaf.basic.BasicTableHeaderUI$MouseInputHandler.mouseClicked(Unknown Source)
      at java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
      at java.awt.Component.processMouseEvent(Unknown Source)
      at javax.swing.JComponent.processMouseEvent(Unknown Source)
      at java.awt.Component.processEvent(Unknown Source)
      at java.awt.Container.processEvent(Unknown Source)
      at java.awt.Component.dispatchEventImpl(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
      at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
      at java.awt.Container.dispatchEventImpl(Unknown Source)
      at java.awt.Window.dispatchEventImpl(Unknown Source)
      at java.awt.Component.dispatchEvent(Unknown Source)
      at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
      at java.awt.EventQueue.access$500(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.awt.EventQueue$3.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue$4.run(Unknown Source)
      at java.awt.EventQueue$4.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
      at java.awt.EventQueue.dispatchEvent(Unknown Source)
      at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
      at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
      at java.awt.EventDispatchThread.run(Unknown Source)

        Attachments

          Activity

          Hide
          mason Mason Meyer (Inactive) added a comment -

          My testing can confirm that the exception above is no longer being generated when sorting the size column, but I noticed that the Current Cache Size calculation was now off, so I notified the team and am blocking testing on this issue until I hear back.

          Show
          mason Mason Meyer (Inactive) added a comment - My testing can confirm that the exception above is no longer being generated when sorting the size column, but I noticed that the Current Cache Size calculation was now off, so I notified the team and am blocking testing on this issue until I hear back.
          Hide
          mason Mason Meyer (Inactive) added a comment -

          From David:
          "This is because John is rounding up in the Size column to avoid dealing with fractions of a MB. Historically he was using <1, but this led to the sorting bug you reported. Since this isn't a bug lets ignore it. I understand it might be confusing, so we can write a more advanced table column model sometime in the future."

          Since the actual issue in this story has been resolved, I am closing this issue and will create a new issue for the Current Cache Size "miscalculation" if needed.

          Show
          mason Mason Meyer (Inactive) added a comment - From David: "This is because John is rounding up in the Size column to avoid dealing with fractions of a MB. Historically he was using <1, but this led to the sorting bug you reported. Since this isn't a bug lets ignore it. I understand it might be confusing, so we can write a more advanced table column model sometime in the future." Since the actual issue in this story has been resolved, I am closing this issue and will create a new issue for the Current Cache Size "miscalculation" if needed.

            People

            • Assignee:
              mason Mason Meyer (Inactive)
              Reporter:
              mason Mason Meyer (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: