Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-1666

Should check project selection before add a stream table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • v1.5.0, v1.5.1
    • v1.5.2
    • Web
    • None

    Description

      In Kylin web, if not select a "project", the page will display "Please select your project first", but I still be able to click "Add streaming table"; when save the table info, a NPE was thrown:

      java.lang.NullPointerException
      	at java.util.concurrent.ConcurrentSkipListMap.comparable(ConcurrentSkipListMap.java:659)
      	at java.util.concurrent.ConcurrentSkipListMap.doGet(ConcurrentSkipListMap.java:821)
      	at java.util.concurrent.ConcurrentSkipListMap.get(ConcurrentSkipListMap.java:1626)
      	at org.apache.kylin.common.restclient.SingleValueCache.get(SingleValueCache.java:85)
      	at org.apache.kylin.metadata.project.ProjectManager.getProject(ProjectManager.java:138)
      	at org.apache.kylin.metadata.project.ProjectManager.addTableDescToProject(ProjectManager.java:280)
      	at org.apache.kylin.rest.service.CubeService.syncTableToProject(CubeService.java:580)
      	at org.apache.kylin.rest.service.CubeService$$FastClassByCGLIB$$17a07c0e.invoke(<generated>)
      	at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
      

      Suggestion: don't allow user to take create actions if no project is selected.

      Attachments

        Activity

          People

            zhongjian Jason Zhong
            shaofengshi Shao Feng Shi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: