dmlc / dmlc-core

A common bricks library for building scalable and portable distributed machine learning.
Apache License 2.0
864 stars 519 forks source link

Why ref_counter of HdfsFileSystem isn't designed with atomic_int_type ? #642

Open JingLiofLiJing opened 3 years ago

JingLiofLiJing commented 3 years ago

If last HDFSStream or singleton HdfsFilesystem object is descructed, i'm confused about "refcounter[0] -= 1" might not achieve the desired effect, which will lead to hdfsFS not disconnected. Could you pls give me some hint about this question?