lwhay / asterixdb

Automatically exported from code.google.com/p/asterixdb
0 stars 0 forks source link

NPE related to transaction flush #750

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reproduction:
=============
Run the query below, the result page returns no output (empty).
You will see in debugger mode (console) or in the logs (details below) an NPE 
related to transaction flush.

drop dataverse kereno if exists;
create dataverse kereno;
use dataverse kereno;

create type page_info_type as open {}

create type widegroupbydata as closed {
user: string,
        action: int32,
        timespent: int32,
        query_term: string,
        ip_addr: int32,
        timestamp: int32,
        estimated_revenue: double,
        page_info: page_info_type,
        page_links: {{ page_info_type}},
user_1: string,
        action_1: int32,
        timespent_1: int32,
        query_term_1: string,
        ip_addr_1: int32,
        timestamp_1: int32,
        estimated_revenue_1: double,
        page_info_1: page_info_type,
        page_links_1: {{ page_info_type}}
}

Log from my_asterix_node1.log:
================================
INFO: -------------------------------------------------------------------------
Apr 01, 2014 6:48:36 PM 
edu.uci.ics.asterix.transaction.management.service.logging.LogFlusher call
INFO: LogFlusher is terminating abnormally. System is in unusalbe state.
Apr 01, 2014 6:48:36 PM 
edu.uci.ics.asterix.transaction.management.service.logging.LogFlusher call
INFO: -------------------------------------------------------------------------
java.lang.IllegalStateException: java.lang.NullPointerException
    at edu.uci.ics.asterix.transaction.management.service.logging.LogPage.internalFlush(LogPage.java:188)
    at edu.uci.ics.asterix.transaction.management.service.logging.LogPage.flush(LogPage.java:160)
    at edu.uci.ics.asterix.transaction.management.service.logging.LogFlusher.call(LogManager.java:463)
    at edu.uci.ics.asterix.transaction.management.service.logging.LogFlusher.call(LogManager.java:399)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:722)
Caused by: java.lang.NullPointerException
    at edu.uci.ics.asterix.transaction.management.service.transaction.TransactionContext.notifyOptracker(TransactionContext.java:151)
    at edu.uci.ics.asterix.transaction.management.service.logging.LogPage.batchUnlock(LogPage.java:213)
    at edu.uci.ics.asterix.transaction.management.service.logging.LogPage.internalFlush(LogPage.java:185)
    ... 8 more
Apr 01, 2014 6:49:05 PM 
edu.uci.ics.hyracks.control.common.dataset.ResultStateSweeper sweep
INFO: Result state cleanup instance successfully completed.

Original issue reported on code.google.com by ker...@gmail.com on 2 Apr 2014 at 1:53

GoogleCodeExporter commented 9 years ago
same as issue 742, tagged as duplicate.

Original comment by ker...@gmail.com on 18 Nov 2014 at 12:52