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

hammer: osdc/Objecter: If osd full, it should pause read op which w/ rwordered flag #13784

Closed
wants to merge 4 commits into from

Conversation

shinobu-x
Copy link
Contributor

@shinobu-x shinobu-x changed the title hammer: osdc/Objecter: If osd full, it should pause read op which w/ rwordered flag DNM: hammer: osdc/Objecter: If osd full, it should pause read op which w/ rwordered flag Mar 3, 2017
@shinobu-x shinobu-x force-pushed the wip-19139-hammer branch 5 times, most recently from d609dab to 5100c5e Compare March 4, 2017 04:00
@shinobu-x
Copy link
Contributor Author

retest this please

@shinobu-x shinobu-x force-pushed the wip-19139-hammer branch 3 times, most recently from ac3d3a1 to ffa2f84 Compare March 9, 2017 07:03
@shinobu-x shinobu-x closed this Mar 9, 2017
@shinobu-x shinobu-x reopened this Mar 9, 2017
@shinobu-x shinobu-x force-pushed the wip-19139-hammer branch 2 times, most recently from f14e8b8 to 34e2485 Compare March 9, 2017 07:31
FULL_TRY = try to do the op; ENOSPC if it results in a net increase is
space.  client must cope.

FULL_FORCE = do the op even if it consumes space.  The MDS will use this.
We should restrict this based on the OSD cap (* vs w, probably).

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 95055e7)
resend writes after pool loses full flag

Signed-off-by: xinxin shu <xinxin.shu@intel.com>
(cherry picked from commit dbcf2e4)

Conflicts:
	src/osdc/Objecter.cc
	src/osdc/Objecter.h
liewegas and others added 2 commits March 10, 2017 01:33
If a request has the FULL_TRY or FULL_FORCE flag, send it despite a full
pool or cluster.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit a6a6923)
…d flag.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
(cherry picked from commit 07b2a22)
@shinobu-x shinobu-x changed the title DNM: hammer: osdc/Objecter: If osd full, it should pause read op which w/ rwordered flag hammer: osdc/Objecter: If osd full, it should pause read op which w/ rwordered flag Mar 9, 2017
@shinobu-x
Copy link
Contributor Author

retest this please

1 similar comment
@shinobu-x
Copy link
Contributor Author

retest this please

@@ -410,6 +410,8 @@ enum {
pool uses pool snaps */
CEPH_OSD_FLAG_REDIRECTED = 0x200000, /* op has been redirected */
CEPH_OSD_FLAG_KNOWN_REDIR = 0x400000, /* redirect bit is authoritative */
CEPH_OSD_FLAG_FULL_TRY = 0x800000, /* try op despite full flag */

Choose a reason for hiding this comment

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

@@ -898,7 +898,8 @@ bool Objecter::ms_dispatch(Message *m)

void Objecter::_scan_requests(OSDSession *s,
bool force_resend,
bool force_resend_writes,
bool cluster_full,
map<int64_t, bool> *pool_full_map,

Choose a reason for hiding this comment

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

@shinobu-x Looks indent is incorrect

@@ -2357,8 +2379,9 @@ bool Objecter::is_pg_changed(

bool Objecter::target_should_be_paused(op_target_t *t)
{
const pg_pool_t *pi = osdmap->get_pg_pool(t->base_oloc.pool);

Choose a reason for hiding this comment

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

@shinobu-x (NIT) Coding guide says about const names:
https://google.github.io/styleguide/cppguide.html#Variable_Names
Your thought please?

@smithfarm
Copy link
Contributor

Hammer is EOL.

@smithfarm smithfarm closed this Sep 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants