Uploaded image for project: 'AdMax'
  1. AdMax
  2. ADMAX-2886

TimeZone:Statpull script still uses $refdate parameter.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: Daily Data Availability Phase 2
    • Component/s: Data Summarization
    • Labels:
      None
    • Environment:

      Trunk Builds - UI:83, Services:965 and BidManager:69

      Description

      It is observed that Statpull still used the $refdate parameter.

      1.I ran /statpull.sh -d3 -a63 2>&1| tee /tmp/statpull.log for AvalonBay whose Account time zone is US/Phoneix and current time was :

      "Tuesday, 1 November 2011, 23:21:58 MST"

      Here as we haven't passed the date it should take the yesterday's date based on a/c time zone, so it should be = '2011-10-31'

      2. I checked the statpull.sh script

      tsaapp@tvvm-staging-xml1:/usr/local/tsa/bidmgr$ cat ./statpull.sh

      1. default date

      #

      if [ ! $refdate ]; then

      refdate=`date -date=yesterday +%Y%m-%d`

      fi

      err=0;

      echo "=================== Staging STAT Position Data with [--date $refdate$params]"

      $do $appdir/stagestat.sh --date $refdate $force $params || err=$?

      if [ $err -eq 0 ]; then

      echo; echo "=================== Starting Position Data Summarizer with [--date $refdate$params]"

      $do $appdir/positionsummarizer.sh --date $refdate $params || err=2

      else

      echo "err=$err"

      fi

      if [ $err -eq 0 ]; then

      echo; echo "=================== Starting Warehouse Summarizer for Position Data with [--date $refdate$params]"

      $do $appdir/whsumm.sh --position --highgran --date $refdate $params || err=3

      fi

      echo "=================== Done."

      Still $refdate parameter is used.

      3.I ran the tsaapp@tvvm-staging-xml1:/usr/local/tsa/bidmgr$ ./positionsummarizer.sh -a 63 -d 3

      2011-11-01 23:14:49.366 (3) [main]: Debug Level set to 3

      ...

      INFO: Creating Service

      {urn:v2.UserAccountService.services.thesearchagency.com}

      UserAccountService2.0 from WSDL: http://svc-useracctv2.svc.thesearchagency.com:8080/svc-useracctv2.0/UserAccountService2.0?wsdl

      2011-11-01 23:15:03.254 (3) [main]: Got UserAccountServiceEndPoint object.

      2011-11-01 23:15:03.932 (3) [main]: Instantiating a DateUtil object for time zone America/Phoenix

      2011-11-01 23:15:03.933 (3) [main]: Date unspecified, assuming 2011-10-31

      2011-11-01 23:15:03.937 (3) [main]: DatabasePool with a limit of 35 created

      Nov 1, 2011 11:15:04 PM org.apache.cxf.service.factory.ReflectionServiceFactoryBean buildServiceFromClass

      INFO: Creating Service

      {http://positionreporting.service.thesearchagency.com/}

      PositionReportingServiceService from class com.thesearchagency.services.PositionReportingService.v2r0.PositionReportingService

      2011-11-01 23:15:06.610 (3) [main]: ------------Position Tracking Summarizer done

      2011-11-01 23:15:06.611 (3) [main]: =============== Completed Position Tracking Summarizer ================

      It takes the yesterdays' date correctly.

        Attachments

          Activity

            People

            • Assignee:
              caitlyn Caitlyn Duggan (Inactive)
              Reporter:
              atul.sanagar Atul Sanagar (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: