cmu-db / mongodb-d4

Automatic MongoDB database designer
http://database.cs.brown.edu/projects/mongodb/
55 stars 6 forks source link

Benchmark Framework Breaks on Multi-Processor Execution #17

Closed apavlo closed 12 years ago

apavlo commented 12 years ago

It looks like that the dependencies are broken when using the multi-processor execnet framework:

./benchmark.py --print-config tpcc > tpcc.config
./benchmark.py --config=tpcc.config tpcc --no-execute --reset --debug

The error is as follows:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 504, in run
    self.__target(*self.__args, **self.__kwargs)
  File "/home/pavlo/Documents/MongoDB/mongodb-d4/exps/api/message.py", line 116, in sendMessagesLimitedThread
    msg = getMessage(channel.receive())
  File "/usr/lib/python2.7/dist-packages/execnet/gateway_base.py", line 421, in receive
    raise self._getremoteerror() or EOFError()
RemoteError: Traceback (most recent call last):
  File "<string>", line 736, in executetask
  File "<string>", line 1, in do_exec
  File "", line 386, in <module>
  File "api/messageprocessor.py", line 55, in processMessage
    self._worker = self.createWorker()
  File "api/messageprocessor.py", line 81, in createWorker
    moduleHandle = __import__(moduleName, globals(), locals(), [fullName])
  File "benchmarks/blog/blogworker.py", line 37, in <module>
    from api.abstractworker import AbstractWorker
  File "api/abstractworker.py", line 37, in <module>
    from .results import *
  File "api/results.py", line 29, in <module>
    from util.histogram import Histogram
ImportError: No module named histogram
apavlo commented 12 years ago

Fixed for @zifnab87

apavlo commented 12 years ago

This isn't fixed. I had cached .pyc files that were getting picked up and hiding the errors.

apavlo commented 12 years ago

Ok this is fixed for real now.