Repos - METRIC_QUERY_TABLE - submit time is after exec start time for some queries

Bug #1409227 reported by Aruna Sadashiva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Trafodion
Fix Committed
High
Judy Zhao

Bug Description

METRIC_QUERY_TABLE : SUBMIT_UTC_TS > EXEC_START_UTC_TS for some queries like 'insert into BATCHTBL values(?,?,?,?)' - Should submit ts be prior to exec start ts?

According to Rao, SUBMIT SHOULD BE SAME AS EXEC_START

Changed in trafodion:
milestone: none → r1.0
Judy Zhao (hongxia-zhao)
Changed in trafodion:
assignee: nobody → Judy (hongxia-zhao)
Revision history for this message
Judy Zhao (hongxia-zhao) wrote :

I got following result by trafci :

SQL>select SUBMIT_UTC_TS-EXEC_START_UTC_TS as "SUB-START",SUBMIT_UTC_TS,EXEC_START_UTC_TS from TRAFODION."_REPOS_".METRIC_QUERY_TABLE;

SUB-START SUBMIT_UTC_TS EXEC_START_UTC_TS
-------------------- -------------------------- --------------------------
           0.012160 2015-01-15 06:37:16.516158 2015-01-15 06:37:16.503998
           0.002414 2015-01-15 06:37:17.108331 2015-01-15 06:37:17.105917
           … …
          0.000000 2015-01-16 06:56:36.063327 2015-01-16 06:56:36.063327
           0.000000 2015-01-16 06:57:02.699691 2015-01-16 06:57:02.699691
           … …

Here SUBMIT_UTC_TS is always larger or equal to EXEC_START_UTC_TS .

Then I checked the source and found that:
1.pQuery_info->m_submit_utc_ts = statementStartTime
2.statementStartTime = JULIANTIMESTAMP(); which is set at ResStatisticsStatement::start.
So this is the reason why the submit_utc is different with exec_start_utc.

My question is : The submit_utc should equal to exec_start_utc or not ? Is this a bug ?

Judy Zhao (hongxia-zhao)
Changed in trafodion:
status: New → In Progress
Changed in trafodion:
milestone: r1.0 → r1.0.1
Changed in trafodion:
milestone: r1.0.1 → r1.1
Revision history for this message
Judy Zhao (hongxia-zhao) wrote :

This change has been commited with the fix of 1409225 ,please QA verified that.

Revision history for this message
Judy Zhao (hongxia-zhao) wrote :

This change has been commited with the fix of 1409225.

Changed in trafodion:
status: In Progress → Fix Committed
Judy Zhao (hongxia-zhao)
Changed in trafodion:
status: Fix Committed → Fix Released
Changed in trafodion:
status: Fix Released → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.