Giter Club home page Giter Club logo

Comments (1)

zhyass avatar zhyass commented on June 10, 2024

The log indicates that at 01:37:38, a request was made to put a table lock with an expiration time of 10 seconds. At 01:37:48, the put operation succeeded, but by then the table lock had already expired, leading to an error.

2024-03-21T01:37:38.323630Z DEBUG databend_common_meta_client::grpc_client: src/meta/client/src/grpc_client.rs:264 Meta ClientHandle send request to meta client worker request=ClientWorkerRequest { request_id: 10707, req: Txn(TxnRequest { condition: [TxnCondition { key: "__fd_table_by_id/147", expected: Eq, target: Some(Seq(171)) }, TxnCondition { key: "__fd_table_lock/147/515", expected: Eq, target: Some(Seq(0)) }], if_then: [TxnOp { request: Some(Put(TxnPutRequest { key: "__fd_table_lock/147/515", value: [10, 4, 114, 111, 111, 116, 18, 22, 121, 77, 114, 54, 56, 66, 49, 81, 66, 120, 90, 80, 76, 119, 113, 80, 76, 51, 68, 100, 118, 50, 26, 36, 54, 101, 57, 50, 102, 98, 57, 100, 45, 54, 50, 51, 54, 45, 52, 101, 51, 100, 45, 97, 57, 49, 51, 45, 55, 99, 100, 98, 101, 50, 57, 97, 49, 53, 98, 102, 34, 33, 50, 48, 50, 52, 45, 48, 51, 45, 50, 49, 32, 48, 49, 58, 51, 55, 58, 51, 56, 46, 51, 50, 51, 53, 56, 51, 50, 57, 48, 32, 85, 84, 67, 160, 6, 83, 168, 6, 24], prev_value: true, expire_at: Some(1710985068), ttl_ms: None })) }], else_then: [] }) }
2024-03-21T01:37:38.323687Z DEBUG databend_common_meta_client::grpc_client: src/meta/client/src/grpc_client.rs:461 MetaGrpcClient worker handle request worker_request=ClientWorkerRequest { request_id: 10707, req: Txn(TxnRequest { condition: [TxnCondition { key: "__fd_table_by_id/147", expected: Eq, target: Some(Seq(171)) }, TxnCondition { key: "__fd_table_lock/147/515", expected: Eq, target: Some(Seq(0)) }], if_then: [TxnOp { request: Some(Put(TxnPutRequest { key: "__fd_table_lock/147/515", value: [10, 4, 114, 111, 111, 116, 18, 22, 121, 77, 114, 54, 56, 66, 49, 81, 66, 120, 90, 80, 76, 119, 113, 80, 76, 51, 68, 100, 118, 50, 26, 36, 54, 101, 57, 50, 102, 98, 57, 100, 45, 54, 50, 51, 54, 45, 52, 101, 51, 100, 45, 97, 57, 49, 51, 45, 55, 99, 100, 98, 101, 50, 57, 97, 49, 53, 98, 102, 34, 33, 50, 48, 50, 52, 45, 48, 51, 45, 50, 49, 32, 48, 49, 58, 51, 55, 58, 51, 56, 46, 51, 50, 51, 53, 56, 51, 50, 57, 48, 32, 85, 84, 67, 160, 6, 83, 168, 6, 24], prev_value: true, expire_at: Some(1710985068), ttl_ms: None })) }], else_then: [] }) }
2024-03-21T01:37:38.323693Z DEBUG h2::codec::framed_read: /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/h2-0.3.24/src/codec/framed_read.rs:360 received frame=Headers { stream_id: StreamId(4109), flags: (0x4: END_HEADERS) }
2024-03-21T01:37:38.323765Z DEBUG h2::codec::framed_read: /opt/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/h2-0.3.24/src/codec/framed_read.rs:360 received frame=Headers { stream_id: StreamId(4107), flags: (0x4: END_HEADERS) }
2024-03-21T01:37:38.323775Z DEBUG databend_common_meta_client::grpc_client: src/meta/client/src/grpc_client.rs:1081 MetaGrpcClient::transaction request req=TxnRequest{ if:[__fd_table_by_id/147 == seq(171),__fd_table_lock/147/515 == seq(0)] then:[Put(Put key=__fd_table_lock/147/515 expire_at: SystemTime { tv_sec: 1710985, tv_nsec: 68000000 })] else:[] }
2024-03-21T01:37:48.023605Z  WARN databend_common_meta_client::grpc_client: src/meta/client/src/grpc_client.rs:605 MetaGrpcClient slow request Txn to 127.0.0.1:9191 takes 9699 ms: Txn(TxnRequest { condition: [TxnCondition { key: "__fd_table_by_id/147", expected: Eq, target: Some(Seq(171)) }, TxnCondition { key: "__fd_table_lock/147/515", expected: Eq, target: Some(Seq(0)) }], if_then: [TxnOp { request: Some(Put(TxnPutRequest { key: "__fd_table_lock/147/515", value: [10, 4, 114, 111, 111, 116, 18, 22, 121, 77, 114, 54, 56, 66, 49, 81, 66, 120, 90, 80, 76, 119, 113, 80, 76, 51, 68, 100, 118, 50, 26, 36, 54, 101, 57, 50, 102, 98, 57, 100, 45, 54, 50, 51, 54, 45, 52, 101, 51, 100, 45, 97, 57, 49, 51, 45, 55, 99, 100, 98, 101, 50, 57, 97, 49, 53, 98, 102, 34, 33, 50, 48, 50, 52, 45, 48, 51, 45, 50, 49, 32, 48, 49, 58, 51, 55, 58, 51, 56, 46, 51, 50, 51, 53, 56, 51, 50, 57, 48, 32, 85, 84, 67, 160, 6, 83, 168, 6, 24], prev_value: true, expire_at: Some(1710985068), ttl_ms: None })) }], else_then: [] }) request_id=10707
2024-03-21T01:37:48.023668Z DEBUG databend_common_meta_client::grpc_client: src/meta/client/src/grpc_client.rs:569 MetaGrpcClient send response to the handle request_id=10707 resp=Txn(Ok(TxnReply { success: true, responses: [TxnOpResponse { response: Some(Put(TxnPutResponse { key: "__fd_table_lock/147/515", prev_value: None })) }], error: "" }))

from databend.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.