Open lauralorenz opened 10 years ago
Hi @lauralorenz
Thank you for your report! This issue seems like BigDecimal issue. https://github.com/msgpack/msgpack-ruby/issues/26
I'll fix it soon.
I've released new version of gem as v0.4.2. Please try it with latest fluent-plugin-mysql-replicator ! http://rubygems.org/gems/fluent-plugin-mysql-replicator
and if you like this repository, please click star button for this. https://github.com/y-ken/fluent-plugin-mysql-replicator/stargazers
Thanks! Just got to try it out now.
However, I haven't been able to test it because I have a new issue. I tested with a small table and the replicator worked (made index replicator and added in documents from my table). I added a larger table as another record in replicator_manager.settings and restarted td-agent, but records from the second table did not show up (even though the _type was mapped in elasticsearch). I stopped td-agent, deleted the replicator index, and restarted the service with only the large table as a record in replicator_manager.settings. Now td-agent logs hangs and nothing happens in elasticsearch logs, including replicator index is not created.
2014-08-11 19:07:26 +0000 [info]: listening fluent socket on 0.0.0.0:24224
2014-08-11 19:07:26 +0000 [info]: mysql_replicator_multi: polling start. :config=>{"id"=>2, "is_active"=>1, "name"=>"pocket_dwh.fact_price", "host"=>"localhost", "port"=>3306, "username"=>"fluentd", "password"=>"xxxxxxxxxxxxxxx", "database"=>"pocket_dwh", "query"=>"SELECT id, product_id, store_id, price, price_sale, price_quantity, price_sale_quantity, price_sale_expiration, price_sale_expiration_date,price_sale_spotted_date,effective_date,insert_timestamp, last_update_timestamp FROM fact_price;", "prepared_query"=>"SELECT id, product_id, store_id, price, price_sale, price_quantity, price_sale_quantity, price_sale_expiration, price_sale_expiration_date,price_sale_spotted_date,effective_date,insert_timestamp, last_update_timestamp FROM fact_price;", "interval"=>5, "primary_key"=>"id", "enable_delete"=>1, "enable_loose_insert"=>0, "enable_loose_delete"=>0}
2014-08-11 19:07:26 +0000 [info]: listening dRuby uri="druby://127.0.0.1:24230" object="Engine"
Hi @lauralorenz
It might be remain cache. Please truncate table replicator_manager.hash_tables ;
Similar I think to #2
Receiving error in td-agent logs that mysql_replicator_multi failed to execute query.
td-agent log
settings table
td-agent config
I have tested this query in my database and it contains no sql errors and can return data.