I had upgraded from version `0.39.42-alpha` to `0....
# replication-troubleshooting
v
I had upgraded from version
0.39.42-alpha
to
0.40.30
But the state management was acting weird and it was not keeping track of the cursor for incremental syncs. It was doing a full data sync everytime. The worker was looking for cursor stats in the
state
table, but the table had outdated entries & the cursor stats were seen in the
jobs
table. Any idea how to fix this?
u
Hello, can you check the .env file and confirm those variables are true? https://github.com/airbytehq/airbyte/blob/dacd6fa73a81c3dff2cbd4cbc8fe0c2299cd9aed/.env#L116-L117
v
@Marcos Marx (Airbyte) Thank you for responding. No, they were not set to True. Can you please tell me what those are being used for when upgrading?
z
Hey @[DEPRECATED] Marcos Marx, what is the auto-detect schema var used for?
u
Can you enable them Vaibhav? Mostly the first one the state USE_STREAM_CAPABLE_STATE. Zak it is used for (a few connector whihc has the feature today) to identify changes in sources tables!
z
I see — so is it used in combination with the USE_STREAM_CAPABLE_STATE? When we upgraded with USE_STREAM_CAPABLE_STATE enabled but AUTO_DETECT_SCHEMA disabled, our connections’ states (all ‘LEGACY’ types) were being deleted without being converted to the new ‘STREAM’ types
Hey @[DEPRECATED] Marcos Marx, any thoughts here? ☝️ we want to try upgrading again (for context we have several thousand connectors so our problems might be unique)
u
Zak do you mind sharing a sync log. I'll read to understand in what part is failing or missing. Do you have any special need to upgrade urgently to 0.40.30?
z
We think there is a significant memory leak on the latest version of 0.39 which is causing our server to crash regularly. We have implemented restarting the server on a schedule which has mitigated the issue for now, but we’d like to upgrade in case the upgrade fixes memory leak issues
I don’t have a sync log to share since we reverted all of the changes and used an old snapshot
For reference the server and worker will accumulate around 45GB and 15GB respectively throughout the day. This leads to crashes at peak syncs hours. When we restart these services the memory use drops back down to <1GB
u
Zak this is happening for what version? 0.40.32?
z
This is happening on 0.39.42-alpha
We tried upgrading to 0.40.32 but that’s when we ran into the issues with state being deleted
Hey Marcos, you’re super busy but any idea on this?
u
Zak there is a new release 0.41.0 which fix some bugs, can you try to upgrade it?
z
We can try that in our staging env and get back!