JuiceFS v1.0 beta2 发布|进一步提升稳定性

这是 JuiceFS v1.0 正式发布前的第二个 beta 版本,共有 16 位社区伙伴贡献了 150+ 次提交 🎉。本次更新以 Bug 修复和稳定性提升为主,辅以大量的文档更新和测试用例优化,并带来了以下新功能:

由社区开发者秦牧羊(@diluga)发起贡献,在 JuiceFS 插件式元数据引擎架构上新增对 BadgerDB 数据库的支持,为 JuiceFS 元数据存储引擎家族再添新成员!

创建文件系统
$ juicefs format badger://$HOME/badger-data test-volume
挂载文件系统
$ juicefs mount -d badger://$HOME/badger-data /mnt/jfs

与 SQLite 不同之处在于,BadgerDB 的数据库不是单文件,而是一个目录。在上例中,BadgerDB 在 home目录创建 badger-data 数据库目录,挂载文件系统时自然也要使用这个目录的路径。

经过开源社区的共同努力,我们在稳定支持 FUSE-POSIX、S3-Gateway、HDFS、CSI Driver 等存储访问协议的基础上,新增了 WebDAV 访问协议,与 S3 网关的启用方式类似,使用新增的 webdav 子命令可以一键启动 WebDAV 服务器:

$ juicefs webdav redis://127.0.0.1:6379/1 localhost:9007

使用任何支持 WebDAV 协议的客户端访问 localhost:9007 即可读写 JuiceFS 文件系统。

$ juicefs mount redis://mymaster,sentinel.local:26379?route-read=replica /mnt/jfs/ --read-only

即在 URL 中添加参数 route-read=replica 指定该客户端自动从 Redis replicas 读取元数据。

需要注意的是,由于 Redis replica 使用异步更新机制,设置了只读的客户端有时可能会读到较旧版本的元数据。

随着用户规模的不断扩大,我们发现想让各种经验背景的用户都能更好地使用 JuiceFS,一方面需要友好的文档,另一方面要增强 JuiceFS 客户端本身的命令帮助信息。特别是后者,如果问题可以在命令行里得到解决就能大大提升用户的使用体验。

有鉴于此,我们在此更新版本中对客户端的帮助信息进行了以下改进:

[En]

In view of this, we have made the following improvements to the client’s help information in this updated version:

社区小组讨论向我们证明了一件事:即使是经验丰富的老兵,也难免会做傻事!尤其是在创建和修改文件系统时,一些不经意的错误操作可能会覆盖旧数据或导致错误的设置。

[En]

Community group discussions have proved one thing to us: even experienced veterans will inevitably “do stupid things”! Especially when creating and modifying file systems, some inadvertent misoperations may overwrite old data or lead to incorrect settings.

针对这些可能涉及数据安全的操作,我们一直在完善相应的安全检查机制。新的安全机制包括:

[En]

In view of these operations that may involve data security, we have been improving the corresponding security checking mechanism. The new security mechanisms include:

修复的 Bug

  • cmd: fix buffer-size in gc and fsck (#1316)
  • cmd/bench: convert PATH to absolute path (#1305)
  • meta: return EROFS as soon as possible (#1477)
  • meta/redis: fix leaked inodes in Redis (#1353)
  • meta/tkv: fix divide by zero error when dumping meta (#1369)
  • meta/tikv: fix scan of tikv, limiting the upperbound (#1455)
  • meta/memkv: fix scanKeys, returning a sorted list (#1381)
  • meta/sql: delete warning message for empty directory (#1442)
  • meta/sql: fix return value of mustInsert (#1429)
  • vfs: fixed deadlock when truncate a released file handle. (#1383)
  • vfs/trash: fix access to trash dir (#1356)
  • vfs/backup: skip dir objects when scanning meta backups (#1370)
  • vfs/backup: fix incorrect inode number when using subdir (#1385)
  • utils: fix the contention between progress bar and logger (#1436)
  • Windows: fix rename fails because the chunk file is still open (#1315)
  • Windows: fix mkdir on windows platform (#1327)
  • SDK: hadoop: fix umask apply (#1338, #1394)
  • SDK: hadoop: fix libjfs.so load bug (#1458)
  • other: fix legend of “Operations” panel in Grafana template (#1321)

Original: https://www.cnblogs.com/JuiceData/p/15989784.html
Author: JuiceFS
Title: JuiceFS v1.0 beta2 发布|进一步提升稳定性

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/522565/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球