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

PHOENIX-7233 : CQSI openConnection should timeout to unblock other connection threads #1871

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Divneet18
Copy link
Contributor

@Divneet18 Divneet18 commented Apr 2, 2024

Jira: PHOENIX-7233

}
});
try {
supplyFuture.get(120000, MILLISECONDS);
Copy link
Contributor

Choose a reason for hiding this comment

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

The timeout should be a configurable value

try {
supplyFuture.get(120000, MILLISECONDS);
} catch (TimeoutException e) {
LOGGER.error("openConnection did not return any value");
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are we swallowing the exception rather than rethrowing it? Shouldn't the timeout be a failure condition rather than proceeding?

@virajjasani virajjasani changed the title PHOENIX 7233 : CQSI openConnection should timeout to unblock other connection threads PHOENIX-7233 : CQSI openConnection should timeout to unblock other connection threads Apr 10, 2024
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.

2 participants