Project

Profile

Help

Issue #3654

CursorNotFound during checksums_and_templates migration

Added by ttereshc over 3 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
High
Assignee:
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
2.13.3
Platform Release:
2.16.2
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Sprint 36
Quarter:

Description

[DEBUG 2018-04-25 11:18:47 main] Applying migration pulp_rpm.plugins.migrations.0300_upstream_0033_checksums_and_templates failed.
[DEBUG 2018-04-25 11:18:47 main] Halting migrations due to a migration failure.
[DEBUG 2018-04-25 11:18:47 main] Cursor not found, cursor id: 164658109027
[DEBUG 2018-04-25 11:18:47 main] Traceback (most recent call last):
[DEBUG 2018-04-25 11:18:47 main]   File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 235, in main
[DEBUG 2018-04-25 11:18:47 main]     return _auto_manage_db(options)
[DEBUG 2018-04-25 11:18:47 main]   File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 302, in _auto_manage_db
[DEBUG 2018-04-25 11:18:47 main]     migrate_database(options)
[DEBUG 2018-04-25 11:18:47 main]   File "/usr/lib/python2.7/site-packages/pulp/server/db/manage.py", line 129, in migrate_database
[DEBUG 2018-04-25 11:18:47 main]     update_current_version=not options.test)
[DEBUG 2018-04-25 11:18:47 main]   File "/usr/lib/python2.7/site-packages/pulp/server/db/migrate/models.py", line 186, in apply_migration
[DEBUG 2018-04-25 11:18:47 main]     migration.migrate()
[DEBUG 2018-04-25 11:18:47 main]   File "/usr/lib/python2.7/site-packages/pulp_rpm/plugins/migrations/0300_upstream_0033_checksums_and_templates.py", line 47, in migrate
[DEBUG 2018-04-25 11:18:47 main]     for rpm in rpm_collection.find({}, ['checksum', 'checksumtype', 'repodata']):
[DEBUG 2018-04-25 11:18:47 main]   File "/usr/lib64/python2.7/site-packages/pymongo/cursor.py", line 1097, in next
[DEBUG 2018-04-25 11:18:47 main]     if len(self.__data) or self._refresh():
[DEBUG 2018-04-25 11:18:47 main]   File "/usr/lib64/python2.7/site-packages/pymongo/cursor.py", line 1039, in _refresh
[DEBUG 2018-04-25 11:18:47 main]     self.__max_await_time_ms))
[DEBUG 2018-04-25 11:18:47 main]   File "/usr/lib64/python2.7/site-packages/pymongo/cursor.py", line 903, in __send_message
[DEBUG 2018-04-25 11:18:47 main]     codec_options=self.__codec_options)
[DEBUG 2018-04-25 11:18:47 main]   File "/usr/lib64/python2.7/site-packages/pymongo/helpers.py", line 114, in _unpack_response
[DEBUG 2018-04-25 11:18:47 main]     raise CursorNotFound(msg, 43, errobj)
[DEBUG 2018-04-25 11:18:47 main] CursorNotFound: Cursor not found, cursor id: 164658109027

Batch size should be added to avoid cursor timeout here. Similar to this.

Associated revisions

Revision 2bcbc354 View on GitHub
Added by ttereshc over 3 years ago

Set batch size to avoid cursor timeout during migration

closes #3654 https://pulp.plan.io/issues/3654

Revision 2b0e4595 View on GitHub
Added by ttereshc over 3 years ago

Set batch size to avoid cursor timeout during migration

closes #3654 https://pulp.plan.io/issues/3654

(cherry picked from commit 2bcbc354be93605a689443f2dbc5efb22f7e7033)

History

#2 Updated by dalley over 3 years ago

  • Priority changed from Normal to High
  • Triaged changed from No to Yes
  • Sprint set to Sprint 36

#3 Updated by ttereshc over 3 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to ttereshc

#4 Updated by ttereshc over 3 years ago

  • Status changed from ASSIGNED to POST

#5 Updated by ttereshc over 3 years ago

  • Status changed from POST to MODIFIED

#6 Updated by dkliban@redhat.com over 3 years ago

  • Platform Release set to 2.16.2

#7 Updated by ttereshc over 3 years ago

#8 Updated by ipanova@redhat.com over 3 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE

#9 Updated by bmbouter over 2 years ago

  • Tags Pulp 2 added

Please register to edit this issue

Also available in: Atom PDF