Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

TAJO-985: Client API should be non-blocking#99

Closed
jinossy wants to merge 10 commits intoapache:masterfrom
jinossy:TAJO-985
Closed

TAJO-985: Client API should be non-blocking#99
jinossy wants to merge 10 commits intoapache:masterfrom
jinossy:TAJO-985

Conversation

@jinossy
Copy link
Copy Markdown
Member

@jinossy jinossy commented Jul 31, 2014

The query status synchronization on state machine always wait for time (event processing time) before status changes. If a lot of time are being processed to the event dispatcher, client api(getStatus, getProgress) will be waiting for changed event status. and query will be session timed out.

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.

The line is longer than 120 columns.

@jinossy
Copy link
Copy Markdown
Member Author

jinossy commented Aug 5, 2014

Thank you for the review. I reflected your comments.

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.

I think that the variable name async should be nonblocking.

@hyunsik
Copy link
Copy Markdown
Member

hyunsik commented Aug 11, 2014

The main idea looks good to me. It will mitigate lock contention problem.

I have one suggestion. How about changing getState(boolean) and getState signatures into different names? Since the uses of them may be sensitive, we need to know what we invoke more apparently.

I would like to suggest getSynchronizedState() and getState(). It's just a suggestion. The decision is up to you.

@jinossy
Copy link
Copy Markdown
Member Author

jinossy commented Aug 11, 2014

@hyunsik good idea.

…into TAJO-985

Conflicts:
	tajo-client/src/main/java/org/apache/tajo/cli/TajoCli.java
@jinossy
Copy link
Copy Markdown
Member Author

jinossy commented Aug 11, 2014

I’ve reflects your suggestion.

@hyunsik
Copy link
Copy Markdown
Member

hyunsik commented Aug 18, 2014

+1

The patch looks nice to me. Ship it.

@hyunsik
Copy link
Copy Markdown
Member

hyunsik commented Aug 18, 2014

The word 'async' was changed during the review. So, I think that the issue title also should be changed to proper name. Could you change the title before committing?

@jinossy jinossy changed the title TAJO-985: Client API should be async TAJO-985: Client API should be non-blocking Aug 18, 2014
@jinossy
Copy link
Copy Markdown
Member Author

jinossy commented Aug 18, 2014

Thank you for the review.
I've just committed it.

@jinossy jinossy closed this Aug 18, 2014
babokim pushed a commit to babokim/tajo that referenced this pull request Dec 11, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants