Skip to content

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

Open
Divneet18 wants to merge 1 commit intoapache:masterfrom
Divneet18:PHOENIX-7233
Open

PHOENIX-7233 : CQSI openConnection should timeout to unblock other connection threads#1871
Divneet18 wants to merge 1 commit intoapache:masterfrom
Divneet18:PHOENIX-7233

Conversation

@Divneet18
Copy link
Copy Markdown
Contributor

@Divneet18 Divneet18 commented Apr 2, 2024

Jira: PHOENIX-7233

}
});
try {
supplyFuture.get(120000, MILLISECONDS);
Copy link
Copy Markdown
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
Copy Markdown
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