Project

Profile

Help

Issue #3654

closed

CursorNotFound during checksums_and_templates migration

Added by ttereshc almost 6 years ago. Updated almost 5 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.

Actions #2

Updated by dalley almost 6 years ago

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

Updated by ttereshc almost 6 years ago

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

Added by ttereshc almost 6 years ago

Revision 2bcbc354 | View on GitHub

Set batch size to avoid cursor timeout during migration

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

Actions #4

Updated by ttereshc almost 6 years ago

  • Status changed from ASSIGNED to POST
Actions #5

Updated by ttereshc almost 6 years ago

  • Status changed from POST to MODIFIED
Actions #6

Updated by dkliban@redhat.com almost 6 years ago

  • Platform Release set to 2.16.2

Added by ttereshc over 5 years ago

Revision 2b0e4595 | View on GitHub

Set batch size to avoid cursor timeout during migration

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

(cherry picked from commit 2bcbc354be93605a689443f2dbc5efb22f7e7033)

Actions #7

Updated by ttereshc over 5 years ago

Actions #8

Updated by ipanova@redhat.com over 5 years ago

  • Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions #9

Updated by bmbouter almost 5 years ago

  • Tags Pulp 2 added

Also available in: Atom PDF