starting slave with relative path or non existant slave.config-file does not error out

Bug #720501 reported by Joe Daly
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Drizzle
Fix Released
Low
David Shrewsbury
7.0
Fix Released
Low
David Shrewsbury

Bug Description

Starting up the slave server with a relative path --slave.config-file=slave.config does not work, and the error message is:

Replication slave: drizzle_state_addrinfo:getaddrinfo:Name or service not known

We should add a check or maybe the options parsing is supposed to do this? The error message also needs to be understandable.

Related branches

Joe Daly (skinny.moey)
Changed in drizzle:
assignee: nobody → Joe Daly (skinny.moey)
status: New → Confirmed
importance: Undecided → Low
milestone: none → 2011-02-28
Revision history for this message
David Shrewsbury (dshrews) wrote :

Not sure about the relative path stuff. I followed the example set by other plugins and set the default to be in SYSCONFDIR. A full path might be necessary. Maybe Monty can speak more to this?

As far as the error message, yes, that definitely needs cleaned up.

tags: added: replication slave-plugin
Changed in drizzle:
milestone: 2011-02-28 → 2011-03-14
Changed in drizzle:
assignee: Joe Daly (skinny.moey) → David Shrewsbury (dshrews)
status: Confirmed → In Progress
Revision history for this message
David Shrewsbury (dshrews) wrote :

It seems that the working directory for a plugin (i.e., the relative path) is $datadir/var/local. So without a full path for the slave configuration file, it will look for the file here.

I've updated the docs to clarify this, and also added code to verify that the config file is opened successfully and if not, report a better error message.

Changed in drizzle:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

Bug watches keep track of this bug in other bug trackers.