New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Cannot write to ostream at offset' after 'insert ... select ...' (v19.5.2.6) #5230
Comments
Please provide DDL for table_a , table_b |
table_b create table dw_hr.fct_rt_dc_shop_sku_vender_day_ti
(
stat_year UInt16,
stat_month UInt32,
stat_day Date,
out_buid UInt8,
categorytreeid UInt8,
out_shop_id String,
dctype UInt8,
in_shop_id String,
shopformid UInt8,
goodsid String,
category_id String,
venderid String,
logistics UInt8,
buntype UInt8,
datasource UInt8,
rt_boxes Decimal(18,4),
rt_qty Decimal(18,4),
rt_cost Decimal(18,4),
rt_taxcost Decimal(18,4)
)
engine =Log; table_a: create table dw_hr.fct_rt_dc_shop_sku_vender_day
(
stat_year UInt16,
stat_month UInt32,
stat_day Date,
out_buid UInt8,
out_shop_id String,
in_shop_id String,
datasource UInt8,
venderid String,
categorytreeid UInt8,
categoryid String,
goodsid String,
logistics UInt8,
buntype UInt8,
dctype UInt8,
shopformid UInt8,
rt_qty Decimal(18,4),
rt_cost Decimal(18,4),
rt_taxcost Decimal(18,4),
rt_shops String,
rt_drygood_qty Decimal(18,4),
rt_drygood_cost Decimal(18,4),
rt_drygood_boxes Decimal(18,4),
rt_drygood_shops String,
rt_fresh_qty Decimal(18,4),
rt_fresh_cost Decimal(18,4),
rt_fresh_shops String,
rt_supshop_cost Decimal(18,4),
rt_supshop_qty Decimal(18,4),
rt_supshop_boxes Decimal(18,4),
rt_supshop_shops String,
rt_smallshop_cost Decimal(18,4),
rt_smallshop_qty Decimal(18,4),
rt_smallshop_boxes Decimal(18,4),
rt_smallshop_shops String,
rt_dc_cost Decimal(18,4),
rt_dc_qty Decimal(18,4),
rt_dc_boxes Decimal(18,4),
rt_dc_shops String,
rt_drygood_supshop_cost Decimal(18,4),
rt_drygood_supshop_qty Decimal(18,4),
rt_drygood_supshop_boxes Decimal(18,4),
rt_drygood_supshop_shops String,
rt_drygood_smallshop_cost Decimal(18,4),
rt_drygood_smallshop_qty Decimal(18,4),
rt_drygood_smallshop_boxes Decimal(18,4),
rt_drygood_smallshop_shops String,
rt_drygood_dc_cost Decimal(18,4),
rt_drygood_dc_qty Decimal(18,4),
rt_drygood_dc_boxes Decimal(18,4),
rt_drygood_dc_shops String,
rt_fresh_supshop_cost Decimal(18,4),
rt_fresh_supshop_qty Decimal(18,4),
rt_fresh_supshop_shops String,
rt_fresh_smallshop_cost Decimal(18,4),
rt_fresh_smallshop_qty Decimal(18,4),
rt_fresh_smallshop_shops String,
rt_fresh_dc_cost Decimal(18,4),
rt_fresh_dc_qty Decimal(18,4),
rt_fresh_dc_shops String
)
engine = MergeTree PARTITION BY toYYYYMM(stat_day) ORDER BY (stat_day, out_shop_id) SETTINGS index_granularity = 8192
; |
I don't see col_a col_c ? |
hi, @filimonov is there any plan on this bug? we run into the same problem. have no idea when will it happen and how to resolve it. |
@Johnny-Three |
@filimonov thanks for the reply. I use version 19.7.5.27 and it happens every day now in our production environment. here attached the SQL and the log. As we observed, it often happens when queries executed in concurrency scenario.I am not sure if the info is enough to make a judgment? if not, plz tell me how to help. |
@filimonov have the same issue. Scenario: I have 2 servers that use the same clickhouse instance, but different DBs inside this instance. Every server have minute cron job that does batch inserts (simple inserts, no aggregation). Data size is small - few hundred of records. And in clickhouse error log:
So at the same second 2 servers report about dropped connection to clickhouse. Timing is the same. Seems like some concurrency issue inside request processing. |
Does the server crashes or this errors just exceptions and it's still running? |
Server up and running. Just random connection is dropped. |
Does it occurs only with |
If this is question to me - table is next:
With many views like this:
Error is very random. I never looked into clickhouse logs, until I start seeing dropped connection every day. By the way, I have similar duplicated env. and no errors there. Different load but totally the same code and version of everything. |
Why do you think it’s the same issue? The source issue is about crash when calling insert select with aggregation. Is it your case? |
Let's continue in #3981 |
When i run this sql like this
then clickhouse server crash.
the error message
The text was updated successfully, but these errors were encountered: