{"record":{"id":"f6101d49b9423531","repo":"apache/cassandra","slug":"unknown-keyspace-table-s-s-f6101d","errorCode":null,"errorMessage":"Unknown keyspace/table %s.%s","messagePattern":"Unknown keyspace/table (.+?)\\.(.+?)","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"src/java/org/apache/cassandra/tools/StandaloneVerifier.java","lineNumber":90,"sourceCode":"        Options options = Options.parseArgs(args);\n        if (!options.force)\n        {\n            System.err.println(\"verify will not run without -f or --force. See CASSANDRA-17017 for details.\");\n            Options.printUsage(Options.getCmdLineOptions());\n            System.exit(1);\n        }\n        initDatabaseDescriptorForTool();\n        ClusterMetadataService.initializeForTools(false);\n        System.out.println(\"sstableverify using the following options: \" + options);\n\n        List<SSTableReader> sstables = new ArrayList<>();\n        int exitCode = 0;\n        try\n        {\n            boolean hasFailed = false;\n\n            if (Schema.instance.getTableMetadata(options.keyspaceName, options.cfName) == null)\n                throw new IllegalArgumentException(String.format(\"Unknown keyspace/table %s.%s\",\n                                                                 options.keyspaceName,\n                                                                 options.cfName));\n\n            // Do not load sstables since they might be broken\n            Keyspace keyspace = Keyspace.openWithoutSSTables(options.keyspaceName);\n            ColumnFamilyStore cfs = keyspace.getColumnFamilyStore(options.cfName);\n\n            OutputHandler handler = new OutputHandler.SystemOutput(options.verbose, options.debug);\n            Directories.SSTableLister lister = cfs.getDirectories().sstableLister(Directories.OnTxnErr.THROW).skipTemporary(true);\n\n            // Verify sstables\n            for (Map.Entry<Descriptor, Set<Component>> entry : lister.list().entrySet())\n            {\n                Set<Component> components = entry.getValue();\n                if (!components.containsAll(entry.getKey().getFormat().primaryComponents()))\n                    continue;\n\n                try","sourceCodeStart":72,"sourceCodeEnd":108,"githubUrl":"https://github.com/apache/cassandra/blob/88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1/src/java/org/apache/cassandra/tools/StandaloneVerifier.java#L72-L108","documentation":"StandaloneVerifier.main checks early that the requested table exists: Schema.instance.getTableMetadata(options.keyspaceName, options.cfName) must be non-null, otherwise it throws IllegalArgumentException. Verification cannot run without the table definition.","triggerScenarios":"Running the standalone verifier with a --keyspace/--table pair absent from the offline-loaded schema.","commonSituations":"Typo or case mistake in names; verifying sstables from another cluster where the table doesn't exist locally; table dropped before verification; missing schema files so lookup fails.","solutions":["Verify the keyspace/table names with cqlsh and fix the arguments","Ensure the tool runs where the schema for the table is present","Recreate or restore the schema if the table was dropped"],"exampleFix":"// before\nStandaloneVerifier ks1 ordes\n// after\nStandaloneVerifier ks1 orders","handlingStrategy":"validation","validationCode":"if (Schema.instance.getTableMetadata(ks, cf) == null)\n    throw new IllegalArgumentException(\"Unknown keyspace/table \" + ks + \".\" + cf);","typeGuard":null,"tryCatchPattern":"try { StandaloneVerifier.main(args); }\ncatch (IllegalArgumentException e) {\n    if (e.getMessage().contains(\"Unknown keyspace/table\")) {\n        // fix the keyspace/table arguments\n    } else throw e;\n}","preventionTips":["Verify the exact names via DESCRIBE before running the verifier","Run the verifier on a node that knows the table's schema","Check the table wasn't dropped/renamed since the sstables were copied"],"tags":["cli","schema","offline-tools"],"backgroundTag":"resource-not-found","analyzedSha":"88fd0f6a0eaed8943f05ac9e8f947882b8ddc8f1","analyzedAt":"2026-09-10T07:29:22.284Z","contentChangedAt":"2026-09-10T07:29:22.284Z","schemaVersion":2},"datasetVersion":"2026-09-14T16:17:12.679Z"}