Thanks for confirming Hyun,
There are some other posts where users have compacted the secondary(s) first (one by one) before compacting the primary:
- Compact a Collection
- Can't run compact command on secondary nodes (will not run compact on an active replica set primary)
If you run into any particular issues with your cluster you can try contacting the Atlas in-app chat support team.
Regards,
Jason