Fork me on GitHub
#datomic
<
2019-01-15
>
Oliver George09:01:03

Should it be possible to use the aws cloudformation cli to spin up a datomic solo stack? I've not had much luck trying.

Chris09:01:44

Does Datomic on-prem support Java 11? This page says not but I find that surprising: https://docs.datomic.com/on-prem/get-datomic.html

marshall13:01:21

@cbowdon not yet. we’re working on supporting newer java. hopefully in a release soon

Chris13:01:43

Thanks 🙂

marshall14:01:22

@olivergeorge it should be, although I’ve never tried it myself

Oliver George22:01:14

Thanks. My exploration was somewhat chaotic. I'll try again. Would be nice to have a "one step solo/dev setup" of an app.

Oliver George23:01:44

Yeah, works fine. I'd managed to screw up my aws account somehow.

aws cloudformation create-stack --stack-name MYAPP --template-body  --parameters  --capabilities CAPABILITY_NAMED_IAM
With params of
[
{"ParameterKey": "KeyName", "ParameterValue": "MYAPP"},
{"ParameterKey": "EnvironmentMap", "ParameterValue": "{:env :dev}"}
]

Oliver George22:01:00

In case it's of interest. I'm able to reproduce the problem I had before. As a developer, I want to be able to setup and tear down datomic stacks including reusing an old stack name. Steps to repeat: • aws cloudformation create-stack --stack-name MYAPP ... (as above) • (wait) • aws cloudformation delete-stack --stack-name MYAPP • (wait) • aws cloudformation create-stack --stack-name MYAPP ... (as above) Expect: stack comes up cleanly Actual: stack creation fails, storage related even reports: Embedded stack arn:aws:cloudformation:ap-southeast-2:826491830380:stack/actinium-StorageF7F305E7-GDBDL32025UD/d9de1d70-19dd-11e9-b73f-0a7bf1960652 was not successfully created: The following resource(s) failed to create: [DatomicCmk, CatalogTable, FileSystem, LogGroup, LogTable].

Oliver George22:01:38

It's a slow process so hopefully I'm not leading you astray.

marshall14:01:00

You’d have to check the “keep existing storage” the second time you create

marshall14:01:16

which i assume you can pass as a parameter, but not sure how

marshall14:01:26

err. reuse storage

marshall14:01:28

whatever it’s called

marshall14:01:52

also, is this using the master template or are you launching storage and compute separately?

Oliver George02:01:32

Okay, thanks. I suspect there is still something buggy in the delete-stack side of things. Another case which seemed repeatable was (create stack A, delete stack A, create stack B) but the error was different that time. Not hurting me enough to fight anymore as it requires recreating a fresh account each time it gets stuck.

Oliver George02:01:42

I was using the solo master template.

Oliver George02:01:20

Thanks for the tip about needing to specify when reusing existing storage. I'll read up.

cjsauer16:01:52

Attempting to delete a solo CloudFormation stack, and it’s stuck trying to delete resource with logical ID AvailabilityZones of type Custom::ResourceQuery. I’m afraid I may have tampered with something I shouldn’t have while it was in progress…any tips for manually deleting this resource?

cjsauer17:01:16

I may be doomed to waiting a few hours for the stack to fail to delete: https://forums.aws.amazon.com/thread.jspa?threadID=234657

kenny17:01:02

Why does Datomic pull return cardinality many values as a vector instead of a set?

favila19:01:26

depending on the sub-pull, the entries may not be unique

favila19:01:33

you get one entry per entity

favila19:01:54

@kenny

(d/pull d [:db/id {:my-many-ref-attr [:db/id :my-not-unique-str-attr]}] 17592277488932)
=>
{:db/id 17592277488932,
 :my-many-ref-attr [{:db/id 17592277488933,
                     :my-not-unique-str-attr "not-unique-value"}
                    {:db/id 17592277488934,
                     :my-not-unique-str-attr "not-unique-value"}]}

(d/pull d [:db/id {:my-many-ref-attr [:my-not-unique-str-attr]}] 17592277488932)
=>
{:db/id 17592277488932,
 :my-many-ref-attr [{:my-not-unique-str-attr "not-unique-value"}
                    {:my-not-unique-str-attr "not-unique-value"}]}
                    

favila19:01:21

if it were a set, the second result would not be possible

kenny19:01:32

Oh, that only applies for ref attributes, correct?