Skip to content

Commit

Permalink
Merge pull request #122 from jpwhite4/bugfix
Browse files Browse the repository at this point in the history
Minor bug fixes
  • Loading branch information
jpwhite4 authored Aug 1, 2017
2 parents 9b1c875 + 1343535 commit cc755f1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Changelog

## [Unreleased]
## [1.0.3] - 2017-08-01

### Changed
- Updated text content of indexarchives debug message to clarify meaning of ignored archives.

### Fixed
- Fix issue with timeseries documents not being saved with the Centos 6 EPEL
version of MongoDB (2.4). It is likely that this issue affects newer versions
of MongoDB too.


## [1.0.2] - 2017-01-26
Expand Down
1 change: 1 addition & 0 deletions supremm/outputter.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ def process(self, summaryobj, mdata):
summary['summarization'].update(mdata)

if 'timeseries' in summary:
summary['timeseries']['_id'] = summary["_id"]
self._outdb[self._timeseries].update({"_id": summary["_id"]}, summary['timeseries'], upsert=True)
del summary['timeseries']

Expand Down
2 changes: 1 addition & 1 deletion supremm/xdmodaccount.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def insert(self, resource_id, hostname, filename, start, end, jobid):
""" Insert a job record """
cur = self.con.cursor()
if hostname not in self._hostnamecache:
logging.debug("Ignoring archive for host %s", hostname)
logging.debug("Ignoring archive for host \"%s\" because there are no jobs in the XDMoD datawarehouse that ran on this host.", hostname)
return

query = """INSERT INTO modw_supremm.archive (hostid, filename, start_time_ts, end_time_ts, jobid)
Expand Down

0 comments on commit cc755f1

Please sign in to comment.