This content has been marked as final. Show 4 replies
Thanks for using C# API for BDB HA.
In the version you are using, the local site could be set once only and remote site should not be specified any value for local. So, please update the code to:
localhost:50001 (local = true)
Hope it helps.
Emily Fu, Berkeley DB
Thanks, that was indeed the problem.
I now have another problem. The three replication sites are running. They successfully elect a master with two remote sites but NO replication occurrs.
When i create a new database, the database files appear only at the master and nothing appears at the two remote sites. This should be impossible as it is set to use a QUORUM ackowlegement.
The application creates the database using relative path.
What could be causing this error?
Please provide more context so that we could understand the scenario, for example configurations, replication verbose output, etc. You could turn on the verbose by DatabaseEnvironment.Verbosity.Replication* at http://docs.oracle.com/cd/E17076_02/html/csharp/html/T_BerkeleyDB_VerboseMessages.htm. It is very helpful to understand the status of each replication site, e.g, being synced, sending logs, election, etc. If you could provide us this information, it would be easier to diagnose.
Also, you could refer to the C# replication manager example excs_repquote in the BDB_dotNet.sln under build_windows in the source code download package.
Emily Fu, Oracle Berkeley DB
Thanks, but I fixed the problem. It seems that setting
_envConfig.CreationDir = CreationDirectory
to a value was the problem. This value should not be set.
I removed this setting and just passed the Directory to the env.Open(CreationDirectory, envConfig).
Strange, but its all working well now.
Incidentally, I had all the verbosity settings to true, but no error messages were displayed in the _env.ErrorFeedback delegate. This delegate has a byte parameter which I'm not quite sure what to do with.