Question
Atos Syntel
IN
Last activity: 27 Jan 2016 11:02 EST
Is it possible to delete PegaRULES_Extract_Marker file from Pega ?
Is it possible to delete PegaRULES_Extract_Marker file from Pega by writing some custom java code in an Activity step ?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 29 Dec 2015 23:35 EST
NJ State Judiciary
US
Have a look at the last response in this post: Can extract marker be cleared via SMA?
PRFile ExtractMarker = new PRFile("PegaRULES_Extract_Marker.txt");
ExtractMarker.delete();
Hi,
I moved this post to the product support space as it is about Pega 7 and not the Mesh.
Thanks
Wayne
Updated: 29 Dec 2015 12:55 EST
Pegasystems Inc.
IN
Pegasystems Inc.
IN
This file would not be deleted when server is running.
Pegasystems Inc.
IN
Thank Arvind for your input.
@Dilipan - I'm sorry. I overlooked the question. Was thinking of file system object mechanism to delete the file...and thought the URL shared will serve as a reference to delete extract marker file.
Pegasystems
US
When the extract marker is deleted and the Pega software starts, the absence of that file causes the function libraries to be rebuilt.
If you did find a way to delete the marker from an activity, are you expecting the deletion to cause the function libraries to immediately be rebuilt even while the Pega software is running ? Or is your intent that you would delete the marker with your activity such that the next time Pega starts, the libraries would be rebuilt ? /Eric
Atos Syntel
IN
The second one - I would delete the marker with my activity such that the next time Pega starts, the libraries would be rebuilt.
Accepted Solution
Updated: 29 Dec 2015 23:35 EST
NJ State Judiciary
US
Have a look at the last response in this post: Can extract marker be cleared via SMA?
PRFile ExtractMarker = new PRFile("PegaRULES_Extract_Marker.txt");
ExtractMarker.delete();
Atos Syntel
IN
This works.
JPMC
IN
What is the exact requirement, why do you want to delete this file from an activity?
Atos Syntel
IN
we have been deleting the marker file and restarting the application for major deployments (involving lot of instances) done in pega, the reason is that the development teams had complained in the past that after code deployment they do not see the new rules that have been moved, the new rules are not considered in the rule resolution and few more reasons that i don't remember (we tried clearing the cache in SMA but it didn't fix the issue in most the situations). So it became a standard thing to clear the marker file and restart the application after major deployments.
we have security restrictions in our organization that does not allow us to delete the marker file in higher environments, we have to create a ticket and reach out to another team for the file deletion, since this is time consuming i wanted to know if there is any shortcut to do the file deletion.
Pegasystems
US
>>> we have security restrictions in our organization that does not allow us to delete the marker file in higher environments
The security restrictions are either a good thing or a bad thing. If they are a good thing, then you shouldn't be allowed to delete the marker, regardless of whether it is manually or by an activity. If they are a bad thing, the restriction should get lifted so you are allowed to delete the marker.
Putting it another way, it is not a good idea to have an activity or any other sneaky way to get around a security restriction. It will either cause trouble or get you in trouble. /Eric
Pegasystems
US
>>> the development teams had complained in the past that after code deployment they do not see the new rules that have been moved, the new rules are not considered in the rule resolution
That should not occur. Here are some things to check:
1) If the rule is an activity rule or a rule-application (and some other rule types), it is controlled by the in-memory "vtable" that is updated by the pulse. So it is normal that it takes up to 60 seconds for the deployed activity to be "seen" on other nodes, since the pulse agent runs every 60 seconds.
2) Use the SMA main screen, info screen, and agent screen, to make sure the pulse agent is running on the node on which you are not seeing the deployed rules. The pulse agent is supposed to run on all nodes, every 60 seconds.
3) If the rule is a section rule and is sometimes not being seen after deployment, and you are using a db of type mssql (as opposed to oracle or db2), and you are on Pega 7, a recently-issued hot fix may be applicable for you. The issue was that during deployment, all the db shortcut records that referred to the old rule were supposed to be deleted but only 50 of them were being deleted (due to an inadvertent maxlimit of 50 being applied to the db deletion directive). Again, this issue only occurs on the mssql db type, and is solved by the hot fix.
>>> the development teams had complained in the past that after code deployment they do not see the new rules that have been moved, the new rules are not considered in the rule resolution
That should not occur. Here are some things to check:
1) If the rule is an activity rule or a rule-application (and some other rule types), it is controlled by the in-memory "vtable" that is updated by the pulse. So it is normal that it takes up to 60 seconds for the deployed activity to be "seen" on other nodes, since the pulse agent runs every 60 seconds.
2) Use the SMA main screen, info screen, and agent screen, to make sure the pulse agent is running on the node on which you are not seeing the deployed rules. The pulse agent is supposed to run on all nodes, every 60 seconds.
3) If the rule is a section rule and is sometimes not being seen after deployment, and you are using a db of type mssql (as opposed to oracle or db2), and you are on Pega 7, a recently-issued hot fix may be applicable for you. The issue was that during deployment, all the db shortcut records that referred to the old rule were supposed to be deleted but only 50 of them were being deleted (due to an inadvertent maxlimit of 50 being applied to the db deletion directive). Again, this issue only occurs on the mssql db type, and is solved by the hot fix.
4) If you are observing newly deployed rules failing to be "seen" or "picked up" after checking the above, we in Pega GCS would like to help you track down the issue. However, to do that, we need to have the Pega temp folder and db cache table entries intact and available, so if you habitually clear those out as a workaround for the issue, it may not be possible for us to assist in tracking down the issue.
/Eric
BNY Mellon
US
It's a crude mechanism and I have advised our team that it is not in fact necessary to do this for most moves. Running revalidation is more important.
This whole mechanism in Pega needs to be overhauled. SMA should not be so complex to wade through. Within the engine, it should be easy enough to provide visibility into which rule is in the cache(s), in the classLoader directly from the ruleform. I raised this point earlier in the year:
Service/API call for rule cache sanity check
The hours invested in this code would save days and weeks collectively of investigation time.
But we have no visibility into Pega's plans into making system operations easier.