Skip to content

Commit bc2a66b

Browse files
WalBehamotl
authored andcommitted
XMover/problematic-translogs: Remove allocation info from problematic shards query
1 parent 1a92c3f commit bc2a66b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cratedb_toolkit/admin/xmover/util/database.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -541,11 +541,8 @@ def get_problematic_shards(
541541
s.routing_state,
542542
s.node['name'] as node_name,
543543
s.node['id'] as node_id,
544-
s."primary",
545-
a.current_state,
546-
a.explanation
544+
s."primary"
547545
FROM sys.shards s
548-
LEFT JOIN sys.allocations a ON (s.table_name = a.table_name AND s.id = a.shard_id)
549546
LEFT JOIN information_schema.table_partitions p
550547
ON s.table_name = p.table_name
551548
AND s.schema_name = p.table_schema
@@ -569,8 +566,6 @@ def get_problematic_shards(
569566
"node_name": row[6],
570567
"node_id": row[7],
571568
"primary": row[8],
572-
"current_state": row[9],
573-
"explanation": row[10],
574569
}
575570
)
576571

0 commit comments

Comments
 (0)