Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
jjh-kim committed Jul 25, 2024
1 parent 58c8fa4 commit c531ba0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
This sections provides list of possible issues and solutions that may occur when using SB-OSC.

### apply_dml_events_validation_batch_size
When setting `apply_dml_events_validation_batch_size` there are two factors to consider. Since the binlog resolution is in seconds, if the number of DML events in a second is greater than the batch size, the validation process can hang indefinitely. In this case, it is recommended to increase the batch size.
~~When setting `apply_dml_events_validation_batch_size` there are two factors to consider. Since the binlog resolution is in seconds, if the number of DML events in a second is greater than the batch size, the validation process can hang indefinitely. In this case, it is recommended to increase the batch size.~~
-> This issue was fixed by [#10](https://github.com/sendbird/sb-osc/pull/10)


Another factor is `max_allowed_packet` of MySQL. Apply DML events stage uses query with IN clause containing `apply_dml_events_validation_batch_size` number of PKs. If the size of this query exceeds `max_allowed_packet`, the query will not return properly. In this case, it is recommended to decrease the batch size. Also, you might need to kill running queries since it may hang indefinitely in this case.

Expand Down

0 comments on commit c531ba0

Please sign in to comment.