-
Notifications
You must be signed in to change notification settings - Fork 46
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
INTERNAL: return partial result if error or cancel occurred in getSome method of BulkGetFuture #808
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ฆฌ๋ทฐ ์๋ฃ
try { | ||
return internalGet(duration, unit, false); | ||
} catch (TimeoutException e) { | ||
} catch (TimeoutException | ExecutionException e) { | ||
throw new AssertionError("Something went wrong...", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Timeout๊ณผ Execution์ ๋ณ๋ ๋ฉ์ธ์ง๋ก ์ฒ๋ฆฌํ๋ฉด ์ข์ ๊ฒ ๊ฐ์์
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์ ์๊ฐ์๋ timeout๊ณผ execution ์์ธ๋ internalGet(duration, unit, false) ๋ฉ์๋๋ฅผ ์ฝ๋๋๋ก ์ํ ์ ๋ฐ์ํ์ง ์๊ธฐ ๋๋ฌธ์ ๋ณ๋ ๋ฉ์์ง๋ก ์ฒ๋ฆฌํ ํ์๊น์ง๋ ์์ ๊ฒ ๊ฐ์ต๋๋ค.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์๋๋ฉด ๋ง์ํ์ ๋๋ก ํด๋น ์์ธ๋ ๋ฐ์ํ์ง ์๋๋ค๋ผ๋ ์๋ฌ ๋ฉ์ธ์ง๋ฅผ ๋จ๊ธฐ๋๊ฒ ์ข์ ๊ฒ ๊ฐ๋ค์.
"Something went wrong"์ ๋๋ฌด ์ถ์์ ์ด๋ผ๊ณ ์๊ฐ๋ฉ๋๋ค.
๋๋ ์์ธ ๋์ log.error ์ฃผ์์ ํตํด ureachable ํ ๋ก์ง์ด๋ผ๋ ๊ฒ์ ๋ช
์ํ๋๊ฒ๋ ์ข์๊ฒ ๊ฐ์ต๋๋ค.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๋ ๋ํ ์ผํ ๋ฉ์์ง๋ก ๋ณ๊ฒฝํ์ต๋๋ค.
try { | ||
return internalGet(duration, unit, false); | ||
} catch (TimeoutException e) { | ||
} catch (TimeoutException | ExecutionException e) { | ||
throw new AssertionError("Something went wrong...", e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
์๋๋ฉด ๋ง์ํ์ ๋๋ก ํด๋น ์์ธ๋ ๋ฐ์ํ์ง ์๋๋ค๋ผ๋ ์๋ฌ ๋ฉ์ธ์ง๋ฅผ ๋จ๊ธฐ๋๊ฒ ์ข์ ๊ฒ ๊ฐ๋ค์.
"Something went wrong"์ ๋๋ฌด ์ถ์์ ์ด๋ผ๊ณ ์๊ฐ๋ฉ๋๋ค.
๋๋ ์์ธ ๋์ log.error ์ฃผ์์ ํตํด ureachable ํ ๋ก์ง์ด๋ผ๋ ๊ฒ์ ๋ช
์ํ๋๊ฒ๋ ์ข์๊ฒ ๊ฐ์ต๋๋ค.
โฆe method of BulkGetFuture
๐ Related Issue
โจ๏ธ What I did