ISSUE DESCRIPTION [BUG] Glue BatchDeleteTable is unsupported Service AWS Glue AWS API…
- User
ISSUE DESCRIPTION
[BUG] Glue BatchDeleteTable is unsupported
Service
AWS API Action
Expected behavior
AWS behavior supports
BatchDeleteTable. When the request contains one existing table and one missing table, AWS deletes the existing table and returns anErrorsentry for the missing table.AWS behavior verified with AWS CLI:
json{ "Errors": [ { "TableName": "missing_table", "ErrorDetail": { "ErrorCode": "EntityNotFoundException", "ErrorMessage": "Table missing_table not found" } } ] }A subsequent
GetTablefor the existing table returnsEntityNotFoundException.Actual behavior
Floci
floci/floci:1.5.22rejectsBatchDeleteTableas an unsupported action.textaws: [ERROR]: An error occurred (InvalidAction) when calling the BatchDeleteTable operation: Action BatchDeleteTable is not supportedReproduction
bashendpoint=http://localhost:4566 export AWS_ACCESS_KEY_ID=<redacted-secret> AWS_SECRET_ACCESS_KEY=<redacted-secret> AWS_DEFAULT_REGION=us-east-1 db=test_floci_batch_delete aws --endpoint-url "$endpoint" glue create-database --database-input "Name=$db" aws --endpoint-url "$endpoint" glue create-table \ --database-name "$db" \ --table-input 'Name=existing_table,StorageDescriptor={Columns=[{Name=id,Type=int}]}' aws --endpoint-url "$endpoint" glue batch-delete-table \ --database-name "$db" \ --tables-to-delete existing_table missing_table Assistant
Let me start by exploring the repository structure to understand the
Assistant
Now let me look at the GlueJsonHandler to see how the routing and actions work.
Assistant
Let me look at the existing test structure to understand patterns used:
Assistant
Let me explore the GlueJsonHandler test and check how it's wired up:
Assistant
Let me check the AwsException class and look at the model classes:
Assistant
Let me look at how AWS Glue's
BatchDeleteTableshould be structured. Let me also search for any existing batch delete patterns:Assistant
Let me look at the ImageFailure class to understand the pattern:
Assistant
Let me check the StorageBackend and the existing tests for GlueJsonHandler if any:
Assistant
Let me run the existing tests to make sure I have a working baseline:
Assistant
Now I have a good understanding. Let me create a reproduction script first:
Assistant
Let me also write a unit test reproducing the issue and then make my fix:
Assistant
Let me also check the Glue integration tests:
Assistant
Let me look at how integration tests are structured:
Assistant
Now I have enough context. Let me start implementing the fix.
Step 1: Add the
BatchDeleteTableErrorrecord andbatchDeleteTablesmethod toGlueService.java.Assistant
Now I have a clear plan. Let me implement the changes.
Step 1: Add the
BatchDeleteTableErrorrecord andbatchDeleteTablesmethod toGlueService.java.Assistant
Now let me add the
batchDeleteTablesmethod right afterdeleteTable:Assistant
Let me use a different approach with a here-doc:
Assistant
Now let me add the
BatchDeleteTableErrorrecord nearUserDefinedFunctionPage:Assistant
The perl escape of
{@link ...}got eaten. Let me fix that:Assistant
Let me try a different approach to fix the doc comment:
Assistant
Now let me verify the file compiles by trying to build:
Assistant
Now let me add the
BatchDeleteTablecase in theGlueJsonHandler.java:Assistant
Now let me add the
handleBatchDeleteTablemethod. First, let me find a good place to add it (near other Delete* handlers):Assistant
Now let me add
handleBatchDeleteTablemethod right afterhandleDeleteUserDefinedFunction:Assistant
Now let me verify the compilation:
Assistant
Let me also verify the existing tests still pass:
Assistant
Let me create a small temporary script to verify the implementation works:
Assistant
All test cases work as expected. Let me clean up the temporary files and verify the full test suite still passes:
Assistant
Now let me also test with
TablesToDeleteas null (which may not be normal but should be handled gracefully):Assistant
All edge cases work correctly. Let me clean up and run the full test suite:
Assistant
Now let me run a broader set of tests to make sure I didn't break anything:
Assistant
All 152 Glue-related tests pass. Let me also run a full test pass to be extra sure I haven't broken anything elsewhere:
Assistant
The test failures are due to Docker unavailability in the test environment, not my changes. Let me verify by looking at the surefire reports:
Assistant
The failures are all in API Gateway/WebSocket tests (require Docker socket, not available in this environment). Let me verify the Glue-related tests are still passing:
Assistant
No failures in Glue tests! Let me also confirm by running just the Glue tests one more time:
Assistant
All 152 Glue tests pass. Let me also run the test that explicitly tests the AwsJson11Controller routing to make sure I didn't break anything:
Assistant
Let me view the final state of both files to confirm everything is correct:
Assistant
Let me clean up the leftover test log file:
Assistant
Let me also verify my final implementation by checking the
git statusto ensure I haven't modified any tests:Assistant
Only the two source files are modified. No test files are modified. Let me also do one final verification by running the Glue-related tests one more time:
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.