Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[venus-market]订单过滤器缺少错误信息日志 #5834

Closed
1 of 11 tasks
YiRuiLiher opened this issue Mar 17, 2023 · 0 comments · Fixed by ipfs-force-community/droplet#329
Closed
1 of 11 tasks

[venus-market]订单过滤器缺少错误信息日志 #5834

YiRuiLiher opened this issue Mar 17, 2023 · 0 comments · Fixed by ipfs-force-community/droplet#329
Assignees
Labels
C-bug Category: This is a bug CU-force-community Category: from force community

Comments

@YiRuiLiher
Copy link
Collaborator

链服务模块 / Chain Service Components

  • venus
  • venus-auth
  • venus-gateway
  • venus-messager
  • venus-miner
  • 文档 / docs

订单服务模块 / Deal Service Components

  • venus-market
  • 文档 / docs

算力服务模块 / Storage Power Service Components

  • venus-sector-manager
  • venus-worker
  • 文档 / docs

版本 / Version

commit e015693c9575ed482c12e195195aaa2130e5b494 (HEAD -> master

描述 / Describe the Bug

当订单过滤器中配置的脚本出现错误时,venus-market日志并不会输出错误相关的信息,反而会把错误信息抛给下单的客户端

日志 / Logging Information

-----------venus-market-----------------log-------------
2023/03/17 06:01:27 /root/venus-market/models/mysql/storage_deal.go:316 record not found
[0.986ms] [rows:0] SELECT * FROM `storage_deals` WHERE proposal_cid = 'bafyreigikwft3u6wywqxu3qamee4mds27fcuqn6cljxz2xjssn6gp24o34' LIMIT 1
---------------market-client------------log----------------
2023-03-17T06:01:27.717Z	DEBUG	swarm2	swarm/swarm.go:348	[12D3KooWMjsWJQmRSgRwA6sTSFrhtXr6u7aBdBzkrAs7KVyNxV6o] opening stream to peer [12D3KooWMswqgPyWaWtQfWHczqSW8XQNmW9jQZjEtwPbvNT6hfpx]
2023-03-17T06:01:27.775Z	DEBUG	storagemrkt	storagemarket/types.go:197	adding log for stage <StorageDealFundsReserved> msg <unexpected deal status while waiting for data request: 11 (StorageDealFailing). Provider message: An error occurred:  'asdas'
>
2023-03-17T06:01:27.776Z	DEBUG	storagemarket_impl	impl/client.go:598	process storage client listeners	{"name": "ClientEventUnexpectedDealState", "proposal cid": "bafyreigikwft3u6wywqxu3qamee4mds27fcuqn6cljxz2xjssn6gp24o34"}
2023-03-17T06:01:27.776Z	INFO	markets	utils/loggers.go:16	storage client event	{"name": "ClientEventUnexpectedDealState", "proposal CID": "bafyreigikwft3u6wywqxu3qamee4mds27fcuqn6cljxz2xjssn6gp24o34", "state": "StorageDealFailing", "message": "unexpected deal status while waiting for data request: 11 (StorageDealFailing). Provider message: An error occurred:  'asdas'\n"}
2023-03-17T06:01:27.776Z	DEBUG	storagemarket_impl	impl/client.go:598	process storage client listeners	{"name": "ClientEventUnexpectedDealState", "proposal cid": "bafyreigikwft3u6wywqxu3qamee4mds27fcuqn6cljxz2xjssn6gp24o34"}
2023-03-17T06:01:27.776Z	ERROR	storagemarket_impl	clientstates/client_states.go:324	deal bafyreigikwft3u6wywqxu3qamee4mds27fcuqn6cljxz2xjssn6gp24o34 failed: unexpected deal status while waiting for data request: 11 (StorageDealFailing). Provider message: An error occurred:  'asdas'

重现步骤 / Repo Steps

python脚本

import json
import sys

try:
    json_str = sys.stdin.read()
    data = json.loads(json_str)

    if data['ClientDealProposal']['Proposal']['PieceSize'] < 2048:
        print("")
        sys.exit(0)
    else:
        print("PieceSize is greater than or equal to 2048. Exiting with code 1.")
        sys.exit(1)
except Exception as e:
    print("An error occurred: ", e)
    sys.exit(1)

问题描述

  1. 我希望通过这段脚本过滤并且拒绝所有PieceSize 大于 2048的订单。
  2. 如果代码执行失败就给出“An error occurred: ”相关的日志
  3. 但是从结果和日志中看,这段脚本并没有执行成功,并且错误日志给到market-client,而运行脚本的venus-market却并没有任何错误信息
  4. 这似乎非常不符合常理
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug CU-force-community Category: from force community
Projects
Status: Done
3 participants