Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-19014

repair_admin summarize-pending command is throwing OpenDataException

    XMLWordPrintableJSON

Details

    Description

      Execution of repair_admin summarize-pending is throwing the following exception:

      error: Item names do not match CompositeType: names in items but not in CompositeType: []; names in CompositeType but not in items: [failed]
      -- StackTrace --
      javax.management.openmbean.OpenDataException: Item names do not match CompositeType: names in items but not in CompositeType: []; names in CompositeType but not in items: [failed]
              at javax.management.openmbean.CompositeDataSupport.<init>(CompositeDataSupport.java:220)
              at javax.management.openmbean.CompositeDataSupport.<init>(CompositeDataSupport.java:176)
              at org.apache.cassandra.repair.consistent.admin.PendingStats.toComposite(PendingStats.java:86)
              at org.apache.cassandra.service.ActiveRepairService.getPendingStats(ActiveRepairService.java:296)
              at org.apache.cassandra.tools.nodetool.RepairAdmin$SummarizePendingCmd.execute(RepairAdmin.java:112)
              at org.apache.cassandra.tools.NodeTool$NodeToolCmd.runInternal(NodeTool.java:358)
              at org.apache.cassandra.tools.NodeTool$NodeToolCmd.run(NodeTool.java:343)
              at org.apache.cassandra.tools.NodeTool.execute(NodeTool.java:246)
              at org.apache.cassandra.distributed.impl.Instance$DTestNodeTool.execute(Instance.java:996)
              at org.apache.cassandra.distributed.impl.Instance.lambda$nodetoolResult$40(Instance.java:906)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
              at java.lang.Thread.run(Thread.java:750) 

      The bug is caused by the fact that the list of fields at https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/repair/consistent/admin/PendingStats.java#L78-L82 does not align with https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/repair/consistent/admin/PendingStats.java#L35.

      Attachments

        Issue Links

          Activity

            People

              szymon.miezal Szymon Miezal
              szymon.miezal Szymon Miezal
              Szymon Miezal
              Brandon Williams, Stefan Miklosovic
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m