WT_SESSION::compact() allows you to compact a file: object. This leads to a segfault if you try to compact the local file of a tiered table, which has a name of the form, file:*.wtobj.
We don't expect compact to work on the tiered tables. So we should fix this by detecting it a returning ENOTSUP.
You can reproduce this issue by creating a tiered table and running wt compact on the file:*wtobj entry for the local file. For example run the tiered08 python test with the --perserve option. Use wt list to find the file with the file:*wtojb name. Then run wt compact with that target.
- related to
-
WT-12024 Background compact interrupted by application in test_compact06
- Closed