Comments (7)
Hello @Du-Li, that would be a good feature as far as I know we can get timestamps from CAS value but Couchbase Server should be 7.0 or later. We can add it as a feature maybe any ideas? @erayarslan @mhmtszr
from go-dcp-kafka.
That's awesome. Thanks for your quick attention.
It's a bit disappointing though that this timestamp is only available in CB 7.0 or above. Our current production is still using CB 6.5 and we won't be able to upgrade it in a short term. Is there some way to make it work for CB 6.5?
from go-dcp-kafka.
i checked version 6.5 of the couchbase. there doesn't seem to be a problem with this cas to eventTime conversion.
from go-dcp-kafka.
we implemented in v0.0.37
now you can use with event.EventTime
thank you so much for contribution💯
from go-dcp-kafka.
@erayarslan Thank you for implementing it. I have tested it. However, there was a big gap between this CAS-based timestamp (t2) and the timestamp (t1) I added into the doc when it was generated, actually t2 < t1 by up to a second.
Do you know how CAS was created? What's the physical meaning? I was wondering if it could be rightly used as the timestamp a doc is persisted on CB.
from go-dcp-kafka.
@Du-Li i think its mean "event happen time in couchbase"
so when document create in couchbase, this mutation cas is create time.
or document deleted in couchbase, deletion cas time is delete time.
so when you start consuming for the first time, it is normal to see this gap.
after initial load its done, you will get new fresh events. gap gonna normal.
@oguzyildirim also has idea about DcpTime kinda field to set time(now) when our library consume event.
from go-dcp-kafka.
There is only one edge case about CAS as far as I know. if conflict resolution is to take an older document from the backup it will affect metadata i.e CAS.
I've added dcp latency but not tested yet.
from go-dcp-kafka.
Related Issues (20)
- Mapper should return more than one message
- fatal concurrency error at startup time HOT 4
- Program auto exits after a few seconds HOT 20
- custom logger not passed to dcp client HOT 2
- keep state info on kafka HOT 34
- Add maximum bulk size as byte config
- Set checkpoint type manual automatically
- cb-kafka connector metrics HOT 4
- very high dcp latencies in v0.0.40 HOT 5
- feat: Migration from Java to Go document will be added
- new configuration for kafka producer: client id
- Connector cannot restart after closed HOT 7
- Ephemeral bucket DCP issue HOT 1
- When dcp group name includes . (dot), couchbase saves it as subdocument HOT 4
- Add mapstructure tags to config structures for viper config read package support HOT 5
- Add struct passing functionality for connector config when calling NewConnectorWithLoggers HOT 2
- feat: upgrade go version to 1.20
- add callback function when get ack from Kafka
- Get document from destination bucket HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-dcp-kafka.