fix typo in log message
Fix bug about duplication check logic
Add recent_thread_num option