Skip to content

Conversation

@swagle
Copy link
Contributor

@swagle swagle commented Oct 14, 2019

Ozone pipeline on create and restart, start in allocated state. They are moved into open state after all the pipeline have reported to it. However, this potentially can lead into an issue where the pipeline is still not ready to accept any incoming IO operations.

The pipelines should be marked as ready only after the leader election is complete and leader is ready to accept incoming IO.

Copy link
Contributor

@mukul1987 mukul1987 left a comment

Choose a reason for hiding this comment

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

The patch looks good to me.

Copy link
Contributor

@nandakumar131 nandakumar131 left a comment

Choose a reason for hiding this comment

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

Overall the change looks ok.

@swagle
Copy link
Contributor Author

swagle commented Oct 16, 2019

Thank you @mukul1987 and @nandakumar131 for the reviews.

@mukul1987
Copy link
Contributor

Thanks for updating the patch @swagle. There are some checkstyle issues in the latest patch and there are some test failures regarding pipeline esp along with the safe mode pipeline rules. Can you please take a look at the failures.

@swagle
Copy link
Contributor Author

swagle commented Oct 21, 2019

/retest

@vivekratnavel
Copy link
Contributor

/retest

1 similar comment
@elek
Copy link
Member

elek commented Oct 23, 2019

/retest

Comment on lines -70 to +76
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no real change here, can we revert it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The leaderID was marked as optional.

Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: We can make it strongly typed by making the type as DatanodeDetails

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But if I do that, in order to construct Pipeline from proto, I have to lookup DatanodeDetails based on UUID, which is a map in NodeManager. Not sure why making this into DatanodeDetails is better?

Copy link
Contributor

Choose a reason for hiding this comment

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

It is just that it will be explicit what this UUID represent.

@nandakumar131
Copy link
Contributor

/retest

@nandakumar131
Copy link
Contributor

We can commit this after the Jenkins run.

@nandakumar131
Copy link
Contributor

Test failure seems unrelated, merging this.

@nandakumar131 nandakumar131 merged commit ee8b89a into apache:master Nov 12, 2019
kuenishi added a commit to pfnet/ozone that referenced this pull request Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants