Skip to content

[DNM] client: add more debug logs for setxattr - #37174

Closed
xiubli wants to merge 1 commit into
ceph:masterfrom
xiubli:dnm1
Closed

xiubli wants to merge 1 commit into
ceph:masterfrom
xiubli:dnm1

Conversation

@xiubli

@xiubli xiubli commented Sep 16, 2020 •

Copy link
Copy Markdown
Member

Just for testing to debug issues#47294.

For: https://tracker.ceph.com/issues/47294
Signed-off-by: Xiubo Li [email protected]

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@xiubli
xiubli requested a review from batrick September 16, 2020 01:48
@batrick

batrick commented Sep 22, 2020

Copy link
Copy Markdown
Member

jenkins test api

batrick added a commit to batrick/ceph that referenced this pull request Nov 7, 2020
* refs/pull/37174/head:
	client: add more debug log for setxattr
@batrick

batrick commented Nov 16, 2020

Copy link
Copy Markdown
Member

@lxbsz please rebase.

@xiubli

xiubli commented Nov 17, 2020

Copy link
Copy Markdown
Member Author

@lxbsz please rebase.

Done. Thanks.

@batrick

batrick commented Nov 18, 2020

Copy link
Copy Markdown
Member

jenkins test docs

batrick added a commit to batrick/ceph that referenced this pull request Dec 21, 2020
* refs/pull/37174/head:
	client: add more debug log for setxattr
batrick added a commit to batrick/ceph that referenced this pull request Dec 22, 2020
* refs/pull/37174/head:
	client: add more debug log for setxattr
batrick added a commit to batrick/ceph that referenced this pull request Dec 22, 2020
* refs/pull/37174/head:
	client: add more debug log for setxattr
batrick added a commit to batrick/ceph that referenced this pull request Dec 22, 2020
* refs/pull/37174/head:
	client: add more debug log for setxattr
batrick added a commit to batrick/ceph that referenced this pull request Dec 22, 2020
* refs/pull/37174/head:
	client: add more debug log for setxattr
batrick added a commit to batrick/ceph that referenced this pull request Dec 23, 2020
* refs/pull/37174/head:
	client: add more debug log for setxattr
@batrick

batrick commented Dec 24, 2020

Copy link
Copy Markdown
Member

Fix for this problem has been merged: https://tracker.ceph.com/issues/47294

Thanks @lxbsz

@batrick batrick closed this Dec 24, 2020
@batrick

batrick commented Jan 8, 2021

Copy link
Copy Markdown
Member

@batrick batrick reopened this Jan 8, 2021

@batrick batrick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and drop other debug lines. Then we can merge this.

Comment thread src/client/Client.cc
// For setting pool of layout, MetaRequest need osdmap epoch.
// There is a race which create a new data pool but client and mds both don't have.
// Make client got the latest osdmap which make mds quickly judge whether get newer osdmap.
ldout(cct, 1) << __func__ << ":" << __LINE__ << " name " << name << " value " << value << dendl;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ldout(cct, 1) << __func__ << ":" << __LINE__ << " name " << name << " value " << value << dendl;
ldout(cct, 15) << __func__ << ": name=" << name << dendl;

Comment thread src/client/Client.cc

if (r == -ENOENT) {
bs::error_code ec;
ldout(cct, 1) << __func__ << ":" << __LINE__ << " name " << name << " value " << value << dendl;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ldout(cct, 1) << __func__ << ":" << __LINE__ << " name " << name << " value " << value << dendl;
ldout(cct, 20) << __func__ << ": waiting for latest osdmap" << dendl;

Comment thread src/client/Client.cc
bs::error_code ec;
ldout(cct, 1) << __func__ << ":" << __LINE__ << " name " << name << " value " << value << dendl;
objecter->wait_for_latest_osdmap(ca::use_blocked[ec]);
ldout(cct, 1) << __func__ << ":" << __LINE__ << " name " << name << " value " << value << dendl;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ldout(cct, 1) << __func__ << ":" << __LINE__ << " name " << name << " value " << value << dendl;
ldout(cct, 20) << __func__ << ": finished waiting for latest osdmap: " << ec << dendl;

@batrick

batrick commented Jan 9, 2021

Copy link
Copy Markdown
Member

superseded by #38836

@batrick batrick closed this Jan 9, 2021
@xiubli

xiubli commented Jan 10, 2021

Copy link
Copy Markdown
Member Author

Sorry, missed this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants