You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2026/10/26 20:30:13 UTC

(opendal-yinyang) branch xuanwo/managed-sync-reconciliation updated: debug: trace the failing rename transaction condition

This is an automated email from the ASF dual-hosted git repository.

Xuanwo pushed a commit to branch xuanwo/managed-sync-reconciliation
in repository https://gitbox.apache.org/repos/asf/opendal-yinyang.git


The following commit(s) were added to refs/heads/xuanwo/managed-sync-reconciliation by this push:
     new b6d8540  debug: trace the failing rename transaction condition
b6d8540 is described below

commit b6d85405f8a3fe60bbff813014f115bfb630540a
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue Oct 27 04:30:06 2026 +0800

    debug: trace the failing rename transaction condition
    
    Co-authored-by: Chojan Shang <ps...@apache.org>
---
 crates/core/src/transaction.rs | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/crates/core/src/transaction.rs b/crates/core/src/transaction.rs
index c039994..7928c4a 100644
--- a/crates/core/src/transaction.rs
+++ b/crates/core/src/transaction.rs
@@ -145,6 +145,12 @@ impl Transaction {
     pub(crate) async fn apply(&self, snapshot: &Snapshot) -> Result<Option<Delta>> {
         for condition in &self.conditions {
             if !condition.matches(snapshot).await? {
+                eprintln!(
+                    "yy-core: condition mismatch tag={} key={:02x?} expected={:?}",
+                    condition.key.first().copied().unwrap_or(255),
+                    condition.key,
+                    condition.expected
+                );
                 return Ok(None);
             }
         }