You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by jackylk <gi...@git.apache.org> on 2018/01/08 06:19:57 UTC
[GitHub] carbondata pull request #1722: [CARBONDATA-1755] Fixed bug occuring on concu...
Github user jackylk commented on a diff in the pull request:
https://github.com/apache/carbondata/pull/1722#discussion_r160079943
--- Diff: integration/spark2/src/main/scala/org/apache/spark/sql/execution/command/mutation/CarbonProjectForUpdateCommand.scala ---
@@ -52,6 +53,13 @@ private[sql] case class CarbonProjectForUpdateCommand(
return Seq.empty
}
val carbonTable = CarbonEnv.getCarbonTable(databaseNameOp, tableName)(sparkSession)
+ val isLoadInProgress = SegmentStatusManager.checkIfAnyLoadInProgressForTable(carbonTable)
+ if (isLoadInProgress) {
+ LOGGER.error("Cannot run data loading and update on same table concurrently. Please wait"
+ + " for load to finish")
+ throw new Exception("Cannot run data loading and update on same table concurrently. " +
--- End diff --
Use the `ConcurrentOperationException` added in #1711
---