I've been having a weird issue where where Airbyte...
# replication-troubleshooting
o
I've been having a weird issue where where Airbyte says a sync is successful but it doesn't replicate one of the 10 streams some of the times. It'll work for a while when I first create the connection but then stop working and won't work again until I create a new connection. It is usually the same table that doesn't get synced (which is a small table of like 30 records right now). I can see from the logs it finds the table and deletes the existing data (right now we are doing a full overwrite), but never queues up the query for the table or do anything after that. Anyone encounter something similar or have any idea what could be going on? Airbyte version: 0.40.23 Source: Postgres 1.0.28 (I also tried with latest version and same issue) Destination: S3 0.3.17
Should note that if I create a seperate connection with just the table, it always syncs fine. I had this issue awhile ago that went away but seems to have reappeared. I created this in in the forum, but didn't get much of a response: https://discuss.airbyte.io/t/source-postgres-sync-completes-without-failure-but-not-all-streams-get-synced/2049
m
Hello Owais, can you confirm the sync has the table selected in replication tab? What is the table name to try to find in your logs?
o
Yes it is selected - equip_source is the table that hasn't been getting replicated.
Screen Shot 2023-02-16 at 12.18.29 PM.png
In this log you can see its included in the sync:
2023-02-14 14:53:20 [32mINFO[m i.a.w.g.DefaultReplicationWorker(run):150 - configured sync modes: {inquiryreferralservice.referral=full_refresh - overwrite, inquiryreferralservice.relation_to_patient=full_refresh - overwrite, inquiryreferralservice.relation_subcategory=full_refresh - overwrite, inquiryreferralservice.ad_tracking=full_refresh - overwrite, inquiryreferralservice.relation_to_patient_type=full_refresh - overwrite, inquiryreferralservice.information_source=full_refresh - overwrite, inquiryreferralservice.equip_source=full_refresh - overwrite, inquiryreferralservice.inquiry=full_refresh - overwrite, inquiryreferralservice.referral_carer=full_refresh - overwrite, inquiryreferralservice.patient=full_refresh - overwrite, inquiryreferralservice.referral_affiliation=full_refresh - overwrite, inquiryreferralservice.affiliation=full_refresh - overwrite}
But its not included in the final sync summary:
Copy code
2023-02-14 14:53:54 [32mINFO[m i.a.w.g.DefaultReplicationWorker(getReplicationOutput):408 - sync summary: {
  "status" : "completed",
  "recordsSynced" : 37269,
  "bytesSynced" : 18108306,
  "startTime" : 1676386400316,
  "endTime" : 1676386434705,
  "totalStats" : {
    "recordsEmitted" : 37269,
    "bytesEmitted" : 18108306,
    "sourceStateMessagesEmitted" : 0,
    "destinationStateMessagesEmitted" : 0,
    "recordsCommitted" : 37269,
    "meanSecondsBeforeSourceStateMessageEmitted" : 0,
    "maxSecondsBeforeSourceStateMessageEmitted" : 0,
    "maxSecondsBetweenStateMessageEmittedandCommitted" : 0,
    "meanSecondsBetweenStateMessageEmittedandCommitted" : 0,
    "replicationStartTime" : 1676386400316,
    "replicationEndTime" : 1676386434705,
    "sourceReadStartTime" : 1676386400510,
    "sourceReadEndTime" : 1676386434024,
    "destinationWriteStartTime" : 1676386400617,
    "destinationWriteEndTime" : 1676386434704
  },
  "streamStats" : [ {
    "streamName" : "inquiry",
    "streamNamespace" : "inquiryreferralservice",
    "stats" : {
      "recordsEmitted" : 13911,
      "bytesEmitted" : 10196713,
      "recordsCommitted" : 13911
    }
  }, {
    "streamName" : "referral_carer",
    "streamNamespace" : "inquiryreferralservice",
    "stats" : {
      "recordsEmitted" : 841,
      "bytesEmitted" : 219441,
      "recordsCommitted" : 841
    }
  }, {
    "streamName" : "affiliation",
    "streamNamespace" : "inquiryreferralservice",
    "stats" : {
      "recordsEmitted" : 383,
      "bytesEmitted" : 82249,
      "recordsCommitted" : 383
    }
  }, {
    "streamName" : "ad_tracking",
    "streamNamespace" : "inquiryreferralservice",
    "stats" : {
      "recordsEmitted" : 5660,
      "bytesEmitted" : 1399433,
      "recordsCommitted" : 5660
    }
  }, {
    "streamName" : "information_source",
    "streamNamespace" : "inquiryreferralservice",
    "stats" : {
      "recordsEmitted" : 7,
      "bytesEmitted" : 1071,
      "recordsCommitted" : 7
    }
  }, {
    "streamName" : "referral",
    "streamNamespace" : "inquiryreferralservice",
    "stats" : {
      "recordsEmitted" : 841,
      "bytesEmitted" : 564709,
      "recordsCommitted" : 841
    }
  }, {
    "streamName" : "patient",
    "streamNamespace" : "inquiryreferralservice",
    "stats" : {
      "recordsEmitted" : 14752,
      "bytesEmitted" : 5238141,
      "recordsCommitted" : 14752
    }
  }, {
    "streamName" : "relation_subcategory",
    "streamNamespace" : "inquiryreferralservice",
    "stats" : {
      "recordsEmitted" : 3,
      "bytesEmitted" : 369,
      "recordsCommitted" : 3
    }
  }, {
    "streamName" : "relation_to_patient",
    "streamNamespace" : "inquiryreferralservice",
    "stats" : {
      "recordsEmitted" : 44,
      "bytesEmitted" : 9981,
      "recordsCommitted" : 44
    }
  }, {
    "streamName" : "referral_affiliation",
    "streamNamespace" : "inquiryreferralservice",
    "stats" : {
      "recordsEmitted" : 827,
      "bytesEmitted" : 396199,
      "recordsCommitted" : 827
    }
  } ]
}
m
Reading the logs it is possible to see the connector start querying the table
2023-02-14 14:53:29 [44msource[0m > Queueing query for table: equip_source
but after you can’t see the buffer been closed
2023-02-14 14:53:53 [43mdestination[0m > Closing buffer for stream referral_affiliation
only for the other tables. I’d ask the engineer team about your case Owais. Meantime you can use the separate connection syncs the table?
o
Yup I have a separate connection for now, but worried about my other streams and whether it really is replicating all data or not. Please keep me posted on what the engineering team finds.
✅ 1
Any update here?
u
Hello Owais Javed, it's been a while without an update from us. Are you still having problems or did you find a solution?
o
No this still happens sometimes and havent' found a solution yet
any luck from your engineering team to figure out what is going on?
u
Hello Owais a new version was released. Could you try Airbytr 0.41.0? :D
o
updated - i'll let you know if i see the issue again
Issue happened again after I updated. You can see querying table again and finding rows, but never starts buffer for it (2 tables this time did not get included in the sync even though they should be). Here is the updated logs.
u
Owais do you mind creating a Github issue to other engineers take a look? They didn't find anything in the logs which could give some tips about the issue.