Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] esb messages now send timestamp

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] esb messages now send timestamp


Chronological Thread 
  • From: John Schrader <>
  • To: "Hyzer, Chris" <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] esb messages now send timestamp
  • Date: Wed, 19 Oct 2016 21:04:26 -0400
  • Ironport-phdr: 9a23:lVR2Wh3rYIWUJ/kGsmDT+DRfVm0co7zxezQtwd8ZseseK/ad9pjvdHbS+e9qxAeQG96Eu7QZ0KGP7ujJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6i760TlHUDXuJwdvYqzeGpTTlI7/g+W5+4zBbh9ghSG2J65qIROw6wjdq59Fr5FlL/MTzRvP6kBDe/5fyW5ybQaxmBb6oPy7/IRq/ylKk/QtscNMTPOpLOwDUbVEAWF+YCgO78rxuEybQA==

Chris,

Patch 28 is not installing.  The archive is not GZiped.

The installer is outputting:

################ Checking patch grouper_v2_3_0_api_patch_28
Downloading from URL: http://software.internet2.edu/grouper/release/2.3.0/patches/grouper_v2_3_0_api_patch_28.tar.gz to file: /opt/grouper/patches/grouper_v2_3_0_api_patch_28.tar.gz
Unzipping: /opt/grouper/patches/grouper_v2_3_0_api_patch_28.tar.gz
Exception in thread "main" java.lang.RuntimeException: Cant unzip file: /opt/grouper/patches/grouper_v2_3_0_api_patch_28.tar.gz,
java.lang.RuntimeException: caller stack
        at edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils.threadRunWithStatusDots(GrouperInstallerUtils.java:8334)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller.unzip(GrouperInstaller.java:9788)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller.downloadAndUnzipPatch(GrouperInstaller.java:5750)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller.downloadAndInstallPatches(GrouperInstaller.java:5243)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller.patchApi(GrouperInstaller.java:5878)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller.access$3300(GrouperInstaller.java:80)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller$AppToUpgrade$2.patch(GrouperInstaller.java:4513)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainPatchLogic(GrouperInstaller.java:2546)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller.access$600(GrouperInstaller.java:80)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller$GrouperInstallerMainFunction$4.logic(GrouperInstaller.java:1114)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller.mainLogic(GrouperInstaller.java:1143)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller.main(GrouperInstaller.java:414)

        at edu.internet2.middleware.grouperInstaller.GrouperInstaller.unzipHelper(GrouperInstaller.java:9812)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller.access$7000(GrouperInstaller.java:80)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller$7.run(GrouperInstaller.java:9784)
        at edu.internet2.middleware.grouperInstaller.util.GrouperInstallerUtils$1.run(GrouperInstallerUtils.java:8281)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: Input is not in the .gz format
        at edu.internet2.middleware.grouperInstallerExt.org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream.init(GzipCompressorInputStream.java:162)
        at edu.internet2.middleware.grouperInstallerExt.org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream.<init>(GzipCompressorInputStream.java:135)
        at edu.internet2.middleware.grouperInstallerExt.org.apache.commons.compress.compressors.gzip.GzipCompressorInputStream.<init>(GzipCompressorInputStream.java:100)
        at edu.internet2.middleware.grouperInstaller.GrouperInstaller.unzipHelper(GrouperInstaller.java:9808)
        ... 4 more

-John


On Wed, Oct 19, 2016 at 1:32 PM, Hyzer, Chris <> wrote:

https://bugs.internet2.edu/jira/browse/GRP-1390

 

this adds "createdOnMicros" which is the number of microseconds (multiply by 1000 for millis) since jan 1 1970.

{

"encrypted":false,

"esbEvent":[

{ "changeOccurred":false, "createdOnMicros":1476889916578000, "eventType":"MEMBERSHIP_DELETE", "fieldName":"members", "groupId":"89dd656be8c743e79b2ef24fde6dab36", "groupName":"box:groups:someGroup", "id":"c2641b287f964bb28b2f0ddcd05f9fd3", "membershipType":"flattened", "sequenceNumber":"618", "sourceId":"g:isa", "subjectId":"GrouperSystem" }

]

}

If you want the previous behavior, you can configure per job in grouper-loader.properties (defaults to true if not set):

changeLog.consumer.CONSUMER_NAME.publisher.sendCreatedOnMicros = false

 

 

fixed in 2.3.0 api patch #28

 

Thanks

Chris




--
John Schrader
Identity and Access Management
Office of Information Technologies
University of Notre Dame

EVERYTHING SHOULD BE MADE AS SIMPLE AS POSSIBLE, BUT NOT ANY SIMPLER
—ALBERT EINSTEIN



Archive powered by MHonArc 2.6.19.

Top of Page