Skip to content
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

Account batch delete issue #1418

Open
dmitry-sinina opened this issue Feb 2, 2024 · 0 comments
Open

Account batch delete issue #1418

dmitry-sinina opened this issue Feb 2, 2024 · 0 comments

Comments

@dmitry-sinina
Copy link
Contributor

delay job crashing with error:

PG::NotNullViolation: ERROR:  null value in column "item_id" of relation "versions" violates not-null constraint
DETAIL:  Failing row contains (4226, Account, null, destroy, 3, ---
t0_r0: 53
t0_r1: 35
t0_r2: !ruby/object:BigDecimal 36:-0.797..., 2024-02-02 06:23:25.759452+00, 176.37.31.98, ---
t0_r0:
- 53
-
t0_r1:
- 35
-
t0_r2:
- !ruby/object:BigDecimal..., 823245).

/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:768:in `exec_params'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:768:in `block (2 levels) in exec_no_cache'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:767:in `block in exec_no_cache'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/abstract_adapter.rb:752:in `block in log'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/abstract_adapter.rb:743:in `log'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:766:in `exec_no_cache'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:745:in `execute_and_clear'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:54:in `exec_query'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/abstract/database_statements.rb:132:in `exec_insert'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:88:in `exec_insert'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/abstract/database_statements.rb:167:in `insert'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/abstract/query_cache.rb:22:in `insert'


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant