Uploaded image for project: 'Atlas'
  1. Atlas
  2. ATLAS-4431

Random NPE when retrieving tasks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.2.0
    • 3.0.0, 2.3.0
    • atlas-intg
    • None

    Description

      System tests fail randomly because retrieving tasks using the "admin/tasks" endpoint sometimes returns HTTP 500.

      Atlas logs:

      2021-09-06 13:51:28,938 INFO  - [etp985324122-24:] ~ Logged into Atlas as = hrt_qa, by proxyUser = null (AtlasAuthenticationFilter$KerberosFilterChainWrapper:724)
      2021-09-06 13:51:28,939 INFO  - [etp985324122-24:knox:POST/api/atlas/v2/entity/bulk/classification] ~ Request from authenticated user: knox, URL=/api/atlas/v2/entity/bulk/classification?doAs=hrt_qa (AtlasAuthenticationFilter$KerberosFilterChainWrapper:739)
      2021-09-06 13:51:28,969 INFO  - [etp985324122-24 - 78a12f6b-7472-4600-a35d-bfe660358712:knox:POST/api/atlas/v2/entity/bulk/classification] ~ updateClassificationText: tag_iuanl: tag_iuanl date Mon Sep 06 13:51:28 UTC 2021 hive_principal_type USER boolean true string XXJid byte -58 double 9.475147275250526E37 arr_string fEOKO short -29141 arr_int 781216025 float -3.09E38 int 1369026004 long -2808157562510626816  (EntityGraphMapper:2732)
      2021-09-06 13:51:29,173 INFO  - [etp985324122-24 - 78a12f6b-7472-4600-a35d-bfe660358712:knox:POST/api/atlas/v2/entity/bulk/classification] ~ {"type":"CLASSIFICATION_PROPAGATION_ADD","guid":"a4ed45a8-cc15-41dd-9340-ebaca95b07f1","createdBy":"hrt_qa","createdTime":1630936288947,"updatedTime":1630936288947,"parameters":{"relationshipGuid":null,"entityGuid":"5c89916f-9dbc-4be8-afd5-9e7659bbb745","classificationVertexId":"44486696"},"attemptCount":0,"status":"PENDING"} (TaskExecutor$TaskLogger:170)
      2021-09-06 13:51:29,190 INFO  - [atlas-task-0-etp985324122-24 - c6aa9190-8454-43a4-a862-1f61393994a6:] ~ updateClassificationText: tag_iuanl: tag_iuanl date Mon Sep 06 13:51:28 UTC 2021 hive_principal_type USER boolean true string XXJid byte -58 double 9.475147275250526E37 arr_string fEOKO short -29141 arr_int 781216025 float -3.09E38 int 1369026004 long -2808157562510626816  (EntityGraphMapper:2732)
      2021-09-06 13:51:29,193 INFO  - [atlas-task-0-etp985324122-24 - c6aa9190-8454-43a4-a862-1f61393994a6:] ~ updateClassificationText: tag_iuanl: tag_iuanl date Mon Sep 06 13:51:28 UTC 2021 hive_principal_type USER boolean true string XXJid byte -58 double 9.475147275250526E37 arr_string fEOKO short -29141 arr_int 781216025 float -3.09E38 int 1369026004 long -2808157562510626816  (EntityGraphMapper:2732)
      2021-09-06 13:51:29,366 ERROR - [etp985324122-594:] ~ URL not supported in HA mode: /api/atlas/admin/tasks (ActiveServerFilter:121)
      2021-09-06 13:51:29,366 INFO  - [etp985324122-594:] ~ Logged into Atlas as = hrt_qa, by proxyUser = null (AtlasAuthenticationFilter$KerberosFilterChainWrapper:724)
      2021-09-06 13:51:29,366 INFO  - [etp985324122-594:knox:GET/api/atlas/admin/tasks] ~ Request from authenticated user: knox, URL=/api/atlas/admin/tasks?doAs=hrt_qa (AtlasAuthenticationFilter$KerberosFilterChainWrapper:739)
      2021-09-06 13:51:29,375 ERROR - [etp985324122-594 - 73d22020-c612-4a00-8f47-b2ebd149e976:knox:GET/api/atlas/admin/tasks] ~ Error handling a request: f1318c48aa5440a9 (ExceptionMapperUtil:32)
      java.lang.NullPointerException
              at org.apache.atlas.tasks.TaskRegistry.toAtlasTask(TaskRegistry.java:188)
              at org.apache.atlas.tasks.TaskRegistry.getAll(TaskRegistry.java:155)
              at org.apache.atlas.tasks.TaskManagement.getAll(TaskManagement.java:120)
              at org.apache.atlas.web.resources.AdminResource.getTaskStatus(AdminResource.java:772)
              at jdk.internal.reflect.GeneratedMethodAccessor324.invoke(Unknown Source)
              at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.base/java.lang.reflect.Method.invoke(Method.java:566)
              at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
              at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185)
              at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
              at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
              at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
      ...
              at java.base/java.lang.Thread.run(Thread.java:834)
      2021-09-06 13:51:29,410 INFO  - [atlas-task-0-etp985324122-24 - c6aa9190-8454-43a4-a862-1f61393994a6:] ~ {"type":"CLASSIFICATION_PROPAGATION_ADD","guid":"a4ed45a8-cc15-41dd-9340-ebaca95b07f1","createdBy":"hrt_qa","createdTime":1630936288947,"updatedTime":1630936288947,"endTime":1630936289260,"parameters":{"relationshipGuid":null,"entityGuid":"5c89916f-9dbc-4be8-afd5-9e7659bbb745","classificationVertexId":"44486696"},"attemptCount":0,"status":"COMPLETE"} (TaskExecutor$TaskLogger:170)
      

      Attachments

        1. ATLAS-4431-part2.patch
          4 kB
          Disha Talreja
        2. ATLAS-4431.patch
          2 kB
          Disha Talreja

        Activity

          People

            dishatalreja Disha Talreja
            dishatalreja Disha Talreja
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: