Repository navigation
fix: consistency timestamp after a load, and clearer RunModule messages (2.2.5) - #61
Merged
Merged
Conversation
…mp (2.2.5) GetConsistencyTimestamp only looked up a logical source group's source when its latest load window had no changes. A group with changes was always treated as lagging, so straight after a load that brought data the earliest load window end of all groups was returned, even when every source had been processed completely. Snapshots taken then left out the rows that other sources loaded moments later: in the ADL Physical Data Vault sample, a fresh deployment's first snapshot of PIT_CUSTOMER_COSTING was empty and PIT_CUSTOMER held 2 of 5 keys. The result only became complete after a later cycle without changes. With @SourceDataLookupIndicator = 'Y' (the default) every group is now checked for outstanding rows beyond its load window; the earliest window end of the lagging groups is returned, or the latest window end when no group lags. The 'N' path is unchanged. Two integration tests cover a fully loaded and a lagging source; the first fails on 2.2.4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E3hrLUE8EzUF6XBwnkZSRX
…hout a target RunModule reports an unregistered Module Code that cannot be auto-registered with a clear message, also in EVENT_LOG. ModuleEvaluation no longer runs a rollback DELETE against a target called N/A, which made every rerun of a failed Module without a target data object fail with 'Invalid object name'. Fix the @BModuleCode debug key and widen the PrintLog key column to 40 characters. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E3hrLUE8EzUF6XBwnkZSRX
…modules) RegisterModule only reported success for an existing Module, so every auto-registration from CreateModuleInstance failed. CreateModuleInstance also passed no area, which is required. Auto-registered Modules now land in MAINT. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01E3hrLUE8EzUF6XBwnkZSRX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Roelant · project thread
What
omd.GetConsistencyTimestampnow checks every logical source group for outstanding rows beyond its load window, instead of only the groups whose latest window had no changes. It returns the earliest window end of the groups that still lag, or the latest window end when none does. Version bump to 2.2.5; merging publishes the release.Why
A group whose latest load window had changes was always treated as lagging, without looking at its source. Straight after a load that brought data, every source is typically complete up to its own window end, yet the earliest window end of all sources won. Snapshots taken at that moment left out the rows other sources loaded moments later.
Found in the ADL Physical Data Vault sample. On a fresh deployment, the first snapshot (taken right after the initial load) gave PIT_CUSTOMER_COSTING 0 rows and PIT_CUSTOMER 2 of 5 keys, so FACT_CUSTOMER_COSTING was empty. It only became complete after a later queue cycle with no changes, when the procedure switches to the max window end. The answer depended on timing, not on the data.
@SourceDataLookupIndicator = 'N'(external orchestration) is unchanged.Verification
OmdGetConsistencyTimestampTests: two sources with changed windows ending at 10:00 and 10:05..direct-version,Directory.Build.props(Version, DacVersion),next/version.json, theDIRECT_VERSIONseed, and the## Release 2.2.5notes.Also:
omd.RunModulemessages (workshop exercises)EXEC omd.RunModule @ModuleCode = 'MyNonExistingModule'used to print a misspelt@BModuleCodekey, an empty executable, and a generic "Failed to register a module instance". It now stops early with "Module Code 'X' is not registered in [omd].[MODULE], so there is nothing to run." and writes the same text toomd.EVENT_LOG. This applies when auto-registration is off, or when no@Queryprovides code to run.N/A. The rollback compared the bracketed[N/A]withN/A, never matched, and ranDELETE FROM [N/A], so every rerun failed with "Invalid object name 'N/A'". It now compares the raw target and skips the rollback, so the rerun fails or succeeds on its own code.AUTO_REGISTER_MODULES(on by default) never worked:omd.RegisterModuleset@SuccessIndicator = 'Y'only for an existing Module, andomd.CreateModuleInstancepassed no area (required). New Modules now report success, and auto-registered ones land inMAINT(Roelant's call). New test: an unregistered Module run with@Query = 'SELECT 1'succeeds and is registered inMAINT.omd.PrintLogkey column widened from 30 to 40 characters, so longer keys no longer wrap.New tests in
OmdRunModuleTests: the unregistered-module message (with and without auto-registration), and two failing runs of a Module without a target. The rerun test fails on 2.2.4 and passes with the fix.Generated by Claude Code