Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-4815

Rebuild targets appropriately when running make distclean

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Gone away
    • None
    • None
    • None
    • None

    Description

      If you have a tree that was configured and built with PYTHON=python2, and then later configure again with PYTHON=python3, not all needed files may be regenerated properly, even after doing make distclean.  After rebuilding, there may be confusing results (see below). A similar problem can occur when changing SWIG versions.

      Result of rebuild:

      ERROR: test_debug_mode02.test_debug_mode02.test_checkpoint_retain
      ----------------------------------------------------------------------
      Traceback (most recent call last):
        File "/mnt/data0/sue/wt.4712/test/suite/test_debug_mode02.py", line 92, in test_checkpoint_retain
          self.advance_log_checkpoint()
        File "/mnt/data0/sue/wt.4712/test/suite/test_debug_mode02.py", line 78, in advance_log_checkpoint
          c[idx] = 1
        File "/mnt/data0/sue/wt.4712/build_posix/lang/python/wiredtiger/__init__.py", line 448, in __setitem__
          self.set_key(key)
        File "/mnt/data0/sue/wt.4712/build_posix/lang/python/wiredtiger/__init__.py", line 411, in set_key
          self._set_key(self._key)
      TypeError: in method 'Cursor__set_key', argument 2 of type 'void *' 

      Even though we don't support Python2, we should clean up SWIG generated files when doing make distclean. The workaround is to remove lang/python/wiredtiger_wrap.c.

      Attachments

        Issue Links

          Activity

            People

              backlog-server-storage-engines Backlog - Storage Engines Team
              donald.anderson@mongodb.com Donald Anderson
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: