Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Create database in non-bootstrap hosts can fail #457

Closed
grtjn opened this issue Jun 4, 2015 · 2 comments
Closed

Create database in non-bootstrap hosts can fail #457

grtjn opened this issue Jun 4, 2015 · 2 comments
Assignees
Milestone

Comments

@grtjn
Copy link
Contributor

grtjn commented Jun 4, 2015

A database that is not using <forests-per-host>, with a forest without explicit <host-name>, assigned to a group different than the one from the bootstrap host, will fail to create with a vague cast error telling:

XDMP-AS: (err:XPTY0004) $hostnr as xs:integer -- Invalid coercion: () as xs:integer

The code tries to determine the host for the single forest it is trying to create, but there is not explicit host-name. It then falls back to default-host, which is the bootstrap host. It will then try to determine hostnr against the hosts within the group of the database. But if bootstrap host is in a different group, then this fails.

I think it is better to fall back to the first of the hosts within the group, instead of default-host. That would mean hostnr would be always 1, and these kind of databases (like appname-modules and such) would all get attached to the same host, but that is already the case. You can always use <host-name> on the forest assignments to assign a particular forest to a particular host.

@grtjn grtjn added the deployer label Jun 4, 2015
@grtjn grtjn modified the milestone: 1.7.3 Jun 19, 2015
@grtjn grtjn added the bug label Jul 7, 2015
@grtjn
Copy link
Contributor Author

grtjn commented Sep 17, 2015

Thought I fixed this, need to check..

grtjn added a commit to grtjn/roxy that referenced this issue Sep 22, 2015
@grtjn grtjn self-assigned this Sep 22, 2015
dmcassel added a commit that referenced this issue Jan 27, 2016
Fixed #457: assign forests to group host 1 instead of default-host
grtjn added a commit to grtjn/roxy that referenced this issue Jan 28, 2016
@grtjn
Copy link
Contributor Author

grtjn commented Mar 11, 2016

Fixed in dev..

@grtjn grtjn closed this as completed Mar 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant