mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-22 20:36:38 +00:00
81ef2882df
Metadata-only replication reuses the whole-object PUT/multipart transports, so in active-active topologies an inbound authorized replication write carried the source's tags, retention, and legal hold verbatim and unconditionally overwrote a category the destination had modified more recently — both sites ended permanently diverged while reporting COMPLETED (rustfs/backlog#1953, audit A4/P1-6). The receiver now judges each category independently under the object write lock: when the destination version's stored internal timestamp is strictly newer than the inbound source timestamp, the local category values and timestamp are kept; the rest of the write proceeds per the inbound metadata and the object-level result stays successful, so a local win never feeds an MRF retry loop. When the inbound category wins, its internal timestamp key is pinned to the source-authored time instead of the receiver-now() value stamped by the object-lock eval_metadata path. No stored timestamp (pre-P1-6 data) or no inbound timestamp keeps today's overwrite behavior. The put_object hook reuses the existing commit-lock WORM-gate read (no extra fanout); complete_multipart_upload adds one gated read under its held lock, and the sender's complete options now carry the three category timestamps so the multipart transport gets the same receiver behavior. Local wins restore the timestamp via insert_str so a MinIO-written single-key version still yields both compatibility keys.
RustFS ECStore - Erasure Coding Storage
High-performance erasure coding storage engine for RustFS distributed object storage
📖 Documentation
· 🐛 Bug Reports
· 💬 Discussions
📖 Overview
RustFS ECStore provides erasure coding storage capabilities for the RustFS distributed object storage system. For the complete RustFS experience, please visit the main RustFS repository.
✨ Features
- Reed-Solomon erasure coding implementation
- Configurable redundancy levels (N+K schemes)
- Automatic data healing and reconstruction
- Multi-drive support with intelligent placement
- Parallel encoding/decoding for performance
- Efficient disk space utilization
📚 Documentation
For comprehensive documentation, examples, and usage guides, please visit the main RustFS repository.
📄 License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
Copyright 2024 RustFS Team
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
RustFS is a trademark of RustFS, Inc.
All other trademarks are the property of their respective owners.
Made with ❤️ by the RustFS Storage Team
