Yesterday (night) I was at home remotely playing with some new matview, which was nicely auto-refreshing itself every 2 minutes (it's just a test autorefresh interval), when something strange happened, I don't know if it could bew related to this thread topic, I could open I new thread if needed.
What happened is that I noticed in the web console that two matviews I was testing (working nicely, in squirrelsql over vpn) stopped refreshing just before midnight (they are still unrefreshed today, as you can see below).
At first I thought there was a "midnight bug", but another test matview, in another vdb, which I was not using, was instead refreshed even after midnight.
Today I checked the logs, and got this, where I noticed thay stopped just before midnight (with the expected 2 minute delay should have been happening after midnight) and also that they were not even refreshed, before, every 2 minutes... apparently.
those 2 matviews are from huge CSV files, by the way, if this can help understanding the logs in any way. Below the following logs lines, you'll find the whole vdb, and the .cli script I used to create the CSV datasource
(btw I didn't remove any log line in the time interval, but can provide more log lines before/after)
2016-03-22 23:52:01,443 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker94_QueryProcessorQueue25930) M6ke1kme9Sqo TEIID30013 Loading materialized view table #MAT_PFI.SCHEDEAPP
2016-03-22 23:52:02,956 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker96_QueryProcessorQueue25990) M6ke1kme9Sqo TEIID30014 Loaded materialized view table #MAT_SCHEDE.SCHEDEAPP with row count 4.130.
2016-03-22 23:52:03,870 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker95_QueryProcessorQueue26011) M6ke1kme9Sqo TEIID30014 Loaded materialized view table #MAT_PFI.SCHEDEAPP with row count 26.526.
2016-03-22 23:53:24,692 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker92_QueryProcessorQueue26028) NL5LaBYq3nbj TEIID30013 Loading materialized view table #MAT_VIEWS.DATI_MAT
2016-03-22 23:53:24,854 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker92_QueryProcessorQueue26085) NL5LaBYq3nbj TEIID30014 Loaded materialized view table #MAT_VIEWS.DATI_MAT with row count 28.913.
2016-03-22 23:55:24,692 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker92_QueryProcessorQueue26090) wFTGpSdbk3Wb TEIID30013 Loading materialized view table #MAT_VIEWS.DATI_MAT
2016-03-22 23:55:24,826 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker92_QueryProcessorQueue26146) wFTGpSdbk3Wb TEIID30014 Loaded materialized view table #MAT_VIEWS.DATI_MAT with row count 28.913.
2016-03-22 23:57:24,693 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker92_QueryProcessorQueue26148) eFVxee3EEB+O TEIID30013 Loading materialized view table #MAT_VIEWS.DATI_MAT
2016-03-22 23:57:24,822 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker92_QueryProcessorQueue26204) eFVxee3EEB+O TEIID30014 Loaded materialized view table #MAT_VIEWS.DATI_MAT with row count 28.913.
2016-03-22 23:58:49,233 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker92_QueryProcessorQueue26206) M6ke1kme9Sqo TEIID30013 Loading materialized view table #MAT_SCHEDE.SCHEDEAPP
2016-03-22 23:58:49,241 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker92_QueryProcessorQueue26206) M6ke1kme9Sqo TEIID30013 Loading materialized view table #MAT_PFI.SCHEDEAPP
2016-03-22 23:58:50,781 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker95_QueryProcessorQueue26252) M6ke1kme9Sqo TEIID30014 Loaded materialized view table #MAT_SCHEDE.SCHEDEAPP with row count 4.130.
2016-03-22 23:58:51,822 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker98_QueryProcessorQueue26293) M6ke1kme9Sqo TEIID30014 Loaded materialized view table #MAT_PFI.SCHEDEAPP with row count 26.526.
2016-03-22 23:59:24,692 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker98_QueryProcessorQueue26295) cexVEb9y2Q/D TEIID30013 Loading materialized view table #MAT_VIEWS.DATI_MAT
2016-03-22 23:59:24,822 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker98_QueryProcessorQueue26351) cexVEb9y2Q/D TEIID30014 Loaded materialized view table #MAT_VIEWS.DATI_MAT with row count 28.913.
===========
2016-03-23 00:01:24,693 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker98_QueryProcessorQueue26353) qa7mURe7k+2i TEIID30013 Loading materialized view table #MAT_VIEWS.DATI_MAT
2016-03-23 00:01:24,852 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker98_QueryProcessorQueue26409) qa7mURe7k+2i TEIID30014 Loaded materialized view table #MAT_VIEWS.DATI_MAT with row count 28.913.
2016-03-23 00:03:24,693 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker98_QueryProcessorQueue26411) zMmaUZmBeBc3 TEIID30013 Loading materialized view table #MAT_VIEWS.DATI_MAT
2016-03-23 00:03:24,868 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker95_QueryProcessorQueue26469) zMmaUZmBeBc3 TEIID30014 Loaded materialized view table #MAT_VIEWS.DATI_MAT with row count 28.913.
2016-03-23 00:05:24,692 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker95_QueryProcessorQueue26470) +WJO/hXvtFLf TEIID30013 Loading materialized view table #MAT_VIEWS.DATI_MAT
2016-03-23 00:05:24,835 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker95_QueryProcessorQueue26526) +WJO/hXvtFLf TEIID30014 Loaded materialized view table #MAT_VIEWS.DATI_MAT with row count 28.913.
2016-03-23 00:07:24,693 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker95_QueryProcessorQueue26528) az/RFQS7mzGZ TEIID30013 Loading materialized view table #MAT_VIEWS.DATI_MAT
2016-03-23 00:07:24,832 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker100_QueryProcessorQueue26583) az/RFQS7mzGZ TEIID30014 Loaded materialized view table #MAT_VIEWS.DATI_MAT with row count 28.913.
2016-03-23 00:09:24,693 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker100_QueryProcessorQueue26585) SFRI/JQn3tm1 TEIID30013 Loading materialized view table #MAT_VIEWS.DATI_MAT
2016-03-23 00:09:24,847 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker100_QueryProcessorQueue26643) SFRI/JQn3tm1 TEIID30014 Loaded materialized view table #MAT_VIEWS.DATI_MAT with row count 28.913.
2016-03-23 00:11:24,693 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker100_QueryProcessorQueue26644) NGLtLAVIuXhq TEIID30013 Loading materialized view table #MAT_VIEWS.DATI_MAT
2016-03-23 00:11:24,830 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker100_QueryProcessorQueue26700) NGLtLAVIuXhq TEIID30014 Loaded materialized view table #MAT_VIEWS.DATI_MAT with row count 28.913.
2016-03-23 00:13:24,692 INFO [org.teiid.PROCESSOR.MATVIEWS] (Worker100_QueryProcessorQueue26707) 6UjobNleyUF4 TEIID30013 Loading materialized view table #MAT_VIEWS.DATI_MAT
====================
set ra_name=file
set cd_module=org.jboss.teiid.resource-adapter.file
set cd_classname=org.teiid.resource.adapter.file.FileManagedConnectionFactory
set cd_AllowParentPaths=true
set cd_name=apprendisti
set cd_ParentDirectory=/mnt/common/TEST/sp
/subsystem=resource-adapters/resource-adapter=$ra_name/connection-definitions=$cd_name:add(jndi-name=java:/$cd_name, class-name=$cd_classname, enabled=true, use-java-context=true)
/subsystem=resource-adapters/resource-adapter=$ra_name/connection-definitions=$cd_name/config-properties=ParentDirectory:add(value=$cd_ParentDirectory)
/subsystem=resource-adapters/resource-adapter=$ra_name/connection-definitions=$cd_name/config-properties=AllowParentPaths:add(value=$cd_AllowParentPaths)
/subsystem=resource-adapters/resource-adapter=$ra_name:activate
====================
====================
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<vdb name="ApprendistiAnsi" version="1">
<description>Apprendisti</description>
<property name="UseConnectorMetadata" value="true" />
<model name="CsvApprendisti">
<source name="text-connector" translator-name="file-override" connection-jndi-name="java:/apprendisti"/>
</model>
<model name="schede" type="VIRTUAL">
<metadata type="DDL"><![CDATA[
CREATE VIEW schedeapp (
COD_FISC_IMP string,
DENOM_IMP string,
COD_FISC_APPR string,
COGNOME_APPR string,
NOME_APPR string
)
OPTIONS (materialized true, "teiid_rel:MATVIEW_TTL" 120000,
"teiid_rel:MATVIEW_PREFER_MEMORY" 'true',
"teiid_rel:MATVIEW_UPDATABLE" 'true',
"teiid_rel:MATVIEW_SCOPE" 'vdb')
AS
/*+ cache(ttl:120000) */
SELECT
x.COD_FISC_IMP,
x.DENOM_IMP,
x.COD_FISC_APPR,
x.COGNOME_APPR,
x.NOME_APPR
FROM (EXEC CsvApprendisti.getTextFiles('apptestAnsi.CSV')) AS f,
TEXTTABLE(f.file COLUMNS
COD_FISC_IMP string,
DENOM_IMP string,
COD_FISC_APPR string,
COGNOME_APPR string,
NOME_APPR string
HEADER
) AS x;
]]>
</metadata>
</model>
<model name="pfi" type="VIRTUAL">
<metadata type="DDL"><![CDATA[
CREATE VIEW schedeapp (
COD_FISC_APPR string,
COGNOME_APPR string,
IMPRESA string
)
OPTIONS (materialized true, "teiid_rel:MATVIEW_TTL" 120000,
"teiid_rel:MATVIEW_PREFER_MEMORY" 'true',
"teiid_rel:MATVIEW_UPDATABLE" 'true',
"teiid_rel:MATVIEW_SCOPE" 'vdb')
AS
/*+ cache(ttl:120000) */
SELECT x.COD_FISC_APPR, x.COGNOME_APPR, x.IMPRESA
FROM (EXEC CsvApprendisti.getTextFiles('appPfiAnsi.CSV')) AS f,
TEXTTABLE(f.file COLUMNS COD_FISC_APPR string, COGNOME_APPR string, IMPRESA string HEADER) AS x;
]]>
</metadata>
</model>
<translator name="file-override" type="file">
<property name="Encoding" value="Windows-1252"/>
</translator>
</vdb>
====================
As said above, if this is unrelated, I'll move this in a new thread.
Marco