Migrating from Version 3.x
Tools and information for upgrading your connector configuration.
In version 4.x the names of the config properties have changed to follow a consistent naming convention. Some default values have changed to provide a better out-of-box experience for new users.
The Java API for customizing the connector’s behavior has also changed in a way that is not backwards compatible.
If you have written a custom SourceHandler
or Filter
component, some minor changes are required for it to work with the new version of the connector.
Configuration Properties
A shell script called migrate-config-3-to-4.sh
is available to assist with updating a version 3.x config file.
You can find this script in the etc
directory of the connector distribution archive, or you can download it from GitHub.
The following tables show how the config properties changed between 3.x and 4.x.
Name in 3.x | Name in 4.x | Notes |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Now specified as qualified duration; 10 seconds would be: |
|
|
|
|
|
|
|
|
|
|
|
|
|
(removed) |
Name in 3.x | Name in 4.x | Notes |
---|---|---|
|
|
Now a format string that supports placeholders "${bucket}", "${scope}", and "${collection}".
Now defaults to |
|
(removed) |
|
|
|
No longer has a default value. |
|
|
|
|
|
|
|
|
Deprecated.
Only set this to |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name in 3.x | Name in 4.x | Notes |
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Java API
A summary of how the connector’s Java extension points have changed.
SourceHandler
SourceHandler
is now an interface instead of an abstract class.
The handle(SourceHandlerParams)
method now returns a SourceRecordBuilder
instead of a CouchbaseSourceRecord
.
DocumentEvent
The rawDcpEvent()
method has been removed.
To determine the type of the event, call type()
.
To get details of mutation events, call mutationMetadata()
.
To get the document content as a byte array, call content()
.
The vBucket()
method is renamed partition()
.
The vBucketUuid()
method is renamed partitionUuid()
.