[
https://issues.apache.org/jira/browse/BEAM-13635?focusedWorklogId=712961&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-712961
]
ASF GitHub Bot logged work on BEAM-13635:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 21/Jan/22 16:29
Start Date: 21/Jan/22 16:29
Worklog Time Spent: 10m
Work Description: aromanenko-dev commented on a change in pull request
#16503:
URL: https://github.com/apache/beam/pull/16503#discussion_r789778958
##########
File path:
sdks/java/io/amazon-web-services2/src/main/java/org/apache/beam/sdk/io/aws2/sns/SnsIO.java
##########
@@ -385,6 +378,15 @@ private static boolean isTopicExists(SnsClient client,
String topicArn) {
return result;
}
+ private boolean checkTopicExists() {
+ try (SnsClient client = getSnsClientProvider().getSnsClient()) {
+ client.getTopicAttributes(b -> b.topicArn(getTopicArn()));
+ return true;
+ } catch (NotFoundException | InvalidParameterException e) {
+ return false;
Review comment:
It would be useful to write exception error message into the warn log
here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 712961)
Time Spent: 40m (was: 0.5h)
> [Playground] Restrict execution of RunCode requests for unspecified SDK
> -----------------------------------------------------------------------
>
> Key: BEAM-13635
> URL: https://issues.apache.org/jira/browse/BEAM-13635
> Project: Beam
> Issue Type: Improvement
> Components: beam-playground
> Reporter: Artur Khanin
> Priority: P2
> Labels: beam-playground-backend, beam-playground-sprint-7
> Time Spent: 40m
> Remaining Estimate: 0h
>
> As a Beam Playground {*}Maintainer{*}, I want the service not to serve
> RunCode requests if SDK is unspecified.
> *Acceptance criteria:*
> * SDK_UNSPECIFIED is a valid parameter of the service
> * All requests except RunCode are processed with unspecified SDK
--
This message was sent by Atlassian Jira
(v8.20.1#820001)