powerhouse-inc / document-drive

GNU Affero General Public License v3.0
1 stars 0 forks source link

Enforce Inconsistent Operation error #273

Open acaldas opened 2 weeks ago

acaldas commented 2 weeks ago

We should differentiate errors that are caused by reducers bugs or environment differences from actual conflicts.

An operation might throw a reducer error or have a different hash in a certain Connect session but not cause a conflict. That Connect instance will keeps it's own version of the document.

Detect and throw InconsistentOperationError with detailed difference between the resulting states of the syncing nodes. This inconsistency should be reported and logged in the operation error field.