-
Hello, regarding the following from issue #5: "Use IReplicatedCluster interface that can be injected using DI for writing changes into Write Ahead Log. You need to call WriteAsync method" I can not find this method on the interface nor can I find an extension method for this. Has this been refactored since this issue? If so, what is the current correct way to initiate a write to the audit log? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @natilivni In context of custom database please examine this article first. Issue #5 is no longer relevant because support of 1.x branch has been dropped since 12/20/2020. The currently supported 2.x branch doesn't have this method because
P.S.: I recommend you to check discussion #25 as well. |
Beta Was this translation helpful? Give feedback.
-
Thank you! Very helpful. I actually have some more questions but will start other discussions regarding them so that others can benefit. |
Beta Was this translation helpful? Give feedback.
Hi @natilivni
In context of custom database please examine this article first.
Issue #5 is no longer relevant because support of 1.x branch has been dropped since 12/20/2020. The currently supported 2.x branch doesn't have this method because
WriteConcern
was removed as a part of the simplification.WriteAsync
was introduced to ensure that the written log entry is committed by the majority of nodes. Now it's a responsibility of audit log itself. If you need to add a new log entry then do the following calls.IPersistentState.AppendAsync
to add log entries in uncommitted state to the log, save the returned entry indexIReplicationCluster<IRaftLogEntry>.ForceReplicationAsync
to…