Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
kvalobs:kvoss:system:qc2:test:downstream [2010-11-01 22:54:10] paule |
kvalobs:kvoss:system:qc2:test:downstream [2022-05-31 09:29:32] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | |||
+ | |||
+ | ====== kvqc2_1.0.9 Troubleshooting ====== | ||
+ | |||
+ | As of 25-11-2010, kvqc2-1.0.9 is in operation but still no data arrives at teh warehouse. Thanks to Bjorn for spotting this :-) ! | ||
+ | < | ||
+ | Sendt: 25. november 2010 10:30:52 | ||
+ | Emne: Re: kvqc2_1.0.9 | ||
+ | |||
+ | Hei! | ||
+ | |||
+ | Have done select in kvalobs DB and and checked in KDVH. | ||
+ | |||
+ | Seems to me that nothing has been transfered to KDVH. | ||
+ | |||
+ | Bjørn | ||
+ | </ | ||
+ | |||
+ | ====== Double Check dev-vm101 ====== | ||
+ | |||
+ | Test setup | ||
+ | * kvdatalistener running on dev-vm101 | ||
+ | * listens to the kvServiced accrding to the setup in $HOME/ | ||
+ | * Check the ouput from kvqc2 and monitor the kvServiced.log | ||
+ | * Data picked up by kvdatalistener is also written to " | ||
+ | |||
+ | ^An algorithm is Run^ | ||
+ | |||
+ | Qc2: | ||
+ | < | ||
+ | Looking up object in CORBA nameservice: | ||
+ | Data input by kvQc2: | ||
+ | -- ProcessUnitT Writing Data -6.4 17850 2010-11-25 9:0:0 | ||
+ | </ | ||
+ | |||
+ | A corresponding signal is observed in kvServiced.log (all this below is seen (partly a fact that DEBUG mode is on in dev-vm101 and not in production)) | ||
+ | |||
+ | < | ||
+ | 20101125201847: | ||
+ | --------------- Closing the database connection! | ||
+ | 20101125202116: | ||
+ | --------------- New data from < | ||
+ | 20101125202116: | ||
+ | --------------- New database connection (PostgreSQL) created! | ||
+ | 20101125202116: | ||
+ | --------------- Created a new connection to the database! | ||
+ | 20101125202116: | ||
+ | --------------- DataReady received from <> (Unknown)! | ||
+ | 20101125202116: | ||
+ | --------------- CALL DataSubscribers: | ||
+ | 20101125202116: | ||
+ | --------------- called ... | ||
+ | 20101125202116: | ||
+ | --------------- isMaxClientReached: | ||
+ | 20101125202116: | ||
+ | --------------- New database connection (PostgreSQL) created! | ||
+ | 20101125202116: | ||
+ | --------------- next: called ... | ||
+ | 20101125202116: | ||
+ | --------------- stationid: 17850 currentEndTime: | ||
+ | 20101125202116: | ||
+ | --------------- select(17850, | ||
+ | 20101125202116: | ||
+ | --------------- data: nElements=77 | ||
+ | 20101125202116: | ||
+ | --------------- textData: nElements=0 | ||
+ | 20101125202116: | ||
+ | --------------- DataIteratorImpl:: | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[0].dataList.length()=9 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[1].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[2].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[3].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[4].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[5].dataList.length()=8 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[6].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[7].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[8].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[9].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[10].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList-> | ||
+ | 20101125202116: | ||
+ | --------------- text_data: | ||
+ | 20101125202116: | ||
+ | --------------- No < | ||
+ | 20101125202116: | ||
+ | --------------- next: called ... | ||
+ | 20101125202116: | ||
+ | --------------- stationid: 17850 currentEndTime: | ||
+ | 20101125202116: | ||
+ | --------------- select(17850, | ||
+ | 20101125202116: | ||
+ | --------------- data: nElements=52 | ||
+ | 20101125202116: | ||
+ | --------------- textData: nElements=0 | ||
+ | 20101125202116: | ||
+ | --------------- DataIteratorImpl:: | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[0].dataList.length()=10 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[1].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[2].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[3].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[4].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[5].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList[6].dataList.length()=6 | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList-> | ||
+ | 20101125202116: | ||
+ | --------------- text_data: | ||
+ | 20101125202116: | ||
+ | --------------- No < | ||
+ | 20101125202116: | ||
+ | --------------- next: called ... | ||
+ | 20101125202116: | ||
+ | --------------- stationid: 17850 currentEndTime: | ||
+ | 20101125202116: | ||
+ | --------------- select(17850, | ||
+ | 20101125202116: | ||
+ | --------------- data: nElements=0 | ||
+ | 20101125202116: | ||
+ | --------------- textData: nElements=0 | ||
+ | 20101125202116: | ||
+ | --------------- DataIteratorImpl:: | ||
+ | 20101125202116: | ||
+ | --------------- next: End of data reached (return false)! | ||
+ | 20101125202116: | ||
+ | --------------- DataIteratorImpl:: | ||
+ | 20101125202116: | ||
+ | --------------- DataIteratorImpl:: | ||
+ | 20101125202116: | ||
+ | --------------- called ... | ||
+ | 20101125202116: | ||
+ | --------------- isMaxClientReached: | ||
+ | 20101125202116: | ||
+ | --------------- New database connection (PostgreSQL) created! | ||
+ | 20101125202116: | ||
+ | --------------- next: called ... | ||
+ | 20101125202116: | ||
+ | --------------- stationid: 17850 currentEndTime: | ||
+ | 20101125202116: | ||
+ | --------------- select(17850, | ||
+ | 20101125202116: | ||
+ | --------------- data: nElements=6 | ||
+ | 20101125202116: | ||
+ | --------------- textData: nElements=0 | ||
+ | 20101125202116: | ||
+ | --------------- DataIteratorImpl:: | ||
+ | 20101125202116: | ||
+ | --------------- next: obsDataList-> | ||
+ | 20101125202116: | ||
+ | --------------- text_data: | ||
+ | 20101125202116: | ||
+ | --------------- No < | ||
+ | 20101125202116: | ||
+ | --------------- next: called ... | ||
+ | 20101125202116: | ||
+ | --------------- next: End of data reached (return false)! | ||
+ | 20101125202116: | ||
+ | --------------- DataIteratorImpl:: | ||
+ | 20101125202116: | ||
+ | --------------- DataIteratorImpl:: | ||
+ | 20101125202116: | ||
+ | --------------- called ... | ||
+ | 20101125202116: | ||
+ | --------------- isMaxClientReached: | ||
+ | 20101125202116: | ||
+ | --------------- New database connection (PostgreSQL) created! | ||
+ | 20101125202116: | ||
+ | --------------- next: called ... | ||
+ | 20101125202116: | ||
+ | --------------- stationid: 17850 currentEndTime: | ||
+ | 20101125202116: | ||
+ | --------------- select(17850, | ||
+ | 20101125202116: | ||
+ | --------------- data: nElements=6 | ||
+ | 20101125202116: | ||
+ | --------------- textData: nElements=0 | ||
+ | </ | ||
+ | |||
+ | The corresponding data is also written into the rcvtest_data table: | ||
+ | kvalobs=# select * from rcvtest_data; | ||
+ | < | ||
+ | | ||
+ | -----------+---------------------+-------------------+---------+---------------------+--------+--------+-------+-------------------+------------------+------------------+-------------------- | ||
+ | 17850 | 2010-11-25 09:00:00 | -32767 | 211 | 2010-11-25 09:30:10 | 330 | 0 | 0 | -6.40000009536743 | 0000601100000000 | 5894700000000001 | QC1-4-211: | ||
+ | </ | ||
+ | |||
+ | ====== Listen to operations ====== | ||
+ | |||
+ | * Update " | ||
+ | |||
+ | < | ||
+ | kvserver=kvalobs | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | * Run a check on murky (trigger from config file (file time set back afterwards)). | ||
+ | |||
+ | Qc2 Output: | ||
+ | |||
+ | < | ||
+ | kvalobs@murky:/ | ||
+ | |||
+ | --------------- Case 10: Single Linear | ||
+ | 20101125201217: | ||
+ | --------------- Single Linear | ||
+ | 20101125201218: | ||
+ | --------------- ProcessUnitT Writing Data 63.5 76905 2010-11-25 16:0:0 | ||
+ | 20101125201218: | ||
+ | --------------- ProcessUnitT Writing Data 68 76906 2010-11-25 16:0:0 | ||
+ | 20101125201219: | ||
+ | --------------- ProcessUnitT Writing Data 57.5 76906 2010-11-25 12:0:0 | ||
+ | 20101125201219: | ||
+ | --------------- ProcessUnitT Writing Data 59.5 76905 2010-11-25 12:0:0 | ||
+ | 20101125201220: | ||
+ | --------------- ProcessUnitT Writing Data 69.5 17090 2010-11-25 10:0:0 | ||
+ | 20101125201220: | ||
+ | --------------- ProcessUnitT Writing Data 64.3 17850 2010-11-25 9:0:0 | ||
+ | |||
+ | kvalobs@murky:/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | |||
+ | And the data arrives on dev-vm101: | ||
+ | |||
+ | < | ||
+ | kvalobs=# select * from rcvtest_data where paramid=262; | ||
+ | | ||
+ | -----------+---------------------+----------+---------+---------------------+--------+--------+-------+-----------+------------------+------------------+-------------------- | ||
+ | 76905 | 2010-11-25 16:00:00 | | ||
+ | 76906 | 2010-11-25 16:00:00 | | ||
+ | 76906 | 2010-11-25 12:00:00 | | ||
+ | 76905 | 2010-11-25 12:00:00 | | ||
+ | 17090 | 2010-11-25 10:00:00 | | ||
+ | (5 rows) | ||
+ | |||
+ | kvalobs=# \q | ||
+ | kvalobs@dev-vm101: | ||
+ | </ | ||
+ | |||
+ | |||
+ | Double check that at least one of the rows is in rcvtest_data but not in the dev-vm101 data table! | ||
+ | |||
+ | < | ||
+ | kvalobs=# select * from rcvtest_data where paramid=262 and cfailed like ' | ||
+ | | ||
+ | -----------+---------------------+----------+---------+---------------------+--------+--------+-------+-----------+------------------+------------------+-------------------- | ||
+ | 17090 | 2010-11-25 10:00:00 | | ||
+ | (1 row) | ||
+ | |||
+ | kvalobs=# select * from data where paramid=262 and cfailed like ' | ||
+ | | ||
+ | -----------+---------+----------+---------+--------+--------+--------+-------+-----------+-------------+---------+--------- | ||
+ | (0 rows) | ||
+ | </ | ||
+ | |||
+ | and did come from murky: | ||
+ | |||
+ | < | ||
+ | kvalobs@murky:/ | ||
+ | Welcome to psql 8.3.3, the PostgreSQL interactive terminal. | ||
+ | |||
+ | Type: \copyright for distribution terms | ||
+ | \h for help with SQL commands | ||
+ | \? for help with psql commands | ||
+ | \g or terminate with semicolon to execute query | ||
+ | \q to quit | ||
+ | |||
+ | kvalobs=# | ||
+ | | ||
+ | -----------+---------------------+----------+---------+---------------------+--------+--------+-------+-----------+------------------+------------------+-------------------- | ||
+ | 17090 | 2010-11-25 10:00:00 | | ||
+ | (1 row) | ||
+ | </ | ||
+ | |||
+ | ====== OLD MATERIAL ====== | ||
+ | |||
+ | |||
====== Propagate Qc2 Data Downstream ====== | ====== Propagate Qc2 Data Downstream ====== | ||
Line 74: | Line 370: | ||
This looks like it worked ... i.e. it did not come from murky! But we fiddled with HQC at the end of the day and did this trigger the transfer? | This looks like it worked ... i.e. it did not come from murky! But we fiddled with HQC at the end of the day and did this trigger the transfer? | ||
+ | ====== Yes it works - but only when kv2kl is restarted ... ! ====== | ||
+ | |||
+ | The following contains a mixture of output (note before and after comman bug fix too!) | ||
+ | |||
+ | < | ||
+ | kvalobs=# | ||
+ | | ||
+ | -------+---------------------------------------------+---------------------+---------------------+----------------------------+--------- | ||
+ | 89940 | QC2d-2 | ||
+ | 89940 | QC2d-2 | ||
+ | 89940 | QC2d-2 | ||
+ | 89940 | QC2d-2 | ||
+ | 89940 | QC2d-2 | ||
+ | 17850 | QC2d-2, | ||
+ | 17850 | QC2d-2 comma check | 2010-11-02 09:00:00 | 2010-11-02 09:30:11 | 2010-11-02 15: | ||
+ | 17850 | QC2d-2, | ||
+ | 17850 | QC2d-2 comma check | 2010-11-02 09:00:00 | 2010-11-02 09:30:11 | 2010-11-02 15: | ||
+ | 76750 | QC1-1-178: | ||
+ | 76750 | QC1-1-211: | ||
+ | 89940 | QC2d-2 | ||
+ | 89940 | QC2d-2 | ||
+ | 89940 | QC2d-2 | ||
+ | 89940 | QC2d-2 | ||
+ | 89940 | QC2d-2 | ||
+ | 89940 | QC2d-2 | ||
+ | 89940 | QC2d-2, | ||
+ | 89940 | QC2d-2 | ||
+ | 89940 | QC2d-2 comma check | 2010-11-02 10:00:00 | 2010-11-02 10:30:20 | 2010-11-02 15: | ||
+ | (20 rows) | ||
+ | |||
+ | |||
+ | </ | ||