Skip to content

Commit f872869

Browse files
committed
Sigh
1 parent 5726b33 commit f872869

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

classes/DataWarehouse/Query/SUPREMM/SupremmDbInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ public function updateEtlVersion($resource_id, $new_etl_version) {
5353

5454
$collection = $this->getCollection($resconf['handle'], $resconf['collection']);
5555

56-
$result = $collection->updateOne(
56+
$result = $collection->updateMany(
5757
array('processed.' . $this->getEtlUid() . '.version' => $this->etl_version),
5858
array('$set' => array('processed.' . $this->getEtlUid() . '.version' => $new_etl_version)),
59-
array('multiple' => true, 'socketTimeoutMS' => -1, 'wTimeoutMS' => -1)
59+
array('socketTimeoutMS' => -1, 'wTimeoutMS' => -1)
6060
);
6161

6262
return $result;

tests/integration/final_tests.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,17 @@ set -e
77

88
/usr/lib64/xdmod/xdmod-supremm-admin --action=reset --resource=robertson --force 2>&1 | tee /tmp/supremm-admin-output.txt
99

10-
if ! grep -q "Job summary documents status reset for 1 jobs" /tmp/supremm-admin-output.txt;
10+
if ! grep -q "Job summary documents status reset for 6 jobs" /tmp/supremm-admin-output.txt;
1111
then
1212
echo "Error missing expected output from xdmod-supremm-admin"
13+
exit 1
14+
fi
15+
16+
# Now run again - this time there will be no jobs to reset
17+
/usr/lib64/xdmod/xdmod-supremm-admin --action=reset --resource=robertson --force 2>&1 | tee /tmp/supremm-admin-output.txt
18+
19+
if ! grep -q "Job summary documents status reset for 0 jobs" /tmp/supremm-admin-output.txt;
20+
then
21+
echo "Error missing expected output from xdmod-supremm-admin"
22+
exit 1
1323
fi

0 commit comments

Comments
 (0)