[3.0.1 backport] crc32c values with leading zeros trigger unnecessary import

Description

Documents with matching crc32c values should not be imported by Sync Gateway.  We're using the server's crc32c macro to populate the values in _sync.crc32c - this pads leading zeros.  Sync Gateway's computation of the string representation of the crc32c value does not.

https://github.com/couchbase/sync_gateway/blob/master/base/util.go#L1060

 

Activity

Show:

CB robot May 13, 2022 at 11:19 PM

Build sync_gateway-3.0.1-21 contains sync_gateway commit 34cf114 with commit message:
[3.0.1 backport] ensure CRC32 hashes are always 8 characters (#5544)

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Story Points

Components

Fix versions

Priority

Instabug

Open Instabug

PagerDuty

Sentry

Zendesk Support

Created May 10, 2022 at 4:35 PM
Updated August 31, 2024 at 11:01 AM
Resolved May 13, 2022 at 11:31 PM
Instabug