You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Motivation:
The old replica could fail to replay logs if `encrypted` or `compressed`
fields are included in JSON data since
`@JsonIgnoreProperties(ignoreUnknown = true)` isn't applied to `LogMeta`
Modifications:
- Make `encrypted` and `compressed` in `LogMeta` nullable and exclude
from serialization if them are null.
Result:
`LogMeta` is now backward compatible.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Refactor**
* Log metadata now uses nullable flags for compression/encryption and
omits null fields from JSON; timestamp handling tolerates missing values
and null flags no longer imply true/false implicitly.
* **Tests**
* Added tests ensuring null fields are excluded from log metadata JSON
serialization and that serialization/deserialization remain compatible.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Copy file name to clipboardExpand all lines: server/src/test/java/com/linecorp/centraldogma/server/internal/replication/ZooKeeperCommandExecutorTest.java
0 commit comments