{"action":"created","issue":{"url":"https://api.github.com/repos/cloudant-labs/spark-cloudant/issues/10","labels_url":"https://api.github.com/repos/cloudant-labs/spark-cloudant/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/cloudant-labs/spark-cloudant/issues/10/comments","events_url":"https://api.github.com/repos/cloudant-labs/spark-cloudant/issues/10/events","html_url":"https://github.com/cloudant-labs/spark-cloudant/pull/10","id":117341524,"number":10,"title":"Raise an exception during save()","user":{"login":"mayya-sharipova","id":5738841,"avatar_url":"https://avatars.githubusercontent.com/u/5738841?v=3","gravatar_id":"","url":"https://api.github.com/users/mayya-sharipova","html_url":"https://github.com/mayya-sharipova","followers_url":"https://api.github.com/users/mayya-sharipova/followers","following_url":"https://api.github.com/users/mayya-sharipova/following{/other_user}","gists_url":"https://api.github.com/users/mayya-sharipova/gists{/gist_id}","starred_url":"https://api.github.com/users/mayya-sharipova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mayya-sharipova/subscriptions","organizations_url":"https://api.github.com/users/mayya-sharipova/orgs","repos_url":"https://api.github.com/users/mayya-sharipova/repos","events_url":"https://api.github.com/users/mayya-sharipova/events{/privacy}","received_events_url":"https://api.github.com/users/mayya-sharipova/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-17T12:08:30Z","updated_at":"2015-11-17T13:03:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cloudant-labs/spark-cloudant/pulls/10","html_url":"https://github.com/cloudant-labs/spark-cloudant/pull/10","diff_url":"https://github.com/cloudant-labs/spark-cloudant/pull/10.diff","patch_url":"https://github.com/cloudant-labs/spark-cloudant/pull/10.patch"},"body":"Raise an exception when data from Spark are saved\r\nto a db that doesn't exist in Cloudant\r\n\r\nSyntax formatting\r\n\r\nBugzID: 56197"},"comment":{"url":"https://api.github.com/repos/cloudant-labs/spark-cloudant/issues/comments/157365033","html_url":"https://github.com/cloudant-labs/spark-cloudant/pull/10#issuecomment-157365033","issue_url":"https://api.github.com/repos/cloudant-labs/spark-cloudant/issues/10","id":157365033,"user":{"login":"HolgerKache","id":8506770,"avatar_url":"https://avatars.githubusercontent.com/u/8506770?v=3","gravatar_id":"","url":"https://api.github.com/users/HolgerKache","html_url":"https://github.com/HolgerKache","followers_url":"https://api.github.com/users/HolgerKache/followers","following_url":"https://api.github.com/users/HolgerKache/following{/other_user}","gists_url":"https://api.github.com/users/HolgerKache/gists{/gist_id}","starred_url":"https://api.github.com/users/HolgerKache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HolgerKache/subscriptions","organizations_url":"https://api.github.com/users/HolgerKache/orgs","repos_url":"https://api.github.com/users/HolgerKache/repos","events_url":"https://api.github.com/users/HolgerKache/events{/privacy}","received_events_url":"https://api.github.com/users/HolgerKache/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T13:03:07Z","updated_at":"2015-11-17T13:03:07Z","body":"+1 after that small change. Tests look good:\r\n\r\nUse dbName=airportcodemapping_df, indexName=null, jsonstore.rdd.partitions=5, jsonstore.rdd.maxInPartition=-1, jsonstore.rdd.minInPartition=10, jsonstore.rdd.requestTimeout=100000,jsonstore.rdd.concurrentSave=-1,jsonstore.rdd.bulkSize=1\r\nException in thread \"main\" java.lang.RuntimeException: Database airportcodemapping_df does't exist or errors with saving data!\r\n\tat com.cloudant.spark.common.JsonStoreDataAccess$$anonfun$saveAll$1.apply$mcVI$sp(JsonStoreDataAccess.scala:204)\r\n"}}