You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@rya.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/01/08 21:17:00 UTC
[jira] [Commented] (RYA-427) Connect to mongo command in the shell
should fail if unable to connect
[ https://issues.apache.org/jira/browse/RYA-427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16317084#comment-16317084 ]
ASF GitHub Bot commented on RYA-427:
------------------------------------
GitHub user isper3at opened a pull request:
https://github.com/apache/incubator-rya/pull/261
RYA-427 Fixed connect to mongo failure
The shell now presents the appropriate error message
if it is unable to connect to a mongodb instance.
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
## Description
>What Changed?
Added essentially a ping to the mongo server after attempting to create a mongo client, if it times out, the connection failed and an exception is thrown.
### Tests
>Coverage?
none.
### Links
[Jira](https://issues.apache.org/jira/browse/RYA-427)
### Checklist
- [ ] Code Review
- [x] Squash Commits
#### People To Reivew
@meiercaleb @kchilton2
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/isper3at/incubator-rya RYA-427
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-rya/pull/261.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #261
----
commit 1222c03614b8a74303414ea7698232e6f33a39c4
Author: Andrew Smith <sm...@...>
Date: 2018-01-08T21:12:51Z
RYA-427 Fixed connect to mongo failure
The shell now presents the appropriate error message
if it is unable to connect to a mongodb instance.
----
> Connect to mongo command in the shell should fail if unable to connect
> ----------------------------------------------------------------------
>
> Key: RYA-427
> URL: https://issues.apache.org/jira/browse/RYA-427
> Project: Rya
> Issue Type: Bug
> Reporter: Andrew Smith
> Assignee: Andrew Smith
>
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)